Re: read csv error question

2009-02-24 Thread John Machin
On Feb 24, 10:42 am, rdmur...@bitdance.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 universal-newline mode?

Re: read csv error question

2009-02-23 Thread MRAB
Benjamin Kaplan wrote: On Mon, Feb 23, 2009 at 6:43 PM, MRAB > 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

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 wrote: > > > On Mon, Feb 23, 2009 at 6:43 PM, M

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

Re: read csv error question

2009-02-23 Thread Benjamin Kaplan
On Mon, Feb 23, 2009 at 6:43 PM, MRAB 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 universal-newline mode? >

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 = csv.r

read csv error question

2009-02-23 Thread rdmurray
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 > > read

read csv error question

2009-02-23 Thread Vincent Davis
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 = csv.reader(open('/Volumes/vince