LyXpdf latex not availeble in lyx

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
hilbert
Posts: 3
Joined: Tue Jul 22, 2014 2:10 am

pdf latex not availeble in lyx

Post by hilbert »

I just installed the lyx 2.1.1 bundle on a 64 bit windows 7 machine.
I cannot generate pdf's since the view button is is not active.
Pdf's cannot be generated since in tools->preferences->file handling-> file formats i cannot select a default output format, there are non available.

When i try to reconfigure lyx i get the following error:
The system reconfiguration has failed.
default textclass is used but lyx may not be able to work properly.
please reconfigure again if needed.

When i look at the message plane it gives the following trace back for the reconfiguration error:

Code: Select all

Traceback (most recent call last):
10:09:05.738:   File "C:/Program Files (x86)/LyX 2.1/Resources/configure.py", line 1536, in <module>
10:09:05.753:     LATEX = checkLatex(dtl_tools)
10:09:05.753:   File "C:/Program Files (x86)/LyX 2.1/Resources/configure.py", line 480, in checkLatex
10:09:05.753:     if cmdOutput(PLATEX + ' chklatex.ltx').find('pLaTeX2e') != -1:
10:09:05.753:   File "C:/Program Files (x86)/LyX 2.1/Resources/configure.py", line 68, in cmdOutput
10:09:05.753:     cmd = 'cmd /d /c pushd ' + shortPath(os.getcwdu()) + '&' + cmd
10:09:05.753:   File "C:/Program Files (x86)/LyX 2.1/Resources/configure.py", line 84, in shortPath
10:09:05.753:     from ctypes import windll, create_unicode_buffer
10:09:05.753:   File "C:\Python27\lib\ctypes\__init__.py", line 10, in <module>
10:09:05.753:     from _ctypes import Union, Structure, Array
10:09:05.753: ImportError: DLL load failed: %1 is not a valid Win32 application.


From the last line it looks as if there is a clash between a 64 bit python and 32 bit parts of lyx, but i am a bit out of my depth here.
Does anybody have any idea's what the root cause might be, and how i might go about fixing it?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

hilbert
Posts: 3
Joined: Tue Jul 22, 2014 2:10 am

Re: pdf latex not availeble in lyx

Post by hilbert »

I solved the issue myself. Here is the answer for those who have the same problem.
Lyx is looking for python in the lyx directory: $LyXDir\Python;$LyXDir\Python\Lib; (Tools->preferences->Paths)
When i manually changed these to C:\Python27 and C:\Python27\Lib it did work.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: pdf latex not availeble in lyx

Post by Stefan Kottwitz »

Hi hilbert,

welcome to the forum!

Thank you very much for adding the solution which you found yourself. This may help further people who arrive here via google looking for help with such a problem.

Stefan
LaTeX.org admin
Post Reply