He Jin wrote:
Hi everybody,

I found a very strange problem in win32/cygwin environment using lyx commandline.

When I try to translate a lyx file into .tex format using command line "lyx --export latex YYY.lyx", it reported as following:

******************************************************
Traceback (most recent call last):
File "e:/lyx/lyx/share/lyx/lyx2lyx/lyx2lyx", line 18, in ?
import getopt, sys, string, re
ImportError: No module named getopt
------------------------------
ERROR!
An error occured while running the conversion script.
******************************************************
It sounds like the installation of LyX win32 lacked some module named "getopt" but I found getopt.py and getopt.pyc in
the e:/lyx/lyx/bin/lib/ directory.

Sounds like a path problem (the Python files are there but Python can't find them).

Besides, some other files could be translated smoothly

From a command line, starting in the same directory?

and if I use the "export" option in LyX GUI, the YYY.lyx could also be sucessfully
translated into YYY.tex.


Anybody could give some hints ?

Best regards,

He Jin

-- Paul



Reply via email to