Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uwsgi fails to compile with Python 3.13 #2651

Closed
gmc444-b opened this issue Jun 25, 2024 · 2 comments
Closed

uwsgi fails to compile with Python 3.13 #2651

gmc444-b opened this issue Jun 25, 2024 · 2 comments

Comments

@gmc444-b
Copy link

When attempting to install uWSGI with Python 3.13, I get compiler errors like the following:

  plugins/python/uwsgi_python.h:178:9: error: unknown type name '_PyCFrame'
     178 |         _PyCFrame **current_frame;
            |         ^~~~~~~~~

With 3.13, the _PyCFrame struct was removed, as documented in the changelog and in gh-108035.

Looking at the source, it appears that this line is defining UWSGI_PY312, which in turn takes the wrong option in an if statement further down (line 189) and the code would probably work if it took the else clause at line 203.

@xavierba
Copy link

#2655 should fix this.

@xrmx
Copy link
Collaborator

xrmx commented Sep 15, 2024

This will be fixed in 2.0.27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants