Hi

I am having problems with my install of LyX 2.0.3 on Win7 64 bit. I hadn't 
used it for a few weeks, but when I tried to use it last week, I came up with a
number of configuration issues. One of the biggest problems relates to some
python commands not working. If I try to insert a bibliography, or get TeX
information from Tools -> TeX Information, I get errors from TeXFiles.py such as
below:

Running: python -tt "C:/Program Files (x86)/LyX
2.0.3/bin/../Resources/scripts/TeXFiles.py"
D:/LyXSVN/LyX2.0x/src/support/Systemcall.cpp(270): Systemcall: 'python -tt
"C:/Program Files (x86)/LyX 2.0.3/bin/../Resources/scripts/TeXFiles.py"'
finished with exit code 1
Error: Could not update TeX information
----------------------------------------
The script `C:/Program Files (x86)/LyX
2.0.3/bin/../Resources/scripts/TeXFiles.py' failed.
12:11:19.449: python -tt "C:/Program Files (x86)/LyX
2.0.3/bin/../Resources/scripts/TeXFiles.py"
12:11:19.452: Indexing files of type cls
12:11:19.456: Traceback (most recent call last):
12:11:19.459:   File "C:/Program Files (x86)/LyX
2.0.3/bin/../Resources/scripts/TeXFiles.py", line 97, in <module>
12:11:19.462:     dirs = cmdOutput('kpsewhich --show-path=' +
kpsetype).replace('!!', '').strip()
12:11:19.468:   File "C:/Program Files (x86)/LyX
2.0.3/bin/../Resources/scripts/TeXFiles.py", line 47, in cmdOutput
12:11:19.472:     fout = os.popen(cmd)
12:11:19.475: WindowsError: [Error 2] The system cannot find the file specified:
'C:\\Windows\\system32\\cmd.exe;C:\\Program Files
(x86)\\Android\\android-sdk\\platform-tools /c kpsewhich --show-path=.tex'


These seem to indicate (I'm no expert in Python by any means!) a problem running
the command fout = os.popen(cmd). It seems that somehow the path to the windows
"cmd.exe /c kpsewhich..." command seems to have a reference to the (totally
unrelated) path to the android-sdk tools I previously had installed on my
system. If I go to the python subdirectory of the LyX install, and run
python.exe, and attempt to duplicate a similar command manually, I get the
following similar error:

Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
 import os
 fout = os.popen("dir")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
WindowsError: [Error 2] The system cannot find the file specified:
'C:\\Windows\\system32\\cmd.exe;C:\\Program Files(x86)
\\Android\\android-sdk\\platform-tools /c dir'

This also contains a reference to the android-sdk, but the question is where
does it get it from, and how can I get rid of it? I've tried uninstalling and
reinstalling LyX more than once (including an intermediate uninstall of the
android-sdk, as well as a registry search to remove any references to
android-sdk). I've swapped from MikTeX to TeX Live, installed using various LyX
installers, wiped any local profile data from MikTeX, LyX and any other folders
that seemed relevant, but still this issue comes up. I've checked the content of
all files in the LyX folder for references to android-sdk, and all preferences,
paths and system paths etc.

Can anyone help to put me out of my misery as to why I can't get this issue
resolved?

Thanks

Nick


Reply via email to