uwsgi icon indicating copy to clipboard operation
uwsgi copied to clipboard

uwsgi fails to compile with Python 3.13

Open gmc444-b opened this issue 1 year ago • 0 comments

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.

gmc444-b avatar Jun 25 '24 15:06 gmc444-b