Re: solved: lyx2lyx fails: OS X 10.4.11 + Texlive2008 (MacTex) + LyX 1.6.1

2009-01-28 Thread Konrad Hofbauer

Samuel Russell wrote:

ImportError: No module named zlib


I had the same problem with a macports-installed python 2.5.
The problem is that the basic macports-python packeage misses a lot of 
things. In this particular case, you also need to install py25-zlib from 
macports.


HTH,
Konrad



solved: lyx2lyx fails: OS X 10.4.11 + Texlive2008 (MacTex) + LyX 1.6.1

2009-01-28 Thread Samuel Russell

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 

import LyX
  File "/Applications/TeX/LyX.app/Contents/Resources/lyx2lyx/ 
LyX.py", line 25, in 

import gzip
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/gzip.py", line 9, in 

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