On 04/17/2010 05:19 PM, Enrico Forestieri wrote:
On Sat, Apr 17, 2010 at 03:30:10PM -0400, rgheck wrote:

On 04/17/2010 02:16 PM, Enrico Forestieri wrote:
On Sat, Apr 17, 2010 at 03:04:41PM +0200, [email protected] wrote:

Author: rgheck
Date: Sat Apr 17 15:04:41 2010
New Revision: 34186
URL: http://www.lyx.org/trac/changeset/34186

Log:
LyX version info for InsetInfo.
I am not able to load old documents anymore:

Traceback (most recent call last):
   File "/usr/local/src/lyx/lyx-devel/lib/lyx2lyx/lyx2lyx", line 23, in<module>
     import LyX
   File "/usr/local/src/lyx/lyx-devel/lib/lyx2lyx/LyX.py", line 91, in<module>
     convert = getattr(__import__("lyx_" + step), mode)
   File "/usr/local/src/lyx/lyx-devel/lib/lyx2lyx/lyx_2_0.py", line 25, 
in<module>
     import lyx2lyx_version
ImportError: No module named lyx2lyx_version
Error: Conversion script failed
----------------------------------------
/home/ef/newfile3.lyx is from an older version of LyX, but the lyx2lyx script 
failed to convert it.

The problem seems to be that lyx2lyx_version.py gets generated in the
build dir, whereas python expects it in the source dir?

I'm not sure what the problem is. It works fine here (F12), though I
haven't tried it except running from the build dir. Anybody else
have an idea?
The problem occurs only when running from the build dir and the only
solution I found is copying lyx2lyx_version.py to the source dir:

   cp<builddir>/lib/lyx2lyx/lyx2lyx_version.py<srcdir>/lib/lyx2lyx/

What build system is this with? I should say I'm no expert on any of these. Is the issue that this file isn't being copied to somewhere it ought to be?

rh


Reply via email to