[ROS2] UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
lars@larsmachine:~/teach_ws$ colcon build
Starting >>> topic_package /usr/local/lib/python3.8/dist-packages/setuptools/dist.py:714: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead warnings.warn(
/usr/local/lib/python3.8/dist-packages/setuptools/dist.py:714: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead warnings.warn(
--- stderr: topic_package
/usr/local/lib/python3.8/dist-packages/setuptools/dist.py:714: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
warnings.warn(
/usr/local/lib/python3.8/dist-packages/setuptools/dist.py:714: 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 <<< topic_package [0.53s]
Summary: 1 package finished [0.64s] 1 package had stderr output: topic_package
Problem Discription
I get this UserWarning everytime I build my workspace. Seems to be a problem with python3... This error is occuring for every building process of each package, since I've installed some debian packages for a YOLO package...
The building process still works, but in my usual workspace with >10 packages these error warnings are quite annoying. By changing "install-scripts" and "build-type" in the setup.cfg file to "install_scripts" and "build_type" the warning doesn't occur anymore. I'm using ubuntu 20.04, ros2-foxy and python 3.810.
I already tried unsuccessfully to uncomment this warning in the dist.py.
Hi there, I had the same issue on ROS2 Humble and I applied the suggested solution to replace the dash with an underscore but I still get warnings:
From this:
--- stderr: my_turtlesim /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install 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. ...
Is there any fix for this?
According to this link: https://answers.ros.org/question/3964...
The reason is a too new version of the setuptools. It can be solved by installing an older version on Ubuntu 22.04 (using version 58.2.0 instead of the newer 59.6.0) with
pip install setuptools==58.2.0
and it shows no warnings anymore.