> 
> So, when you are in /Applications/LyX.app/Contents/MacOS in the terminal use
this command:
> 
> ./lyx
> 
> (that's a period followed by a slash followed by the name of the executable)
> 
*facepalm*  I always forget that.  Command line working fine now, and I was able
to diagnose the csv import issue.  The problem was due to the carriage returns 
in
 the .csv file (which was exported from Excel, and therefore had carriage 
returns
 rather than newlines at the end of each row). Replaced the \r's with \n's, and
 now the import seems to work fine. 

The error message (below, seen trying to import the uncorrected file) seems to
 indicate that there would be a way to open the file such that the \r would be
 interpreted as newline when running csv2lyx.py.  For future reference, is 
there a
 way to force this mode in Lyx when importing csv's, or is replacing all \r's 
the
 better option?


The error message:


$ lyx -i csv manualParameters.csv
Traceback (most recent call last):
  File "/Applications/Lyx.app/Contents/Resources/scripts/csv2lyx.py", line 164,
in <module>
    for row in reader:
_csv.Error: new-line character seen in unquoted field - do you need to open the
file in universal-newline mode?
Error: Cannot convert file
----------------------------------------
An error occurred whilst running python -tt
 '/Applications/Lyx.app/Contents/Resourc


Thanks again,
Kelly

Reply via email to