Skip to content

Unable to use ur_kin_py in Python 3.6 #461

@hemanthsarabu

Description

@hemanthsarabu

I am trying to build and run ur_kin_py for a python 3 catkin workspace but have not been successful so far. I followed instructions from here, and replaced the line in the CMake file from find_package(PythonLibs 2.7 REQUIRED)
to find_package(PythonLibs 3.6 REQUIRED) and ran
catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.6m -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.6m.so.

When I then try to run test_analytical_ik.py , I get :Segmentation fault (core dumped)
And when I try to run import ur_kinematics.ur_kin_py.inverse in a python session, I see ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.65.1: undefined symbol: PyClass_Type . I suspect I am building the library against boost for python 2 and not 3 and I'm not sure how to fix that. Has anyone dealt with this before?

Any help would be greatly appreciated!

Thanks!

Metadata

Metadata

Assignees

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