Dear lyx users,

with OS X 10.4.11 + Texlive2008 (MacTex) + LyX 1.6.1 opening lyx files from 1.5 I got lyx2lyx failures, and invoking lyx2lyx at the command line results in:

/Applications/TeX/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx "being classylyx.lyx"
Traceback (most recent call last):
File "/Applications/TeX/LyX.app/Contents/Resources/lyx2lyx/ lyx2lyx", line 23, in <module>
    import LyX
File "/Applications/TeX/LyX.app/Contents/Resources/lyx2lyx/ LyX.py", line 25, in <module>
    import gzip
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ lib/python2.5/gzip.py", line 9, in <module>
    import zlib
ImportError: No module named zlib

So... then I changed my Python install to the 2.6.1; and updated my .profile so that Python launches as 2.6.1 for me, and tested lyx2lyx at the command line, which worked...

until I forgot to add the new python path to the front of Lyx's internally stored path.

so frustration resolved, and posted in case other os x users find this.

Sam Rusell

Reply via email to