T
Tero Pihlajakoski
Hi,
I'm embedding Python to Java through JNI, and everything works ok, except
if I try to import stuff that's loaded from <PYTHONPATH>/lib-dynload/,
Python will give me an ImportError, JNI code:
: PyRun_SimpleString( "import math\n" );
ImportError: /usr/lib/python2.3/lib-dynload/math.so: undefined
symbol: PyExc_OverflowError
Anyone else tried this / found the solution / having this
problem? Could it be some security restriction of JNI? Can I alter those?
The system is Linux using Sun's JVM 1.4.2_03 and Python 2.3.2, and can't
use Jython due to the missing C API (wxPython etc.)...
Thanks,
Tero
--
I'm embedding Python to Java through JNI, and everything works ok, except
if I try to import stuff that's loaded from <PYTHONPATH>/lib-dynload/,
Python will give me an ImportError, JNI code:
: PyRun_SimpleString( "import math\n" );
ImportError: /usr/lib/python2.3/lib-dynload/math.so: undefined
symbol: PyExc_OverflowError
Anyone else tried this / found the solution / having this
problem? Could it be some security restriction of JNI? Can I alter those?
The system is Linux using Sun's JVM 1.4.2_03 and Python 2.3.2, and can't
use Jython due to the missing C API (wxPython etc.)...
Thanks,
Tero
--