On Jan 12, 2011, at 12:14 PM, [email protected] wrote: > How can I work around this ValueError: too many values to unpack. > I am actually trying to extract certain portion of a csv file. > I just need an insight into what could be causing such error and I should be > able to figure out the rest. > > Thanks. > Sent from my BlackBerry wireless device from MTN
It's exactly what the message said. Look at your line of code that attempts to read from the CSV. It will be assigning the values to variables. Then look at the CSV file, and you will find that the number of values in one or more of the lines exceeds the number you were expecting. This is a basic Python question -- not a Django one. Check out the very active Python mailing list: http://mail.python.org/mailman/listinfo/python-list Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

