"setup.py install is deprecated" when building specific package

user:~/ros2_ws$ colcon build --packages-select my_package
Starting >>> my_package
ā€” stderr: my_package
/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.

1 Like

Hi @JamesNewton ,

Welcome to this Community!

The most common solution would be to downgrade the version of setuptools that is currently installed on the virtual machine.
Run the below command on a terminal in your environment.

pip install setuptools==58.2.0

This should fix your problem. Let me know if the problem still persists.


1 Like

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