Re: Converting from older version

2005-06-02 Thread Angus Leeming
Christian Payne wrote:
> 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

You are using the stripped-down python that Ruurd packaged with LyX 1.3.5.
Throw it away and get a proper distribution from
http://www.python.org/download/

> 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'.

Interesting. Can you make your thesis publicly available for download, or
can you reproduce the problem with a stripped-down snippet that you could
post to the list?

> is it worth trying to install a recent Linux version of LyX 
> and trying that? 

Nope. Stick with what you have and we'll try and fix the bugs that you've
uncovered.
 
-- 
Angus



RE: Converting from older version

2005-06-02 Thread Nicolas
Hei!

Install the last version of Python, that is, 2.4.1. Download the tex2lyx
package from the wiki (http://wiki.lyx.org/LaTeX/LatexToLyx). It comes with
a lyx2lyx tool that works for sure (maintain tex2lyx files separate from Lyx
files!). And then run the lyx2lyx tool using the full path to call python
(e.g. C:\tools\Python24\python.exe). This may also help:
http://wiki.lyx.org/LaTeX/Tex2LyxInvokedFromLyx

Nicolás

> -Original Message-
> From: Christian Payne [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 02, 2005 8:46 AM
> To: lyx-users@lists.lyx.org
> Subject: Re: Converting from older version
> 
> > 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.



Re: Converting from older version

2005-06-01 Thread Christian Payne

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.


Re: Converting from older version

2005-05-29 Thread Georg Baum
Am Samstag, 28. Mai 2005 11:16 schrieb Christian Payne:

> I created this file and still get the same error. I downloaded the
> program suggested also on that page and the same result. I then tried
> running this program manually from the command line but the results
> loaded into LyX are totally messed up.

This looks like a lyx2lyx bug, assuming you get no errors when you run it.

> Is this problem caused by the Windows version?

Maybe. But unless you tell us the exact errors messages of lyx2lyx we 
can't know.

> Would installing a recent 
> Linux version and using this to do the conversion help?

Maybe.

> Or is it simply 
> that files from my old version ("1.1.6fix4") are just too old to be
> accessed in the more recent version?  If so, what are my options?

lyx2lyx is supposed to convert your files just fine. I'd suggest the 
following procedure:

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.
If not, try loading the converted file in lyx.
If that gives errors, try to reduce your file to a minimal example file 
that still produces the errors and post that file.
Of course the best option would be to find the bug in lyx2lyx and send a 
patch to fix it ;-)


Georg



Re: Converting from older version

2005-05-28 Thread Christian Payne

Christian Payne <[EMAIL PROTECTED]> writes:

Can anyone suggestion how I can fix this problem? In particular


Did you check the wiki? You probably just need to create the 
lyx2lyx.cmd file:

http://wiki.lyx.org/LyX/LyXWinTips


I created this file and still get the same error. I downloaded the
program suggested also on that page and the same result. I then tried
running this program manually from the command line but the results
loaded into LyX are totally messed up.

Is this problem caused by the Windows version? Would installing a recent
Linux version and using this to do the conversion help? Or is it simply
that files from my old version ("1.1.6fix4") are just too old to be
accessed in the more recent version?  If so, what are my options?


Regards,

Christian.



Re: Converting from older version

2005-05-27 Thread Milos Komarcevic
Christian Payne <[EMAIL PROTECTED]> writes:
> Can anyone suggestion how I can fix this problem? In particular

Did you check the wiki? You probably just need to create the 
lyx2lyx.cmd file:
http://wiki.lyx.org/LyX/LyXWinTips
 
> it is ESSENTIAL that the document not be damaged in any way!

Keep a backup copy then.

Regards,
Milos