Bug 2366193

Summary: uwsgi fails to build with Python 3.14: plugins/python/python_plugin.c:1620:80: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘c_recursion_remaining’; did you mean ‘py_recursion_remaining’?
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: uwsgiAssignee: Ralf Ertzinger <redhat-bugzilla>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ksurma, mhroncok, python-packagers-sig, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2322407    

Description Karolina Surma 2025-05-14 08:30:58 UTC
uwsgi fails to build with Python 3.14.0b1.

plugins/python/python_plugin.c: In function ‘uwsgi_python_suspend’:
plugins/python/python_plugin.c:1620:80: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘c_recursion_remaining’; did you mean ‘py_recursion_remaining’?
 1620 |                 up.current_c_recursion_remaining[wsgi_req->async_id] = tstate->c_recursion_remaining;
      |                                                                                ^~~~~~~~~~~~~~~~~~~~~
      |                                                                                py_recursion_remaining
plugins/python/python_plugin.c:1637:65: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘c_recursion_remaining’; did you mean ‘py_recursion_remaining’?
 1637 |                 up.current_main_c_recursion_remaining = tstate->c_recursion_remaining;
      |                                                                 ^~~~~~~~~~~~~~~~~~~~~
      |                                                                 py_recursion_remaining
plugins/python/python_plugin.c: In function ‘uwsgi_python_resume’:
plugins/python/python_plugin.c:1881:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘c_recursion_remaining’; did you mean ‘py_recursion_remaining’?
 1881 |                 tstate->c_recursion_remaining = up.current_c_recursion_remaining[wsgi_req->async_id];
      |                         ^~~~~~~~~~~~~~~~~~~~~
      |                         py_recursion_remaining
plugins/python/python_plugin.c:1898:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘c_recursion_remaining’; did you mean ‘py_recursion_remaining’?
 1898 |                 tstate->c_recursion_remaining = up.current_main_c_recursion_remaining;
      |                         ^~~~~~~~~~~~~~~~~~~~~
      |                         py_recursion_remaining

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14-b1/fedora-rawhide-x86_64/09028534-uwsgi/

For all our attempts to build uwsgi with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/package/uwsgi/

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.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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.