Open alemiu opened 2 months ago
You probably have a system installed version of pybind11 on your machine. See https://github.com/orocos/orocos_kinematics_dynamics/issues/416 and https://github.com/orocos/orocos_kinematics_dynamics/issues/401
You need pybind11>2.6, CMake should find the correct one since https://github.com/orocos/orocos_kinematics_dynamics/pull/430. But I don't know on which commit you are.
Thank you for your quick answer. On my system I had installed Pybind11 2.12, after reading your answer I have uninstalled it and then done catkin build --force-make but the same error on python_orocos_kdl appears. Now if I check the installed version I get:
pip show Pybind11
/usr/bin/pip:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import load_entry_point
Name: pybind11
Version: 2.4.3
Summary: Seamless operability between C++11 and Python
Home-page: https://github.com/pybind/pybind11
Author: Wenzel Jakob
Author-email: wenzel.jakob@epfl.ch
License: BSD
Location: /usr/lib/python3/dist-packages
Requires:
Required-by:
I'm building on master branch and last commit 1197 of 10th June 2024 ( if this is what you meant)
So there is still another version of pybind11 installed on your system. Which is too old. CMake should not use it, as it doesn't match the version requirements. So hopefully that is the case.
When you cloned the repo, did you also initialize the submodule? As we include pybind11 as submodule.
It doesn't detect pip installed versions of pybind11, see https://github.com/orocos/orocos_kinematics_dynamics/actions/runs/9512645544
It does detect apt installed versions of pybind11, see https://github.com/orocos/orocos_kinematics_dynamics/actions/runs/9512728029
The last one also shows the CMake version requirement does work.
I want to use tf_conversion in a venv but it returns me the error ModuleNotFoundError: No module named 'PyKDL':
from tf_conversions import transformations
Then I have followed your instructions to install orocos_kdl and python_orocos_kdl but when doing the catkin make (or catkin build) I get this error:
And I do not managed to find any other solution on the net. Can someone help me?