ValueError: need more than 1 value to unpack
Posted
by user338690
on Stack Overflow
See other posts from Stack Overflow
or by user338690
Published on 2010-05-11T20:16:39Z
Indexed on
2010/05/11
20:24 UTC
Read the original article
Hit count: 117
python
I run this code:
from sys import argv
script, user_name =argv
prompt = '>'
print "Hi %s, I'm the %s script." % (user_name, script)
And I get the following error:
Traceback (most recent call last):
script, user_name =argv
ValueError: need more than 1 value to unpack
© Stack Overflow or respective owner