Skip to content

import * error after make install sucessfully #84

Open

Description

@zhangqianjin

.so: undefined symbol: _ZN5boost6python9converter21object_manager_traitsINS_5numpy7ndarrayEE10get_pytypeEv

Activity

  1. sashaiw commented on Jul 12, 2019

    @sashaiw

    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
    
  2. TallJimbo commented on Jul 12, 2019

    @TallJimbo
    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.

  3. PingHsunTsai commented on Aug 14, 2022

    @PingHsunTsai

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions