Bug 2252567
| Summary: | Python 3.12.0-1 breaks Flask apps running from subinterpreters | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Joel Uckelman <uckelman> |
| Component: | python3.12 | Assignee: | Miro Hrončok <mhroncok> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 39 | CC: | cstratak, mhroncok, python-maint, python-packagers-sig, thrnciar, vstinner |
| Target Milestone: | --- | Keywords: | Regression, Upgrades |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| URL: | https://github.com/python/cpython/issues/110279 | ||
| Whiteboard: | |||
| Fixed In Version: | python3.12-3.12.1-1.fc39 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-12-19 01:11:35 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: | |||
|
Description
Joel Uckelman
2023-12-02 16:18:55 UTC
https://src.fedoraproject.org/rpms/python3.12/pull-request/89 https://src.fedoraproject.org/rpms/python3.12/pull-request/90 Joel, are you able to test the build and verify the fix? dnf upgrade https://kojipkgs.fedoraproject.org/work/tasks/753/109940753/python3-libs-3.12.0-3.fc39.x86_64.rpm https://kojipkgs.fedoraproject.org/work/tasks/753/109940753/python3-3.12.0-3.fc39.x86_64.rpm (add more subpackages if you have them installed) Thanks for pursuing this promptly. I ought to be able to try it and report back tomorrow. I've tested the build with a minimal Flask app and can confirm that with python3 3.12.0-1, I get the error as reported, and with the builds the app works correctly with no errors.
Thanks very much for fixing this problem!
Here's my minimal test case, if you're interested:
app.py:
```
from flask import Flask
app = Flask(__name__)
@app.route('/')
def front()
return "hey"
```
app.wsgi:
```
import os
import sys
sys.path.append(os.path.dirname(__file__))
from app import app as application
```
Apache conf:
```
WSGIDaemonProcess app
WSGIScriptAlias /app /var/www/html/app.wsgi
```
FEDORA-2023-c209acd8a1 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c209acd8a1 FEDORA-2023-c209acd8a1 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-2023-c209acd8a1` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-c209acd8a1 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-c209acd8a1 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. |