Bug 2322559

Summary: python3-cheetah does not support python 3.13
Product: [Fedora] Fedora Reporter: Mike McLean <mikem>
Component: python-cheetahAssignee: Mike Bonnet <mikeb>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 41CC: carl, mhroncok, mikeb, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: python-cheetah-3.2.6.post1-11.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-09 01:44:57 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: 2244836    

Description Mike McLean 2024-10-29 21:08:04 UTC
Python 3.13.0 (main, Oct  8 2024, 00:00:00) [GCC 14.2.1 20240912 (Red Hat 14.2.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import Cheetah.Template
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import Cheetah.Template
  File "/usr/lib64/python3.13/site-packages/Cheetah/Template.py", line 24, in <module>
    import cgi  # Used by .webInput() if the template is a CGI script.
    ^^^^^^^^^^
ModuleNotFoundError: No module named 'cgi'


Reproducible: Always

Steps to Reproduce:
1. import Cheetah.Template

Actual Results:  
ModuleNotFoundError: No module named 'cgi'


Expected Results:  
imported module

Comment 1 Mike McLean 2024-10-29 21:09:11 UTC
Upstream has a few bugs related to 3.13 support, but has not yet cut a release to fix them.
See https://github.com/CheetahTemplate3/cheetah3/issues/63

Comment 2 Mike McLean 2024-10-29 21:18:16 UTC
It looks like this was already fixed for f42 in rhbz#2313699
This is also needed in F41

Comment 4 Mike McLean 2024-10-29 21:34:51 UTC
I went ahead and kicked off a build from HEAD -- https://koji.fedoraproject.org/koji/buildinfo?buildID=2576262

Comment 5 Miro HronĨok 2024-10-29 21:51:05 UTC
This needs to be pushed in dist git as well. Building packages for f41 from rawhide branch is possible, but it creates a discrepancy in the sources.

Also, that update is backward incompatible and should not be pushed to stable Fedora at this point, see https://src.fedoraproject.org/rpms/python-cheetah/pull-request/7#comment-221450 and further. At the very least, cobbler needs to be synced with rawhide as well (but beware the 0%{?fedora} >= 42 conditionals in the spec) and the build needs to land in the same Bodhi update.

Comment 6 Mike McLean 2024-10-30 02:14:15 UTC
ah, well, apologies if I made things more complicated

Comment 7 Mike McLean 2024-10-30 13:55:49 UTC
If nothing else, backporting this one part would at least allow kojiweb to run in F41
https://github.com/CheetahTemplate3/cheetah3/commit/faf45251aafc7dadc6945260a6b371d821f5389a

Comment 8 Mike McLean 2024-10-30 13:56:36 UTC
related Koji issue -- https://pagure.io/koji/issue/3966

Comment 9 Mike Bonnet 2024-10-30 15:05:13 UTC
Can I get some review on https://src.fedoraproject.org/rpms/python-cheetah/pull-request/9 ? Thanks!

Comment 10 Fedora Update System 2024-10-31 13:15:03 UTC
FEDORA-2024-82c2e69531 (python-cheetah-3.2.6.post1-11.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-82c2e69531

Comment 11 Fedora Update System 2024-11-01 01:35:48 UTC
FEDORA-2024-82c2e69531 has been pushed to the Fedora 41 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-82c2e69531`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-82c2e69531

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

Comment 12 Fedora Update System 2024-11-09 01:44:57 UTC
FEDORA-2024-82c2e69531 (python-cheetah-3.2.6.post1-11.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.