Bug 2254985

Summary: beaker fails to build with Python 3.13: exception: No module named 'cgi'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: beakerAssignee: Martin Styk <martstyk>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: greg.hellings, ksurma, martstyk, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: beaker-29.0-1.fc39 beaker-29.0-1.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-27 01:29:19 UTC Type: Bug
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: 2244836    

Description Karolina Surma 2023-12-18 10:52:27 UTC
beaker fails to build with Python 3.13.0a2.

The documentation build fails with:

Extension error:
Handler <function generate_client_subcommand_docs at 0x7fdf9bdf27a0> for event 'builder-inited' threw an exception (exception: No module named 'cgi')

Module cgi has been removed from Python 3.13.

https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06766169-beaker/

For all our attempts to build beaker with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/beaker/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Fedora Update System 2024-01-18 16:50:53 UTC
FEDORA-2024-61c824e713 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-61c824e713

Comment 2 Fedora Update System 2024-01-18 16:50:59 UTC
FEDORA-2024-f11bfbf2c7 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-f11bfbf2c7

Comment 3 Fedora Update System 2024-01-19 03:33:50 UTC
FEDORA-2024-61c824e713 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-61c824e713`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-61c824e713

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2024-01-19 18:04:21 UTC
FEDORA-2024-f11bfbf2c7 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-f11bfbf2c7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f11bfbf2c7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2024-01-27 01:29:19 UTC
FEDORA-2024-f11bfbf2c7 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2024-01-27 02:12:20 UTC
FEDORA-2024-61c824e713 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.