Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't import jpype module #189
$ python --version
Error when I try to import:
In : import jpype
File "", line 1, in
File "/home/sgess/anaconda3/lib/python3.5/site-packages/JPype1-0.6.1-py3.5-linux-x86_64.egg/jpype/init.py", line 17, in
File "/home/sgess/anaconda3/lib/python3.5/site-packages/JPype1-0.6.1-py3.5-linux-x86_64.egg/jpype/_jpackage.py", line 18, in
ImportError: /home/sgess/anaconda3/lib/python3.5/site-packages/JPype1-0.6.1-py3.5-linux-x86_64.egg/_jpype.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE
First, I tried with the version included in Anaconda. I am not sure if this is a binary or from source. Does Anaconda compile when it installs itself?
That didn’t work, so I removed the jpype package and followed the instructions here:
and that also didn’t work.
Thanks for your quick response!
I got the same error message as @sgess. As there seems to be some mix up with the GCC and anaconda I tried building an anaconda package. That also somewhat works, and I can now import
I tried your solution and it works. Thanks!