On 2010-04-14, Benjamin Kay wrote: > I cannot import Latex code into Lyx using tex2lyx or using > File-Import-Latex (plain). ...
> The error from the command line (tex2lyx -f > Latex_Output_for_Housing_Class_1.tex tmp.lyx ) is more elaborate but no > more helpful to me: > 'import site' failed; use -v for traceback > 'import site' failed; use -v for traceback > Traceback (most recent call last): > File "/usr/share/lyx/scripts/layout2layout.py", line 15, in <module> > import os, re, string, sys > File "/usr/lib/python2.6/os.py", line 49, in <module> > import posixpath as path > File "/usr/lib/python2.6/posixpath.py", line 16, in <module> > import warnings > File "/usr/lib/python2.6/warnings.py", line 6, in <module> > import linecache > ImportError: No module named linecache > Could not run layout conversion script layout2layout.py. > We failed to find the layout '' in the layout list. You MUST > investigate! > Segmentation fault This looks very much like a broken Python installation. The module "site.py" is a very basic one python2.6-minimal: /usr/lib/python2.6/site.py and should be found. Do you have a local Python installation? What is the Python version and what is the PYTHONPATH #> python import sys sys.path ? Do you get the same error on the Windows machine? Günter
