You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
Activity
sashaiw commentedon Jul 12, 2019
I am having a similar issue with a library that uses Boost.NumPy.
TallJimbo commentedon Jul 12, 2019
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.sois inLD_LIBRARY_PATHor a standard library location like/usr/libor/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 bothBoost.Pythonand pybind11 support in ndarray anymore, and the latter is what I use.PingHsunTsai commentedon Aug 14, 2022
@sashaiw Is the problem solved? I have exactly the same error. Many thanks in advance:)