Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40829

Re: Unhelpful traceback

Path csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail
From John Nagle <nagle@animats.com>
Newsgroups comp.lang.python
Subject Re: Unhelpful traceback
Date Thu, 07 Mar 2013 14:13:47 -0800
Organization A noiseless patient Spider
Lines 23
Message-ID <khb3c0$d17$1@dont-email.me> (permalink)
References <kh9c95$t68$1@dont-email.me> <mailman.3016.1362661824.2939.python-list@python.org> <khan0m$ud6$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
Injection-Date Thu, 7 Mar 2013 22:12:16 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="9357aff9dc287a4774c734240519a392"; logging-data="13351"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Q86vuqXLX0HMCyLYRMep0"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
In-Reply-To <khan0m$ud6$1@dont-email.me>
Cancel-Lock sha1:N7IWQ4JFZAw+kcVtCzqf0wh7/1o=
Xref csiph.com comp.lang.python:40829

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Unhelpful traceback John Nagle <nagle@animats.com> - 2013-03-06 22:33 -0800
  Re: Unhelpful traceback Andrew Berg <bahamutzero8825@gmail.com> - 2013-03-07 00:57 -0600
  Re: Unhelpful traceback Chris Rebert <clp2@rebertia.com> - 2013-03-06 23:04 -0800
  Re: Unhelpful traceback Dave Angel <davea@davea.name> - 2013-03-07 08:10 -0500
    Re: Unhelpful traceback John Nagle <nagle@animats.com> - 2013-03-07 10:42 -0800
      Re: Unhelpful traceback John Nagle <nagle@animats.com> - 2013-03-07 14:13 -0800
        Re: Unhelpful traceback Ian Kelly <ian.g.kelly@gmail.com> - 2013-03-07 15:32 -0700
    Re: Unhelpful traceback John Nagle <nagle@animats.com> - 2013-03-07 13:23 -0800
      Re: Unhelpful traceback Dave Angel <davea@davea.name> - 2013-03-07 19:23 -0500

csiph-web