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 call last):
File "<stdin>", line 1, in <module>
ValueError: too many values to 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"