Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROS2 Jazzy plugins fails with rosdep 0.25 #4998

Closed
mr-cal opened this issue Aug 22, 2024 · 2 comments
Closed

ROS2 Jazzy plugins fails with rosdep 0.25 #4998

mr-cal opened this issue Aug 22, 2024 · 2 comments
Labels
regression A behavior that has regressed triaged

Comments

@mr-cal
Copy link
Collaborator

mr-cal commented Aug 22, 2024

Bug Description

rosdep 0.25 prints a deprecation notice about pkg_resources which causes the ROS2 Jazzy plugin to fail.

To Reproduce

Build any of the snaps in tests/spread/extensions/ros2-jazzy-hello

Relevant log output

:: + colcon build --base-paths /snapcraft/tests/spread/extensions/snaps/ros2-jazzy-hello/parts/hello/src --build-base /snapcraft/tests/spread/extensions/snaps/ros2-jazzy-hello/parts/hello/build --merge-install --install-base /snapcraft/tests/spread/extensions/snaps/ros2-jazzy-hello/parts/hello/install/opt/ros/snap --cmake-args -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_PREFIX_PATH=/snap/ros-jazzy-desktop-dev/current/usr --parallel-workers 1
:: Starting >>> colcon_ros2_rlcpp_hello
:: Finished <<< colcon_ros2_rlcpp_hello [11.2s]
::
:: Summary: 1 package finished [11.5s]
:: + '[' -f /snapcraft/tests/spread/extensions/snaps/ros2-jazzy-hello/parts/hello/install/opt/ros/snap/COLCON_IGNORE ']'
:: + rm /snapcraft/tests/spread/extensions/snaps/ros2-jazzy-hello/parts/hello/install/opt/ros/snap/COLCON_IGNORE
:: + env -i LANG=C.UTF-8 LC_ALL=C.UTF-8 PATH=/snap/snapcraft/x1/libexec/snapcraft:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin SNAP=/snap/snapcraft/x1 SNAP_ARCH=amd64 SNAP_NAME=snapcraft SNAP_VERSION=8.3.2.post62+git8cf2021d /snap/snapcraft/x1/bin/python -I /snap/snapcraft/x1/lib/python3.10/site-packages/snapcraft/parts/plugins/_ros.py stage-runtime-dependencies --part-src /snapcraft/tests/spread/extensions/snaps/ros2-jazzy-hello/parts/hello/src --part-install /snapcraft/tests/spread/extensions/snaps/ros2-jazzy-hello/parts/hello/install --ros-version 2 --ros-distro jazzy --target-arch amd64 --stage-cache-dir /root/.cache/snapcraft --base core24
:: Staging runtime dependencies...
:: Running ['rosdep', 'resolve', 'rclcpp', '--rosdistro', 'jazzy']
:: Traceback (most recent call last):
::   File "/snap/snapcraft/x1/lib/python3.10/site-packages/snapcraft/parts/plugins/_ros.py", line 423, in <module>
::     plugin_cli()
::   File "/snap/snapcraft/x1/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
::     return self.main(*args, **kwargs)
::   File "/snap/snapcraft/x1/lib/python3.10/site-packages/click/core.py", line 1078, in main
::     rv = self.invoke(ctx)
::   File "/snap/snapcraft/x1/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
::     return _process_result(sub_ctx.command.invoke(sub_ctx))
::   File "/snap/snapcraft/x1/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
::     return ctx.invoke(self.callback, **ctx.params)
::   File "/snap/snapcraft/x1/lib/python3.10/site-packages/click/core.py", line 783, in invoke
::     return __callback(*args, **kwargs)
::   File "/snap/snapcraft/x1/lib/python3.10/site-packages/snapcraft/parts/plugins/_ros.py", line 387, in stage_runtime_dependencies
::     parsed = _parse_rosdep_resolve_dependencies(
::   File "/snap/snapcraft/x1/lib/python3.10/site-packages/snapcraft/parts/plugins/_ros.py", line 78, in _parse_rosdep_resolve_dependencies
::     raise RosdepUnexpectedResultError(dependency_name, output)
:: __main__.RosdepUnexpectedResultError: Received unexpected result from rosdep when trying to resolve Dependency(name='rclcpp', condition='$ROS_VERSION == 2', evaluated_condition=True):
:: /usr/bin/rosdep:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
::   from pkg_resources import load_entry_point
:: #apt
:: ros-jazzy-rclcpp
Failed to run the build script for part 'hello'.
Recommended resolution: Check the build output and verify the project can work with the 'colcon' plugin.
For more information, check out: https://canonical-snapcraft.readthedocs-hosted.com/en/latest/reference/plugins.html
Full execution log: '/root/.local/state/snapcraft/log/snapcraft-20240822-001348.625993.log'

What needs to get done

Wait for the upstream issue reported by @artivis to be resolved: ros-infrastructure/rosdep#982

@mr-cal mr-cal added triaged regression A behavior that has regressed labels Aug 22, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3290.

This message was autogenerated

@mr-cal
Copy link
Collaborator Author

mr-cal commented Aug 26, 2024

Fixed in rosdep 0.25.1: ros-infrastructure/rosdep#984

@mr-cal mr-cal closed this as completed Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression A behavior that has regressed triaged
Projects
None yet
Development

No branches or pull requests

1 participant