Closed sohail288 closed 7 years ago
Tried to debug it and narrowed it down to line 1747 in Py.Java
imp.load("site");
Here is the manual exception message that I print in the try-catch block of that load
call.
running load with arg: __builtin__
got obj
IMPORTSITE: true
running load with arg: site
IMP LOAD EXCEPTION
Exception in thread "main" java.lang.NullPointerException
at org.python.core.imp.load(imp.java:622)
at org.python.core.Py.importSiteIfSelected(Py.java:1747)
at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:113)
at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:91)
at org.python.util.InteractiveInterpreter.<init>(InteractiveInterpreter.java:39)
at org.python.util.InteractiveInterpreter.<init>(InteractiveInterpreter.java:28)
at org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:68)
at org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:54)
at org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:34)
at org.python.util.jython.run(jython.java:279)
at org.python.util.jython.main(jython.java:145)
@sohail288 Thanks for reporting, I'll try on my OSX machine.
I believe this is fixed here: https://github.com/jython/jython3/commit/0d924492ec58c8c1706d73dbeef5064c585c1239
Here's what I'm getting
Here is a stacktrace from jdb:
I compiled it successfully after the following modifications
Anyone know what's going on? Or how to go about debugging it?
My machine.
Intel Core I5 2.5 GHZ, 16 GB Memory, running on OS X 10.9.5