ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

ROS package with build type 'ament_python' has no 'setup.py' file

asked 2020-08-14 23:51:29 -0600

pauceano gravatar image

updated 2022-03-17 22:43:59 -0600

130s gravatar image

Trying to build Foxy in Windows 10. After installing everything, I get a bunch of errors when running colcon:

*C:\dev\ros2_foxy>colcon build --merge-install*
[7.597s] **colcon.colcon_core.package_identification** ERROR ROS package 'share\action_tutorials_py' with build type 'ament_python' has no 'setup.py' file
[7.611s] **colcon.colcon_core.package_identification** ERROR ROS package 'share\ament_clang_format' with build type 'ament_python' has no 'setup.py' file
...

and many more

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2020-08-15 08:39:01 -0600

pauceano gravatar image

Actually the errors where happening with packages in the folder ros2_foxy\share where setup.py was not copied. But these packages are also in other folders under src, generating another error, so I removed the ones in the share folder. I do not know how they arrived to the share folder or if there is any reason to have them there, but, without share folder, colcon builds.

edit flag offensive delete link more
0

answered 2020-11-05 06:22:11 -0600

votecoffee gravatar image

I had this same issue. I had downloaded the source from the website and unzipped it to C:\dev\ros2_foxy. But I should have started with a clean directory and run the following:

md \dev\ros2_foxy\src
cd \dev\ros2_foxy
curl -sk https://raw.githubusercontent.com/ros2/ros2/foxy/ros2.repos -o ros2.repos
vcs import src < ros2.repos
colcon build --merge-install
edit flag offensive delete link more

Question Tools

Stats

Asked: 2020-08-14 23:40:12 -0600

Seen: 2,177 times

Last updated: Mar 17 '22