Re: Problem with csv2lyx

2008-09-18 Thread rgheck
José Matos wrote: On Thursday 18 September 2008 18:47:44 rgheck wrote: See if what I committed at r26456 seems good. If not, feel free to clean it up as you wish. I will change it because the workaround is due to a bug in older versions of the python library csv and not to any program

Re: Problem with csv2lyx

2008-09-18 Thread José Matos
On Thursday 18 September 2008 18:47:44 rgheck wrote: > See if what I committed at r26456 seems good. If not, feel free to clean > it up as you wish. I will change it because the workaround is due to a bug in older versions of the python library csv and not to any program logic. At least a comment

Re: Problem with csv2lyx

2008-09-18 Thread rgheck
José Matos wrote: On Thursday 18 September 2008 18:11:43 rgheck wrote: That one worked here, too. Can you find out what version you csv.py is? Try the attached this time. I see what you are doing and I agree. The problem should be the None value for the dialect, why this fails with t

Re: Problem with csv2lyx

2008-09-18 Thread rgheck
Konrad Hofbauer wrote: rgheck wrote: That one worked here, too. Can you find out what version you csv.py is? csv.py does not carry version information in the header, but it sits in Frameworks/Python.framework/Versions/2.3/lib/python2.3/csv.py, and Python is version 2.3.5. Try the attached

Re: Problem with csv2lyx

2008-09-18 Thread Konrad Hofbauer
rgheck wrote: That one worked here, too. Can you find out what version you csv.py is? csv.py does not carry version information in the header, but it sits in Frameworks/Python.framework/Versions/2.3/lib/python2.3/csv.py, and Python is version 2.3.5. Try the attached this time. Both the p

Re: Problem with csv2lyx

2008-09-18 Thread José Matos
On Thursday 18 September 2008 18:11:43 rgheck wrote: > That one worked here, too. Can you find out what version you csv.py is? > > Try the attached this time. I see what you are doing and I agree. The problem should be the None value for the dialect, why this fails with this file and not with oth

Re: Problem with csv2lyx

2008-09-18 Thread José Matos
On Thursday 18 September 2008 16:42:35 rgheck wrote: > Works here. I'm guessing maybe you have an older version of python? I > think line_num may only have come into being with python 2.5 (see here: > http://docs.python.org/whatsnew/modules.html). If so, probably we > shouldn't use that but should

Re: Problem with csv2lyx

2008-09-18 Thread rgheck
Konrad Hofbauer wrote: Fast reply, including correct diagnose, and patch! :-) rgheck wrote: Works here. I'm guessing maybe you have an older version of python? Indeed. Python 2.3.5. Since this is the system-default for a fully patched Mac OS X 10.4, this should be fixed (or mentioned in the

Re: Problem with csv2lyx

2008-09-18 Thread Konrad Hofbauer
Fast reply, including correct diagnose, and patch! :-) rgheck wrote: Works here. I'm guessing maybe you have an older version of python? Indeed. Python 2.3.5. Since this is the system-default for a fully patched Mac OS X 10.4, this should be fixed (or mentioned in the docu that it does not w

Re: Problem with csv2lyx

2008-09-18 Thread rgheck
Konrad Hofbauer wrote: Hello, I try to import the attached simple csv file into Lyx, but csv2lyx fails with: $ python /Applications/LyX-1.6.0rc2.app/Contents/Resources/scripts/csv2lyx.py NoiseResult.csv Traceback (most recent call last): File "/Applications/LyX-1.6.0rc2.app/Contents/Reso