On Monday 25 January 2010 16:13:30 Stefano Franchi wrote:
> I am trying to open a lyx file produced by a conversion script and
> Lyx (1.6.5) fails claiming lyx2lyx  could not convert it.
> The lyx file is in lyx format 2.16 (or so it claims in its header).
> 
> Launching lyx2lyx from the console gives the following error:
> 
> 
> Warning: An error ocurred in 225, <function add_end_layout at 0x295f230>
> Traceback (most recent call last):
>   File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 83, in <module>
>     main()
>   File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 77, in main
>     doc.convert()
>   File "/usr/share/lyx/lyx2lyx/LyX.py", line 500, in convert
>     conv(self)
>   File "/usr/share/lyx/lyx2lyx/lyx_1_4.py", line 449, in add_end_layout
>     struct_stack.pop()
> IndexError: pop from empty list
> 
> Any insight on what the problem may be?

I suspect of the conversion script. :-)

The lyx format at the time of 2.16 was a lot less structured than it is now in 
the sense that it would accept incorrect files and try to do the right thing.

Could you, please, send me privately a part of the converted file where this 
happens?

> Cheers,
> 
> S.

-- 
José Abílio

Reply via email to