Re: read csv error question

2009-02-24 Thread John Machin
On Feb 24, 10:42 am, rdmur...@bitdance.com wrote: Vincent Davis vinc...@vincentdavis.net wrote: I am trying to read a csv file from excel on a mac. I get the following error.SystemExit: file some.csv, line 1: new-line character seen in unquoted field - do you need to open the file in

Re: read csv error question

2009-02-23 Thread MRAB
Vincent Davis wrote: I am trying to read a csv file from excel on a mac. I get the following error. SystemExit: file some.csv, line 1: new-line character seen in unquoted field - do you need to open the file in universal-newline mode? I was using the example code import csv, sys reader =

Re: read csv error question

2009-02-23 Thread Benjamin Kaplan
On Mon, Feb 23, 2009 at 6:43 PM, MRAB goo...@mrabarnett.plus.com wrote: Vincent Davis wrote: I am trying to read a csv file from excel on a mac. I get the following error. SystemExit: file some.csv, line 1: new-line character seen in unquoted field - do you need to open the file in

Re: read csv error question

2009-02-23 Thread Vincent Davis
Thanks for the help the U was what I needed. I was reading the documentation here.http://docs.python.org/library/csv.html but I could not find the term universal-newline mode, In fact where do you find U I have not read it word for word but it is not obvious to me. I do even see anything about rb

Re: read csv error question

2009-02-23 Thread Vincent Davis
I just thought to look in the documentation for open() It seems this may contain the answers to my questions. I am just to new to python to know where my problem is, Thanks Vincent Davis 720-301-3003 On Mon, Feb 23, 2009 at 4:52 PM, Benjamin Kaplan benjamin.kap...@case.eduwrote: On Mon, Feb

Re: read csv error question

2009-02-23 Thread MRAB
Benjamin Kaplan wrote: On Mon, Feb 23, 2009 at 6:43 PM, MRAB goo...@mrabarnett.plus.com mailto:goo...@mrabarnett.plus.com wrote: Vincent Davis wrote: I am trying to read a csv file from excel on a mac. I get the following error. SystemExit: file some.csv, line