← Back to issue list

ROS2 Jazzy plugins fails with `rosdep` 0.25

View original Github issue

Metadata

Project
snapcraft
Number
#4998
Type
issue
State
closed
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

ROS2 Jazzy plugin compatibility was restored in rosdep 0.25.1 via ros-infrastructure/rosdep#984, eliminating the pkg_resources deprecation output that broke rosdep parsing.

Resolution: closed resolved

Reason: Maintainer mr-cal confirmed the failure was fixed in rosdep 0.25.1 through ros-infrastructure/rosdep#984.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### 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 ```shell :: + 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: https://github.com/ros-infrastructure/rosdep/issues/982

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved ROS2 Jazzy plugin compatibility was restored in rosdep 0.25.1 via ros-infrastructure/rosdep#984, eliminating the pkg_resources deprecation output that broke rosdep parsing.
stealth/space-bunny-alpha — closed resolved Closed as an upstream rosdep bug: fixed in rosdep 0.25.1 via ros-infrastructure/rosdep#984 (resolving #982). A residual failure was later fixed in Snapcraft 8.10.2 by #5615 (721d86958), tracked as #5600.
stealth/space-bunny-alpha — closed resolved ROS Jazzy rosdep handling was fixed upstream in rosdep 0.25.1 via ros-infrastructure/rosdep#984, resolving the pkg_resources deprecation warning that broke Snapcraft's plugin.
qwen/qwen3.6-35b-a3b — — Fixed upstream in rosdep 0.25.1 (PR #984), resolving the pkg_resources deprecation warning that caused the ROS2 Jazzy plugin to fail. Issue closed.
qwen/qwen3.6-35b-a3b — — Fixed upstream in rosdep 0.25.1 via pull request #984. The pkg_resources deprecation warning causing the ROS2 Jazzy plugin to fail during dependency resolution was addressed, resolving the build error.
qwen/qwen3.6-35b-a3b — — Closed and fixed by upstream rosdep 0.25.1, which resolved the pkg_resources deprecation warning breaking ROS2 Jazzy plugins. Resolved via rosdep PR 984.
qwen3.6-35b-a3b-mtp-q6 — — Resolved by an upstream fix in rosdep 0.25.1 (PR #984), which addresses the pkg_resources deprecation warning that caused the ROS2 Jazzy plugin to fail.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: rosdep#984 (confidence 100%)

    Upstream fix released in rosdep 0.25.1 and cited as the resolution.

Related issues

No related issues found above the similarity threshold.