[Bug] from setuptools import setup is not working

This is an error report.


Screenshot of the error


Error details

I tried to install it but still not working, what is the solve of this issue?

Hi @wisam-kakooz ,

You don’t have to run the python setup.py install --verbose command with ROS2.
To install your package that you built with python, you just need to run colcon build command.

This is not an error concerning ROS2.

Regards,
Girish

Hi,
i tried to do that, but it’s not working the ros2 run ( not working), and the setuptools lib have an issue too.
and thank you

ros2 launch publisher_pkg publisher_pkg_launch_file.launch.py
Package ‘publisher_pkg’ not found: “package ‘publisher_pkg’ not found, searching: [‘/home/simulations/ros2_sims_ws/install/turtlebot3’, ‘/home/simulations/ros2_sims_ws/install/turtlebot3_teleop’, ‘/home/simulations/ros2_sims_ws/install/turtlebot3_simulations’, ‘/home/simulations/ros2_sims_ws/install/turtlebot3_navigation2’, ‘/home/simulations/ros2_sims_ws/install/turtlebot3_example’, ‘/home/simulations/ros2_sims_ws/install/turtlebot3_msgs’, ‘/home/simulations/ros2_sims_ws/install/turtlebot3_gazebo’, ‘/home/simulations/ros2_sims_ws/install/turtlebot3_bringup’, ‘/home/simulations/ros2_sims_ws/install/turtlebot3_description’, ‘/home/simulations/ros2_sims_ws/install/turtlebot3_cartographer’, ‘/home/simulations/ros2_sims_ws/install/turtlebot3_as’, ‘/home/simulations/ros2_sims_ws/install/t3_action_msg’, ‘/home/simulations/ros2_sims_ws/install/services_pkg’, ‘/home/simulations/ros2_sims_ws/install/dynamixel_sdk’, ‘/home/user/ros2_ws/install/my_package’, ‘/opt/ros/humble’]”

You need to carefully follow the examples for creating a ros2 python package. The error message indicates that it cannot find the publisher_pkg package, and that means it has not been properly created and set tup.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.