Skip to content

fix(lyrical): vendor packages need python3-pkg-resources on Fedora 45+ - #26

Merged
nickschuetz merged 1 commit into
mainfrom
fix/lyrical-vendor-pkg-resources
Oct 9, 2026
Merged

nickschuetz merged 1 commit into
mainfrom
fix/lyrical-vendor-pkg-resources

Conversation

@nickschuetz

Copy link
Copy Markdown
Owner

Problem

gz_cmake_vendor and rviz_ogre_vendor fail on all four Python 3.15 chroots (fedora-45-*, fedora-rawhide-*):

from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

raised by vcs during the ExternalProject download step.

Cause

Fedora 45 ships setuptools 83, which no longer carries pkg_resources. It moved to the separate python3-pkg-resources package, and Fedora's python3-vcstool does not require it. Fedora 44 and CentOS Stream 10 still get pkg_resources from setuptools. Verified in fedora:45 and fedora:rawhide containers: vcs --version fails without the package and works with it.

Fix

Every vendor package runs vcs at build time through ros-lyrical-ament-cmake-vendor-package, so that package now carries Requires: python3-pkg-resources behind %if 0%{?fedora} >= 45. Release bumped to 2. The stale comment in the ogre-vendor spec is corrected.

Follow-up (not in this PR)

Rebuild ros-lyrical-ament-cmake-vendor-package, then drive the rviz chain on the Python 3.15 chroots. If green, update the README, docs and COPR instructions that say rviz2 is absent there.

gz_cmake_vendor and rviz_ogre_vendor failed on all four Python 3.15
chroots (fedora-45, fedora-rawhide) with

    from pkg_resources import load_entry_point
    ModuleNotFoundError: No module named 'pkg_resources'

raised by vcstool during the ExternalProject download step. Fedora 45
ships setuptools 83, which no longer carries pkg_resources; it moved to
the separate python3-pkg-resources package, and python3-vcstool does not
require it. Fedora 44 and CentOS Stream 10 still get pkg_resources from
setuptools.

Every vendor package runs vcs at build time through
ros-lyrical-ament-cmake-vendor-package, so that package now Requires
python3-pkg-resources behind an %if 0%{?fedora} >= 45 guard. Release
bumped to 2 so the dependency reaches the vendor buildroots. The stale
comment in the ogre-vendor spec is corrected to match.

Verified in fedora:45 and fedora:rawhide containers: vcs fails to import
without the package and runs with it. verify-specs: 0 errors.
@nickschuetz
nickschuetz merged commit 274238c into main Oct 9, 2026
16 checks passed
@nickschuetz
nickschuetz deleted the fix/lyrical-vendor-pkg-resources branch October 9, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant