Skip to content Skip to sidebar Skip to footer

Valueerror: Too Many Values To Unpack Aptana Studio 3

I am working on exercise 13 from learnpythonthehardway.org. I should run this code: from sys import argv script, first, second, third = argv print 'The script is called:', script

Solution 1:

It's because len(argv) might be greater than 4:

>>> w,x,y,z=[1,2,3,4,5]
Traceback (most recent calllast):
  File "<stdin>", line 1, in<module>
ValueError: too many valuesto unpack

Try printing argv to see what argv actually contains.

Solution 2:

in the script window, right click, ShowIn > Terminal. It will open a terminal window in Aptana. Then type, python 'your script'.py That will run in way you want I think; Rather with the visual you want.

Post a Comment for "Valueerror: Too Many Values To Unpack Aptana Studio 3"