Bug 2135361 - reuse should depend on python3-setuptools in F36
Summary: reuse should depend on python3-setuptools in F36
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: reuse
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Beasley
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-17 11:30 UTC by Ben Beasley
Modified: 2022-10-26 17:27 UTC (History)
2 users (show)

Fixed In Version: reuse-0.13.0-3.fc36
Clone Of:
Environment:
Last Closed: 2022-10-26 17:27:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ben Beasley 2022-10-17 11:30:49 UTC
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.

Comment 1 Ben Beasley 2022-10-17 11:45:53 UTC
Upstream fix backported in https://src.fedoraproject.org/rpms/reuse/pull-request/4.

Comment 2 Fedora Update System 2022-10-17 13:47:14 UTC
FEDORA-2022-d9069be2a7 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-d9069be2a7

Comment 3 Fedora Update System 2022-10-18 14:34:44 UTC
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.

Comment 4 Fedora Update System 2022-10-26 17:27:45 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.