Closed amastrobera closed 5 years ago
I may have found a solution doing apt-get install python3-catkin-tools
but still
The following packages have unmet dependencies:
python-catkin-tools : Conflicts: python3-catkin-tools but 0.4.5-1 is to be installed
python3-catkin-tools : Depends: python3-catkin-pkg (>= 0.2.9) but it is not going to be installed
Depends: python3-trollius but it is not installable
Conflicts: python-catkin-tools but 0.4.5-1 is to be installed
Apparently people talk about it here : https://github.com/ros-infrastructure/catkin_pkg/issues/125
The problem is on ROS side. They still use python2 for building their stuff. Installing catkin with python3 will uninstall your complete ROS installation because of conflicting files. To do this correctly on bionic and earlier, you would have to build ros from source with python3 as your default interpreter.
The "hacky" way to do this is to use python2 catkin for building while being in a python3-virtualenv and add the catkin package to your workspace. You might have to adapt your PYTHONPATH variable to make this work so that no python2 modules are mixed with python3 modules.
I'll close this because this is not related to Lanelet2. It is a general issue with ROS and catkin.
I have found a solution doing pip3 install catkin_pkg. If another error "No module named 'rospkg'" occured, try pip3 install rospkg.
Dear guys,
I tried following the instructions to make lanelet2 in Python3, so, inside your docker image the command :
yielded this error :