-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Unable to use ur_kin_py in Python 3.6 #461
Comments
I'm stuck at this problem :( , did you fix it? |
when I met the first problem
to
For the second problem, I think it would be good to try somethings like |
Please assign this to me :) |
While you're at it, you may want to take a look at https://github.com/ros-industrial/universal_robot/projects/1 as well. There may be PRs there which affect this issue. |
So building using pybind as suggested in #453 seems to solve all python3 problems. I have tested on Python3.6 and 3.8, it seems to work fine. The only problem is to fix the test_analytical_ik.py for python3 compatibility. So how we should proceed ? I can try to fix/rebase the PR #453 and python3 compitibility but this might break other IK related PR. |
Would you have an idea of how many of those PRs would get into trouble? All of them? |
What about getting those merged first? Would that be an option? |
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 rancatkin_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 seeImportError: /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!
The text was updated successfully, but these errors were encountered: