Comment 3 for bug 482093

Revision history for this message
juve (awakener) wrote :

I did more tests:

Test Scenario:
Trigger PDF/EPS conversion from Lyx using Inkscape 0.46/0.47
and use different versions of python (copied to in inkscape's python path).

Specifcations:
- PATH = nothing relevant to Lyx or python by default
- LyX is started from directory "C:\lyx\bin"
- LyX's python dlls are located in "C:\lyx\python". I believe LyX adds this path internally to the avaliable paths (while running)

Observations:
- inkscape 0.46's python.exe searches for python25.dll
- inkscape 0.47's python.exe searches for python25.dll
- 0.46's 0.47's python.exe files are identical
- LyX's python searches for python26.dll (which it seems to find in case inkscape/python/python.exe is invoked via LyX-->Inkscape)
- python.exe opens a commandline window
- pythonw.exe does not

Test 1.1: use 0.47 with default 0.47's python:
- shows commandline popups, title: ..full\path\to\inkscape-0.47\python\python.exe
- produces no images in the PDF (no error msg), see 1st attachment: imagetest_default-inkscape-python-for-inkscape-0.47.pdf

Test 1.2: use 0.47 with lyx's python:
- shows commandline popups, title: ..full\path\to\inkscape-0.47\python\python.exe
- produces a valid PDF with images (PDF is bigger due to new PDF conversion in 0.47), see 2nd attachment: imagetest_copied-lyx-python-to-inkscape-0.47.pdf

Test 1.3: use 0.47, delete inkscape-0.46/python/python.exe
- shows commandline popups, title: C:\lyx\python\python.exe
- produces valid (big) PDFs

Test 2.1: use 0.46 with default 0.46's python:
- no popups
- valid PDF (small size), see 3rd attachment: imagetest_default-inkscape-python-for-inkscape-0.46.pdf

Test 2.2: use 0.46 with Lyx's python:
- no popups
- valid PDF (same size as Test 3), see 4th attachment: imagetest_copied-lyx-python-to-inkscape-0.46.pdf

Test 2.3: use 0.46, delete inkscape-0.47/python/python.exe
- no popups
- valid (small) PDF

Test 3: use inkscape 0.46/0.47 without LyX, from the commandline
- no popups (maybe since we already are in a commandline window)
- valids PDF-images are produced in all cases
- needs the default python-binaries shipped with inkscape, since Inkscape will not find LyX's python26.dll without being invoked from LyX

Assumptions:
- Inkscape is delegating/processing the PDF/EPS conversion to/with inkscape/python/python.exe
- Inkscape 0.46, if invoked from another tool, did image processing without showing popups. Results are valid for both versions of python.
- Inkscape 0.47, if invoked from another tool, shows a python commandline popup and when inkscape uses it's own (old) python the other tool (LyX) can't use (or maybe find) the PDF/EPS-output of python

Conclusion:
I am not sure if it is really only LyX's fault. Maybe LyX has some strange commandline/external tool handling, but since everything worked fine with 0.46, I believe that this issue could be fixed by re-adding the former (more robust?) commandline/python-invokation handling to Inkscape 0.47 again.