Am Samstag, 28. Mai 2005 11:16 schrieb Christian Payne:
Run lyx2lyx from the commandline on your file:

python lyx2lyx yourfile.lyx > convertedfile.lyx

Replace python with the full path to your python executable if it is not in your path.
If you get errors, post them to the list.


Ok, here is what happens when I run the python lyx2lyx script:
---
C:\Program Files\lyx\share\lyx\lyx2lyx>python lyx2lyx thesis.lyx > thesis-win.lyx
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "lyx2lyx", line 19, in ?
    import getopt, sys, string, re
ImportError: No module named getopt
---


Result is obviously an empty .lyx file.


Now if I run the lyx2lyx binary program then I get the following:
---
C:\Program Files\lyx\bin>lyx2lyx thesis.lyx > thesis-win.lyx
Malformed LyX file: Missing 'collapsed'.
Malformed LyX file: Missing 'collapsed'.
Malformed lyx file: Missing 'wide'.
Malformed lyx file: Missing 'wide'.
---

The resulting file opens up but is messed up.


Sorry if I'm not providing any extra information that I should be but I don't really know much about python (or Windows for that matter). Since in theory it is supposed to work, is it worth trying to install a recent Linux version of LyX and trying that?

Thanks for all your help and any suggestions are appreciated!


Regards,

Christian.

Reply via email to