On 29/10/2018 11:13, Kornel Benko wrote:
Am Montag, 29. Oktober 2018 10:42:09 CET schrieb Daniel <xraco...@gmx.de>:
On 25/10/2018 11:34, Daniel wrote:
On 25/10/2018 10:11, Kornel Benko wrote:
Am Donnerstag, 25. Oktober 2018 07:18:55 CEST schrieb Daniel
<xraco...@gmx.de>:
On 24/10/2018 20:00, Daniel wrote:
On 24/10/2018 17:48, Kornel Benko wrote:
Am Mittwoch, 24. Oktober 2018 17:34:45 CEST schrieb Kornel Benko
<kor...@lyx.org>:
....
Actually, the LyX configure is not working so I have no
textclasses and
I cannot "Reconfigure...".

The console shows the following (which might be related):

support\Systemcall.cpp (261): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'

did not start!
support\Systemcall.cpp (262): error The process failed to start.
Either
the invoked program is missing, or you may have insufficient
permissions
to invoke the program.

Daniel

This looks wrong to me. Binary-dir and the path to configure.py
should be related.
I would have expected configure.py to lie in
"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

(I may be wrong of course)

Next question:
      How did you start lyx?
If you want to use the source dir as system dir (instead of installed
dir) then you may start lyx with
      # lyx -sysdir "C:/Users/Daniel/LyXSource/lyx/lib"

      Kornel


I was starting LyX from

C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/

... But still get

Library directory: ~\LyXSource\lyx\lib\

Since configure.py is indeed in

"C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/Resources/"

I tried

# .\LyX.exe -sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"

Expecting LyX to change the system directory accordingly. But still get
the same error.

Here is all the stuff I am seeing in the console until I have created a
new document. Maybe something makes sense:

PS C:\Users\Daniel\LyXSource\lyx-build\LYX_INSTALLED\bin> .\LyX.exe
-sysdir "C:\Users\Daniel\LyXSource\lyx-build\LYX_INS
TALLED"
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

That's a main reason. Without python in path, you can neither
configure nor read old lyx-files.
(lyx2lyx needs python for instance)

LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/LyXSource/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/LyXSource/lyx-build/LYX_INSTALLED/bin/"'
did not start!
support\Systemcall.cpp (269): error The process failed to start. Either
the invoked program is missing,
^^^^^^^^^^^^^^^^^^^^^^^^^

     Kornel


I reinstalled Python and noticed that the option to set the PATH is not
checked by default. So I checked it. This should probably be mentioned
in the documentation on building LyX on Windows.

I am back to a python problem, I guess. I just redid the whole procedure
for compiling LyX. I have changed nothing else on my system. Here is the
error I get when (re)configuring LyX:

==============================================================
Looking for python v2.x or 3.x ...
Examining C:/Program Files/MiKTeX 2.9/miktex/bin/x64//pythontex.exe
Warning: No python v2.x or 3.x binary found.
LyX: reconfiguring user directory
support\Systemcall.cpp (268): Systemcall: 'python -tt
"C:/Users/Daniel/lyx/devel/lyx/lib/configure.py"
--binary-dir="C:/Users/Daniel/lyx/devel/build/LYX_INSTALLED/bin/"' did
not start!
support\Systemcall.cpp (269): error The process failed to start. Either
the invoked program is missing, or you may have insufficient permissions
to invoke the program.
LyX: Done!
==============================================================

Not sure why LyX does not find the python binary any more...

Daniel


How do you start lyx? You could write a wrapper .bat file which sets the PATH 
accordingly,
before starting lyx.

I guess I'll have to look into that then.

You know, this is not a python or lyx problem, but the environment in which
you start lyx is not OK.
Not sure I understand the comment about the environment. The environment I am using is Windows 10, right? So Windows 10 is not OK? Not sure what you mean. I have instructed python during installation to add to the PATH and it was added. So, I don't see why LyX does not find it.

Daniel

Reply via email to