clydemcqueen / tello_ros

C++ ROS2 driver for DJI Tello drones
BSD 3-Clause "New" or "Revised" License
193 stars 65 forks source link

colcon build come errors #80

Open dapiaoGe opened 8 months ago

dapiaoGe commented 8 months ago

(base) pu@pu-B760M-GAMING-WIFI:~/tello_ros_ws$ colcon build Starting >>> tello_msgs Starting >>> ros2_shared Starting >>> tello_description --- stderr: tello_description
Traceback (most recent call last): File "/opt/ros/foxy/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 21, in from catkin_pkg.package import parse_package_string ModuleNotFoundError: No module named 'catkin_pkg' CMake Error at /opt/ros/foxy/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:94 (message): execute_process(/home/pu/anaconda3/bin/python3 /opt/ros/foxy/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py /home/pu/tello_ros_ws/src/tello_ros/tello_description/package.xml /home/pu/tello_ros_ws/build/tello_description/ament_cmake_core/package.cmake) returned error code 1 Call Stack (most recent call first): /opt/ros/foxy/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:49 (_ament_package_xml) /opt/ros/foxy/share/ament_cmake_core/cmake/core/ament_package.cmake:63 (ament_package_xml) CMakeLists.txt:50 (ament_package)


Failed <<< tello_description [0.26s, exited with code 1] Aborted <<< tello_msgs [0.46s]
Aborted <<< ros2_shared [0.47s]

Summary: 0 packages finished [1.40s] 1 package failed: tello_description 2 packages aborted: ros2_shared tello_msgs 3 packages had stderr output: ros2_shared tello_description tello_msgs 2 packages not processed

clydemcqueen commented 1 month ago

You can install python3-catkin-pkg to get around this.

The preferred option is to install ros-dev-tools, per these instructions: https://docs.ros.org/en/humble/Installation/Alternatives/Ubuntu-Development-Setup.html