ros2 / examples

Example packages for ROS 2
Apache License 2.0
681 stars 308 forks source link

build error,sage of dash-separated 'script-dir' will not be supported in future versions. #351

Closed mengchaoheng closed 1 year ago

mengchaoheng commented 1 year ago
parallels@ubuntu-linux-20-04-desktop:~/ros2_ws$ pip show setuptools | grep Version
Version: 58.2.0

parallels@ubuntu-linux-20-04-desktop:~/ros2_ws$ colcon build --symlink-install
[0.176s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces:
    'examples_rclcpp_minimal_action_client' is in: /opt/ros/foxy
    'examples_rclpy_executors' is in: /opt/ros/foxy
    'examples_rclcpp_minimal_composition' is in: /opt/ros/foxy
    'examples_rclcpp_minimal_client' is in: /opt/ros/foxy
    'examples_rclcpp_minimal_publisher' is in: /opt/ros/foxy
    'examples_rclpy_minimal_publisher' is in: /opt/ros/foxy
    'examples_rclcpp_minimal_action_server' is in: /opt/ros/foxy
    'examples_rclcpp_minimal_service' is in: /opt/ros/foxy
    'examples_rclpy_minimal_action_server' is in: /opt/ros/foxy
    'examples_rclpy_minimal_action_client' is in: /opt/ros/foxy
    'examples_rclcpp_minimal_timer' is in: /opt/ros/foxy
    'examples_rclcpp_minimal_subscriber' is in: /opt/ros/foxy
    'examples_rclpy_minimal_service' is in: /opt/ros/foxy
    'examples_rclpy_minimal_subscriber' is in: /opt/ros/foxy
    'examples_rclpy_minimal_client' is in: /opt/ros/foxy
    'examples_rclcpp_multithreaded_executor' is in: /opt/ros/foxy
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 >>> examples_rclcpp_minimal_action_client
Starting >>> examples_rclcpp_minimal_action_server
Starting >>> examples_rclcpp_minimal_client
Starting >>> examples_rclcpp_minimal_composition
Starting >>> examples_rclcpp_minimal_publisher
Starting >>> examples_rclcpp_minimal_service
Starting >>> examples_rclcpp_minimal_subscriber
Starting >>> examples_rclcpp_minimal_timer
Finished <<< examples_rclcpp_minimal_client [0.31s]
Starting >>> examples_rclcpp_multithreaded_executor
Finished <<< examples_rclcpp_minimal_service [0.32s]
Starting >>> examples_rclpy_executors
Finished <<< examples_rclcpp_minimal_action_server [0.40s]
Finished <<< examples_rclcpp_minimal_action_client [0.42s]
Finished <<< examples_rclcpp_minimal_subscriber [0.39s]
Starting >>> examples_rclpy_minimal_action_client
Starting >>> examples_rclpy_minimal_action_server
Finished <<< examples_rclcpp_minimal_timer [0.42s]
Finished <<< examples_rclcpp_minimal_publisher [0.44s]
Starting >>> examples_rclpy_minimal_client
Starting >>> examples_rclpy_minimal_publisher
Starting >>> examples_rclpy_minimal_service
Finished <<< examples_rclcpp_minimal_composition [0.49s]
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
Starting >>> examples_rclpy_minimal_subscriber
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
Finished <<< examples_rclcpp_multithreaded_executor [1.29s]
--- stderr: examples_rclpy_executors                                    
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
---
Finished <<< examples_rclpy_executors [1.47s]
--- stderr: examples_rclpy_minimal_action_server
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
---
Finished <<< examples_rclpy_minimal_action_server [1.55s]
--- stderr: examples_rclpy_minimal_action_client
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
---
Finished <<< examples_rclpy_minimal_action_client [1.57s]
--- stderr: examples_rclpy_minimal_publisher
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
---
Finished <<< examples_rclpy_minimal_publisher [1.53s]
--- stderr: examples_rclpy_minimal_service                                    
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
---
Finished <<< examples_rclpy_minimal_service [1.53s]
--- stderr: examples_rclpy_minimal_client
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
---
Finished <<< examples_rclpy_minimal_client [1.56s]
--- stderr: examples_rclpy_minimal_subscriber
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/home/parallels/.local/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
---
Finished <<< examples_rclpy_minimal_subscriber [1.39s]

Summary: 16 packages finished [2.18s]
  7 packages had stderr output: 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
parallels@ubuntu-linux-20-04-desktop:~/ros2_ws$ 
clalancette commented 1 year ago

We've fixed this in the newer ROS 2 releases.

That said, this message only comes up because you are using a newer version of setuptools with an older Ubuntu distribution (Ubuntu 20.04 comes with setuptools 45.2.0, which does not print this warning).

Given that there isn't really any work to do here, I'm going to close this out.