-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined symbol error when calling swigibpy #44
Comments
I see the same on Arch Linux, with Anaconda2 and regular Python 2.7 distro. The build didn't look that healthy:
Then, attempting to use:
|
The same error happened on my Ubuntu 16.10 when trying to import swigibpy. Installing swigibpy was ok without any error. Traceback:
|
This is specific for Anaconda 4.2.0. The error does not show up with Anaconda 4.1.1, Intel Python, or Ubuntu/Debian official python. |
I've tried to install the module in several ways on different versions of Python (2.7.10, 3.4 and 3.5) on Ubuntu 15.10 locally and in anaconda; I've tried pip install and a manual installation (setup install) but it makes no difference to the final result which is an import error. Incidentally, I'm able to use the IB API using ibpy and the Java interface but I'm really interested in getting your code to work. For completeness here is the full stack with the error message:
(py3k)bruno@bruno-VGN-SZ791N:~/IBJts$ python -c 'import swigibpy as ib; print(ib.version)'
Traceback (most recent call last):
File "", line 1, in
File "/home/bruno/anaconda/envs/py3k/lib/python3.5/site-packages/swigibpy-0.5.0-py3.5-linux-x86_64.egg/swigibpy.py", line 43, in
_swigibpy = swig_import_helper()
File "/home/bruno/anaconda/envs/py3k/lib/python3.5/site-packages/swigibpy-0.5.0-py3.5-linux-x86_64.egg/swigibpy.py", line 39, in swig_import_helper
_mod = imp.load_module('_swigibpy', fp, pathname, description)
File "/home/bruno/anaconda/envs/py3k/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/home/bruno/anaconda/envs/py3k/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: /home/bruno/anaconda/envs/py3k/lib/python3.5/site-packages/swigibpy-0.5.0-py3.5-linux-x86_64.egg/_swigibpy.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE
The text was updated successfully, but these errors were encountered: