Skip to content
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

import * error after make install sucessfully #84

Open
zhangqianjin opened this issue Jul 5, 2019 · 3 comments
Open

import * error after make install sucessfully #84

zhangqianjin opened this issue Jul 5, 2019 · 3 comments

Comments

@zhangqianjin
Copy link

.so: undefined symbol: _ZN5boost6python9converter21object_manager_traitsINS_5numpy7ndarrayEE10get_pytypeEv

@sashaiw
Copy link

sashaiw commented Jul 12, 2019

I am having a similar issue with a library that uses Boost.NumPy.

Python 2.7.12 (default, Nov 12 2018, 14:36:49)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ur_kin_py
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ImportError: /home/csrobot/catkin_ws/devel/lib/python2.7/dist-packages/ur_kinematics/ur_kin_py.so: undefined symbol: _ZN5boost6python5numpy6detail15get_float_dtypeILi64EEENS1_5dtypeEv

@TallJimbo
Copy link
Member

These are standard linker error messages, and it's hard to debug them without knowing how you've built things and set up your environment in detail. In particular, please make sure that libboost_numpy.so is in LD_LIBRARY_PATH or a standard library location like /usr/lib or /usr/local/lib.

I should add that if you're using Boost.NumPy directly, you're better off switching from that standalone package to the NumPy support (with essentially the same APIs, at least originally) that is included directly in more recent versions of Boost.Python. That won't work if you're using it through ndarray, I'm afraid, though in that case I'd recommend switching to pybind11 if you can. I'm afraid I just don't have the time to maintain both Boost.Python and pybind11 support in ndarray anymore, and the latter is what I use.

@PingHsunTsai
Copy link

@sashaiw Is the problem solved? I have exactly the same error. Many thanks in advance:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants