Errors with Colcon while setting up
Hi, I am having an error that I want to make sure won't cause issues in the future. I know it is because I installed examples before doing Colcon.
My setup is: Razer blade 15 Oracle virtualbox
Ubuntu details: Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy
I'm using ros2 humble from the following tutorial: https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html
I installed the full desktop install version.
Basically I was following this playlist to move over to ROS2, just having watched the first 2 videos: https://www.youtube.com/watch?v=3GbrKQ7G2P0&list=PLLSegLrePWgJudpPUof4-nVFHGkB62Izy&index=3&ab_channel=RoboticsBack-End
But I then switched over to the following: https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Colcon-Tutorial.html#install-colcon
which also actually has examples installed (talker listener) in the beginner CLI tools. I did follow along for this part far enough to do the talker listener. However I then ended up skipping to the client libraries section to build my workspace as I have worked with most things in ROS in the past.
When I got to the building workspace step: colcon build --symlink-install I get the following:
terminal copy paste
colcon build
[0.851s] WARNING:colcon.colconcore.packageselection:Some selected packages are already built in one or more underlay workspaces:
'examples_rclpy_minimal_action_server' is in: /opt/ros/humble
'examples_rclcpp_minimal_timer' is in: /opt/ros/humble
'examples_rclpy_executors' is in: /opt/ros/humble
'examples_rclcpp_minimal_composition' is in: /opt/ros/humble
'examples_rclcpp_multithreaded_executor' is in: /opt/ros/humble
'examples_rclcpp_minimal_action_server' is in: /opt/ros/humble
'examples_rclcpp_minimal_service' is in: /opt/ros/humble
'examples_rclcpp_minimal_action_client' is in: /opt/ros/humble
'examples_rclcpp_minimal_client' is in: /opt/ros/humble
'examples_rclcpp_minimal_subscriber' is in: /opt/ros/humble
'examples_rclpy_minimal_publisher' is in: /opt/ros/humble
'examples_rclpy_minimal_service' is in: /opt/ros/humble
'examples_rclpy_minimal_action_client' is in: /opt/ros/humble
'examples_rclcpp_minimal_publisher' is in: /opt/ros/humble
'examples_rclpy_minimal_client' is in: /opt/ros/humble
'examples_rclpy_minimal_subscriber' is in: /opt/ros/humble
If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time.
If the overridden package is used by another package in any underlay, then the overriding package in the overlay must be API and ABI compatible or undefined behavior at run time may occur.
If you understand the risks and want to override a package anyways, add the following to the command line:
--allow-overriding examples_rclcpp_minimal_action_client examples_rclcpp_minimal_action_server examples_rclcpp_minimal_client examples_rclcpp_minimal_composition examples_rclcpp_minimal_publisher examples_rclcpp_minimal_service examples_rclcpp_minimal_subscriber examples_rclcpp_minimal_timer examples_rclcpp_multithreaded_executor examples_rclpy_executors examples_rclpy_minimal_action_client examples_rclpy_minimal_action_server examples_rclpy_minimal_client examples_rclpy_minimal_publisher examples_rclpy_minimal_service examples_rclpy_minimal_subscriber
This may be promoted to an error in a future release of colcon-override-check.
Starting >>> examplesrclcppasync_client
Finished <<< examplesrclcppasync_client [1.57s]
Starting >>> examplesrclcppcbg_executor
Finished <<< examplesrclcppcbg_executor [1.49s]
Starting >>> examplesrclcppminimalactionclient
Finished <<< examplesrclcppminimalactionclient [1.85s]
Starting >>> examplesrclcppminimalactionserver
Finished <<< examplesrclcppminimalactionserver [1.54s]
Starting >>> examplesrclcppminimal_client
Finished <<< examplesrclcppminimal_client [1.38s]
Starting >>> examplesrclcppminimal_composition
Finished <<< examplesrclcppminimal_composition [1.68s]
Starting >>> examplesrclcppminimal_publisher
Finished <<< examplesrclcppminimal_publisher [1.53s]
Starting >>> examplesrclcppminimal_service
Finished <<< examplesrclcppminimal_service [1.42s]
Starting >>> examplesrclcppminimal_subscriber
Finished <<< examplesrclcppminimal_subscriber [1.75s]
Starting >>> examplesrclcppminimal_timer
Finished <<< examplesrclcppminimal_timer [0.93s]
Starting >>> examplesrclcppmultithreaded_executor
Finished <<< examplesrclcppmultithreaded_executor [0.92s]
Starting >>> examplesrclcppwait_set
Finished <<< examplesrclcppwait_set [1.58s]
Starting >>> examplesrclpyexecutors
--- stderr: examplesrclpyexecutors
/usr/lib/python3/dist-packages/setuptools/command/easyinstall.py:158: EasyInstallDeprecationWarning: easyinstall command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Finished <<< examplesrclpyexecutors [1.46s]
Starting >>> examplesrclpyguard_conditions
--- stderr: examplesrclpyguard_conditions
/usr/lib/python3/dist-packages/setuptools/command/easyinstall.py:158: EasyInstallDeprecationWarning: easyinstall command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Finished <<< examplesrclpyguard_conditions [1.36s]
Starting >>> examplesrclpyminimalactionclient
--- stderr: examplesrclpyminimalactionclient
/usr/lib/python3/dist-packages/setuptools/command/easyinstall.py:158: EasyInstallDeprecationWarning: easyinstall command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Finished <<< examplesrclpyminimalactionclient [1.38s]
Starting >>> examplesrclpyminimalactionserver
--- stderr: examplesrclpyminimalactionserver
/usr/lib/python3/dist-packages/setuptools/command/easyinstall.py:158: EasyInstallDeprecationWarning: easyinstall command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Finished <<< examplesrclpyminimalactionserver [1.38s]
Starting >>> examplesrclpyminimal_client
--- stderr: examplesrclpyminimal_client
/usr/lib/python3/dist-packages/setuptools/command/easyinstall.py:158: EasyInstallDeprecationWarning: easyinstall command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Finished <<< examplesrclpyminimal_client [1.95s]
Starting >>> examplesrclpyminimal_publisher
--- stderr: examplesrclpyminimal_publisher
/usr/lib/python3/dist-packages/setuptools/command/easyinstall.py:158: EasyInstallDeprecationWarning: easyinstall command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Finished <<< examplesrclpyminimal_publisher [1.87s]
Starting >>> examplesrclpyminimal_service
--- stderr: examplesrclpyminimal_service
/usr/lib/python3/dist-packages/setuptools/command/easyinstall.py:158: EasyInstallDeprecationWarning: easyinstall command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Finished <<< examplesrclpyminimal_service [1.49s]
Starting >>> examplesrclpyminimal_subscriber
--- stderr: examplesrclpyminimal_subscriber
/usr/lib/python3/dist-packages/setuptools/command/easyinstall.py:158: EasyInstallDeprecationWarning: easyinstall command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Finished <<< examplesrclpyminimal_subscriber [1.68s]
Starting >>> examplesrclpypointcloud_publisher
--- stderr: examplesrclpypointcloud_publisher
/usr/lib/python3/dist-packages/setuptools/command/easyinstall.py:158: EasyInstallDeprecationWarning: easyinstall command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Finished <<< examplesrclpypointcloud_publisher [1.36s]
Starting >>> launchtestingexamples
--- stderr: launchtestingexamples
/usr/lib/python3/dist-packages/setuptools/command/easyinstall.py:158: EasyInstallDeprecationWarning: easyinstall command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkgresources/init_.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Finished <<< launchtestingexamples [1.78s]
Summary: 22 packages finished [33.8s]
10 packages had stderr output: examplesrclpyexecutors examplesrclpyguardconditions examplesrclpyminimalactionclient examplesrclpyminimalactionserver examplesrclpyminimalclient examplesrclpyminimalpublisher examplesrclpyminimalservice examplesrclpyminimalsubscriber examplesrclpypointcloudpublisher launchtestingexamples
end of terminal copy paste
I know I used build without the --simlink that time but the results were the same.
It then subsequently fails the test provided in the documentation and it is indeed the examples package. It looks like this: terminal copy paste 2
Finished <<< launch_testing_examples [16.7s] [ with test failures ]
Summary: 22 packages finished [45.9s]
10 packages had stderr output: examplesrclpyexecutors examplesrclpyguardconditions examplesrclpyminimalactionclient examplesrclpyminimalactionserver examplesrclpyminimalclient examplesrclpyminimalpublisher examplesrclpyminimalservice examplesrclpyminimalsubscriber examplesrclpypointcloudpublisher launchtestingexamples
1 package had test failures: launchtestingexamples
end of terminal copy paste 2
Will this cause me issues in the future? Is there a way to resolve this?
Thanks
Asked by ometz on 2023-05-08 16:54:57 UTC
Comments
About the setuptools deprecation you can find a quick workaround here. Basically you need to downgrade it. On the other side you can just ignore it. I never type
colcon build
without passing any arguments, because it compiles everything in my src folder. I alway usecolcon build --packages-select <mypkg>
This keeps even the number of messages (warning/errors) as low as possible. Please use the right formatting rules when posting. Your question is hard to read.Asked by Andromeda on 2023-05-12 03:57:23 UTC
Thank you for your response. I've rolled back my setuptools now and it seems to have taken care of the issue. I'll keep to building relevant packages from now on, and I'll stick to the formatting rules in the future.
Thanks
Asked by ometz on 2023-05-14 12:17:35 UTC