On 29/10/2018 14:03, Daniel wrote:
On 29/10/2018 13:07, Daniel wrote:
On 29/10/2018 12:40, Kornel Benko wrote:
Am Montag, 29. Oktober 2018 12:05:29 CET schrieb Daniel
<xraco...@gmx.de>:
On 29/10/2018 11:41, Kornel Benko wrote:
Am Montag, 29. Oktober 2018 11:27:48 CET schrieb Daniel
<xraco...@gmx.de>:
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
No, the environment are the settings you use. One of them is PATH.
Some other are for example LANGUAGE, HOME, USER, NLSPATH, TMPDIR.
(Okay, maybe the right term is "environment variable"?)
So, my PATH (or LANGUAGE, etc.) is set wrong? I just had a look at it
and they seem all right. What makes you think they are wrong?
Could you post PATH?
echo $Env:PATH gives:
C:\Program Files (x86)\ImageMagick-7.0.7-Q16;C:\Program Files
(x86)\Common
Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program
Files\Git\cmd;C:\Program Files\SumatraPDF;C:\Program
Files\nodejs\;C:\xampp\php;C:\ProgramData\ComposerSetup\bin;C:\Program
Files\Microsoft VS Code\bin;C:\Program Files\MiKTeX
2.9\miktex\bin\x64\;C:\Program Files (x86)\LyX 2.3\Perl\bin;C:\Program
Files\Pandoc\;C:\Program Files\CMake\bin;C:\Program
Files\TortoiseGit\bin;C:\Users\Daniel\AppData\Local\Programs\Python\Python37-32\Scripts\;C:\Users\Daniel\AppData\Local\Programs\Python\Python37-32\;C:\Program
Files (x86)\Windows
Kits\10\bin\10.0.17134.0\x64;C:\Users\Daniel\AppData\Local\Microsoft\WindowsApps;C:\Program
Files\Microsoft VS
Code\bin;C:\Users\Daniel\AppData\Roaming\npm;C:\Users\Daniel\AppData\Roaming\Composer\vendor\bin;
LyX outputs:
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.
What is this "pythontex.exe" ???
Some googling gives
https://github.com/gpoore/pythontex/issues/123
So, maybe you don't have python installed at this place.
(I think, python != pythontex, because pythontex needs to find python)
No, MiKTeX is installed at
C:/Program Files/MiKTeX 2.9/miktex/bin/x64/
Python is installed at
C:\Users\Daniel\AppData\Local\Programs\Python\Python37-32\
But that is in PATH as well.
Now, that is odd. When I start LyX via explorer double clicking the
LyX.exe in
C:\Users\Daniel\lyx\stable\build\LYX_INSTALLED\bin
I get the error. However, when I then pin LyX to the task bar, close and
reopen from the taskbar, it works...
Another observation: the LyX binary I got through the official installer
is not plagued by this problem.
Daniel