Unhelpful traceback

John Nagle nagle at animats.com
Thu Mar 7 23:13:47 CET 2013


On 3/7/2013 10:42 AM, John Nagle wrote:
> On 3/7/2013 5:10 AM, Dave Angel wrote:
>> On 03/07/2013 01:33 AM, John Nagle wrote:
>>> Here's a traceback that's not helping:
>>>
>>
>> A bit more context would be helpful.  Starting with Python version.
> 
>     Sorry, Python 2.7.

The trouble comes from here:

	decoder = codecs.getreader('utf-8')          # UTF-8 reader
        with decoder(infdraw,errors="replace") as infd :

It's not the CSV module that's blowing up.  If I just feed the
raw unconverted bytes from the ZIP module into the CSV module,
the CSV module runs without complaint.

I've tried 'utf-8', 'ascii', and 'windows-1252' as codecs.
They all blow up. 'errors="replace"' doesn't help.

				John Nagle



More information about the Python-list mailing list