Problema actualizando mis servicios WSGI a Python 3.13

https://blog.jcea.es/posts/20241012-mod_wsgi_python3_13.html

#Python #WSGI #mod_wsgi

Problema actualizando mis servicios WSGI a Python 3.13

Acaba de salir Python 3.13 y, como siempre, actualizo mi código y servicios a esta nueva versión. Actualizo rápido para aprovechar las mejoras de la nueva versión de Python y porque acumular actualiza

El hilo del laberinto

I feel like I'm so close to the finish line, by not using mod-wsgi that was packaged by the distro, in this case Alpine, and instead use #mod_wsgi from #pip.

I don't get the
segfault core dumped error anymore, which is a huge relief cos that was annoying to debug, but I can't serve my pages yet either. I got this error instead:

Truncated or oversized response headers received from daemon process 'localhost': /base/base/wsgi.py
I almost feel like
#WSGI (or #Apache) wasn't made for #Alpine in the first place considering it's absent in both docs :)))

« Do not try and use a Python virtual environment from one Python installation or version with mod_wsgi, when mod_wsgi was compiled for a different one. »
https://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html#virtual-environment-and-python-version

C'est génial #virtualenv avec #Python, mais #mod_wsgi te remet direct les pieds sur terre.

Virtual Environments — mod_wsgi 5.0.1 documentation