_csv.Error: string with NUL bytes

Larry Bates larry.bates at websafe.com
Thu May 3 12:11:08 EDT 2007


fscked wrote:
> Anyone have an idea of what I might do to fix this? I have googled adn
> can only find some random conversations about it that doesn't make
> sense to me.
> 
> I am basically reading in a csv file to create an xml and get this
> error.
> 
> I don't see any empty values in any fields or anything...
> 

You really should post some code and the actual traceback error your
get for us to help.  I suspect that you have an ill-formed record in
your CSV file.  If you can't control that, you may have to write your
own CSV dialect parser.

-Larry



More information about the Python-list mailing list