Description of problem: In F36, reuse imports pkg_resources at runtime but does not depend on python3-setuptools, which provides the pkg_resources package. Version-Release number of selected component (if applicable): 0.13.0-2.fc36 How reproducible: Steps to Reproduce: 1. mock -r fedora-36-x86_64 --clean 2. mock -r fedora-36-x86_64 -i reuse 3. mock -r fedora-36-x86_64 --chroot 'reuse --help' Actual results: Traceback (most recent call last): File "/usr/bin/reuse", line 33, in <module> sys.exit(load_entry_point('reuse==0.13.0', 'console_scripts', 'reuse')()) File "/usr/bin/reuse", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib64/python3.10/importlib/metadata/__init__.py", line 171, in load module = import_module(match.group('module')) File "/usr/lib64/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 688, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/usr/lib/python3.10/site-packages/reuse/__init__.py", line 15, in <module> from pkg_resources import DistributionNotFound, get_distribution Expected results: usage: reuse [-h] [--debug] [--include-submodules] [--no-multiprocessing] [--root PATH] [--version] {addheader,download,init,lint,spdx} ... reuse is a tool for compliance with the REUSE recommendations. See [… etc. …] Additional info: I found this while confirming bug 2003456 was fixed. PR to follow.
Upstream fix backported in https://src.fedoraproject.org/rpms/reuse/pull-request/4.
FEDORA-2022-d9069be2a7 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-d9069be2a7
FEDORA-2022-d9069be2a7 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-d9069be2a7` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-d9069be2a7 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-d9069be2a7 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.