Robotics StackExchange | Archived questions

Pkg not found error. Is SetuptoolsDeprecationWarning the cause?

When I try to build my workspace I get the following error -

akshata@akshata:~/ros2_humble$ colcon build

Starting >>> px4_msgs
Starting >>> py_pubsub
--- stderr: py_pubsub                                                            
/usr/local/lib/python3.10/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 <<< py_pubsub [1.60s]
Finished <<< px4_msgs [9.03s]                     

Summary: 2 packages finished [9.22s]
  1 package had stderr output: py_pubsub

I've read that it's a known issue and for some people downgrading worked.

None of it worked for me. Any ideas?

Asked by akshata101 on 2022-09-28 13:17:58 UTC

Comments

Answers

It shouldn't be. You always get that warning with the current colcon. See https://github.com/colcon/colcon-core/issues/454.

For py_pubsub error, analyze its log.

cat log/latest/py_pubsub/stdout_stderr.log

This is what I get after ros2 pkg create --build-type ament_python py_pubsub

cd humble-ws
ros2 pkg create --build-type ament_python py_pubsub
colcon build --symlink-install --merge-install --packages-up-to py_pubsub
 :
Summary: 5 packages finished [13.7s]
  5 packages had stderr output: ament_copyright ament_flake8 ament_lint ament_pep257 py_pubsub

Asked by yashi on 2022-09-30 10:05:42 UTC

Comments