Bug 2245641
Summary: | python-webob fails to build with Python 3.13: ModuleNotFoundError: No module named 'cgi' | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
Component: | python-webob | Assignee: | Fedora Infrastructure SIG <infra-sig> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 40 | CC: | awilliam, code, fti-bugs, infra-sig, karlthered, ksurma, mattia.verga, mhroncok, mrunge, ondrejj |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-webob-1.8.7-13.fc41 python-webob-1.8.7-14.fc41 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-06-15 06:44:23 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, 2291481, 2291493, 2291601, 2291629, 2291630, 2291634, 2291658, 2291752, 2291807, 2291813, 2291822, 2291824, 2291826, 2291838, 2291872, 2291873, 2291874, 2291875, 2291876, 2291898, 2291903, 2291914, 2291959, 2291960 |
Description
Karolina Surma
2023-10-23 12:04:45 UTC
Already reported upstream, but without fix. This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle. Changing version to 40. Tracking this because python-webob is a dependency for python-webtest, which is a test dependency for python-wsgidav. I’m patching out the dependency and the affected tests for now. mhroncok says this also blocks beaker, and through a dumb depchain (rhythmbox requires python3-mako, python3-mako recommends python3-beaker), python3-beaker is in a default Workstation install. This is a bit of a problem for the Python 3.13 rebuild process as it means anyone with rhythmbox installed will have to use --allowerasing or manually remove python3-beaker in order to get to 3.13. (In reply to Adam Williamson from comment #4) > mhroncok says this also blocks beaker, and through a dumb depchain > (rhythmbox requires python3-mako, python3-mako recommends python3-beaker), > python3-beaker is in a default Workstation install. This is a bit of a > problem for the Python 3.13 rebuild process as it means anyone with > rhythmbox installed will have to use --allowerasing or manually remove > python3-beaker in order to get to 3.13. As a workaround, I added Obsoletes for python3-beaker < 1.12.1-6 to fedora-obsolete-packages. Once python-beaker is built with Python 3.13, it will no longer be < 1.12.1-6 and the Obsoletes will no longer matter. Anyway, python-beaker needs python-webob through python-webtest and that dependency can be removed by skipping tests/test_managers/test_ext_redis.py. Unfortunately, other tests fail when that is done. Once the Python 3.13 side tag is merged, python3-beaker will get a FailsToInstall bugzilla and I can add more details there. There is a legacy-cgi module on pypi: https://pypi.org/project/legacy-cgi/ According to this issue it's working well with legacy-cgi: https://github.com/Pylons/webob/issues/437 Do you think, we should add python-legacy-cgi package to Fedora? > Do you think, we should add python-legacy-cgi package to Fedora?
The project looks reasonably well-forked and does not say it's an "unmaintained dump of the code from CPython" (like other such packages do). I don't see why not.
*** Bug 2291971 has been marked as a duplicate of this bug. *** > Once the Python 3.13 side tag is merged, python3-beaker will get a FailsToInstall bugzilla and I can add more details there. See bz2291634. As I didn't find any package submission about legacy-cgi I moved forward and submitted https://bugzilla.redhat.com/show_bug.cgi?id=2292378 I've pushed python-legacy-cgi to F41 and added proper buildrequire to webob. Build is running. FEDORA-2024-786643fad4 (python-webob-1.8.7-13.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-786643fad4 FEDORA-2024-786643fad4 (python-webob-1.8.7-13.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report. Considering where the import is: /usr/lib/python3.13/site-packages/webob/compat.py:5: in <module> from cgi import parse_header This should be required on runtime as well. FEDORA-2024-340c303ca3 (python-webob-1.8.7-14.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-340c303ca3 FEDORA-2024-340c303ca3 (python-webob-1.8.7-14.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2024-6a1978a844 (python-pyngus-2.3.0^20200513git60b6f10-5.20200513git60b6f10.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-6a1978a844 FEDORA-2024-6a1978a844 (python-pyngus-2.3.0^20200513git60b6f10-5.20200513git60b6f10.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report. |