Windows 7: Jython problem - error loading python.dll (error 14001)

Asked by Rainer

Yes, I am aware that this is a Jython problem and not a SikuliX problem, but as Jython is required for SikuliX, maybe someone else in the SikuliX community has encountered the same problem.

I use the IntelliJ IDEA environment for (part of) my SikuliX development work. For that, one has to run the Jython installer to create the Jython interpreter that can be used in IDEA. This works as expected on my Windows 10 machines. Now for a specific development task I tried to install my environment on a Windows 7 machine, but ran into this problem when trying to start the Jython interpreter:

Error loading Python DLL: C:\jython2.7.1\bin\python27.dll (error code 14001)

The problem seems to be addressed (and fixed) here:
https://bugs.jython.org/issue2620

Does anyone know whether there is a modified Jython installer available where this issue is fixed? I am just trying to avoid having to compile everything from scratch …

Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Rainer
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

IMHO you found the issue, but the fix does not seem to be something in the Jython sources, but has to be done manually according to the recipe as mentioned in the issue as solution:
https://github.com/jeff5/jython-devguide/blob/6af870e1461dc96aaef2a4be954e0b5c61bb3567/setup_jy.rst#the-launcher-jythonexe

Revision history for this message
Rainer (formulator) said :
#2

Yes, thank you, RaiMan, I was just hoping that someone compiled a new jython-installer.jar where all of this has already been taken care of.

Revision history for this message
Rainer (formulator) said :
#3

Sorry, reopened by mistake.

Revision history for this message
RaiMan (raimund-hocke) said :
#4

Another idea might be, to try with the jython-standalone jar and add a .cmd, that takes care for starting the Jython interpreter in a way it is accepted by IntelliJ IDEA.