ValueError: need more than 2 values to unpack
John Nagle
nagle at animats.com
Fri Apr 1 11:31:19 EDT 2011
On 4/1/2011 7:48 AM, kahmed wrote:
>
> line 142 is:
>
> "for test, err, capt in errors:"
Somewhere in "errors" is a value that is not of length 3.
Try this to find out what's wrong:
for errorentry in errors :
try :
(test, err, capt) = errorentry # try to unpack
except ValueError as message : # unpack failed
raise(ValueError("%s: bogus entry in 'errors': %s" %
(message, repr(errorentry))))
...
John Nagle
More information about the Python-list
mailing list