Bug 2239998

Summary: python-d2to1 is uncompatible with the latest setuptools
Product: [Fedora] Fedora Reporter: Lumír Balhar <lbalhar>
Component: python-d2to1Assignee: Sergio Pascual <sergio.pasra>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: apevec, mail, mrunge, sergio.pasra
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: python-d2to1-0.2.12-28.post1.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-27 09:19:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2208644    

Description Lumír Balhar 2023-09-21 07:45:48 UTC
We are working on updating python-setuptools to its latest version and it seems that the d2to1 package is not compatible with it.

The problem is:

  File "/usr/lib/python3.12/site-packages/d2to1/core.py", line 30, in d2to1
    from setuptools.dist import _get_unpatched
ImportError: cannot import name '_get_unpatched' from 'setuptools.dist' (/usr/lib/python3.12/site-packages/setuptools/dist.py). Did you mean: 'get_unpatched'?

The alias `_get_unpatched` is no longer available but the function is without the private prefix in the name.

I'd propose a fix upstream but the github repo has been archived since 2020.

COPR build: https://copr.fedorainfracloud.org/coprs/lbalhar/python-setuptools/build/6427223/

Reproducible: Always

Comment 2 Fedora Update System 2023-09-27 09:17:03 UTC
FEDORA-2023-c8fd199fdc has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c8fd199fdc

Comment 3 Fedora Update System 2023-09-27 09:19:44 UTC
FEDORA-2023-c8fd199fdc has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.