Fail to initialize JEP due to missing threading module

52 views
Skip to first unread message

Guillaume Dufour

unread,
Mar 19, 2021, 5:52:40 AM3/19/21
to Jep Project
Hello,

first of all thanks to create JEP.

I use Jep localy on linux and windows environment and it works fine.

But on my CI environment (Jenkins). It fail to load JEP.
...
Caused by: java.lang.IllegalStateException: Failed to import threading module at jep.MainInterpreter.initializePython(Native Method) at jep.MainInterpreter.access$100(MainInterpreter.java:64) at jep.MainInterpreter$1.run(MainInterpreter.java:148)

I see this error is from 

I think it's due to my linux env. but don't know why.

When we execute a threading demo code on python directly it's works well.
I think it's due to some missing environment variable but which? no  idea?

Could you help me?
Regards
Guillaume Dufour


Guillaume Dufour

unread,
Mar 19, 2021, 6:00:06 AM3/19/21
to Jep Project
It's a python 2.7.

Guillaume Dufour

unread,
Mar 19, 2021, 3:29:43 PM3/19/21
to Jep Project
Hello,

last try ;(
sorry for the spam.

I try to add the python module directory in jepConfig.addIncludePaths:
Add sys path: /usr/lib64/python27.zip
Add sys path: /usr/lib64/python2.7
Add sys path: /usr/lib64/python2.7/plat-linux2
Add sys path: /usr/lib64/python2.7/lib-tk
Add sys path: /usr/lib64/python2.7/lib-old
Add sys path: /usr/lib64/python2.7/lib-dynload
Add sys path: /usr/lib64/python2.7/site-packages
Add sys path: /usr/lib64/python2.7/site-packages/gtk-2.0
Add sys path: /usr/lib/python2.7/site-packages

threading.py is in /usr/lib64/python2.7

The python command line launch from java (Runtime.getRuntime().exec(cmd);) work and i have access to threading. But not jep itself.

Hope all this information help.

regards
guillaume


--
You received this message because you are subscribed to a topic in the Google Groups "Jep Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jep-project/cjsKVGwUlbc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jep-project...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jep-project/c18db861-d24c-479a-844a-25c787b23cf9n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages