uwsgi
uwsgi copied to clipboard
Trouble building 2.0.24 python plugin
I'm having the following issue building a standalone python plugin for uwsgi-2.0.24 against python 3.11 or 3.12 (havent' tried other versions of python)
PYTHON=~ccsoft/.pyenv/versions/3.11.8/bin/python3.11 ./uwsgi --build-plugin "plugins/python python3118"
*** uWSGI building and linking plugin from plugins/python ***
[gcc] python3118_plugin.so
plugins/python/python_plugin.c: In function ‘uwsgi_python_init’:
plugins/python/python_plugin.c:254:17: warning: ‘Py_SetPythonHome’ is deprecated [-Wdeprecated-declarations]
254 | Py_SetPythonHome(wpyhome);
| ^~~~~~~~~~~~~~~~
In file included from /home/ccsoft/.pyenv/versions/3.11.8/include/python3.11/Python.h:94,
from plugins/python/uwsgi_python.h:4,
from plugins/python/python_plugin.c:1:
/home/ccsoft/.pyenv/versions/3.11.8/include/python3.11/pylifecycle.h:40:38: note: declared here
40 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetPythonHome(const wchar_t *);
| ^~~~~~~~~~~~~~~~
plugins/python/python_plugin.c:278:9: warning: ‘Py_SetProgramName’ is deprecated [-Wdeprecated-declarations]
278 | Py_SetProgramName(pname);
| ^~~~~~~~~~~~~~~~~
In file included from /home/ccsoft/.pyenv/versions/3.11.8/include/python3.11/Python.h:94,
from plugins/python/uwsgi_python.h:4,
from plugins/python/python_plugin.c:1:
/home/ccsoft/.pyenv/versions/3.11.8/include/python3.11/pylifecycle.h:37:38: note: declared here
37 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
| ^~~~~~~~~~~~~~~~~
plugins/python/python_plugin.c: At top level:
plugins/python/python_plugin.c:2105:35: error: expected identifier or ‘(’ before ‘=’ token
2105 | struct uwsgi_plugin python_plugin = {
| ^
This is running on a fresh install of amazon linux 2023, with gcc 11.4.1, so it's not like gcc doesn't speak Designated Initializers, right?
I'd be happy to debug but I don't know how to get uwsgi --build-plugin to emit more debug info.