This package does not support Python 3.11. Please test it with Python 3.11 as a matter of urgency as the default will change in early June, as per message on gentoo-dev: https://archives.gentoo.org/gentoo-dev/message/abb5788ea81c7bbf4d40a2995b682eb9. Please check the information provided in the tracker. Ask in #gentoo-python on IRC if need any help.
I tried to compile mod_wsgi with python 3.11, but I get this error: src/server/mod_wsgi.c:9524:32: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'} 9524 | if (current->f_trace) { | ^~ src/server/mod_wsgi.c:9525:41: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'} 9525 | lineno = current->f_lineno; | ^~ src/server/mod_wsgi.c:9528:58: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'} 9528 | lineno = PyCode_Addr2Line(current->f_code, | ^~ src/server/mod_wsgi.c:9529:58: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'} 9529 | current->f_lasti); | ^~ src/server/mod_wsgi.c:9533:56: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'} 9533 | filename = PyUnicode_AsUTF8(current->f_code->co_filename); | ^~ src/server/mod_wsgi.c:9534:52: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'} 9534 | name = PyUnicode_AsUTF8(current->f_code->co_name); | ^~ src/server/mod_wsgi.c:9547:36: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'} 9547 | if (current->f_back) { | ^~ src/server/mod_wsgi.c:9561:38: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'} 9561 | current = current->f_back; | ^~ apxs:Error: Command failed with rc=65536 . make: *** [Makefile:31: src/server/mod_wsgi.la] Error 1
However, the latest available version (4.9.4) compile and seems to work fine with python 3.11. I tested it with pgadmin4 and I found no problems so far.
Created attachment 859693 [details] mod_wsgi 4.9.4 ebuild Here is the ebuild I used to build, test, and install a new Python 3.11 compatible mod_wsgi. It builds fine. I will test it on my server as soon as I finish the Python-3.10 to Python-3.11 upgrade to make sure it also runs fine.
(In reply to Robert Marmorstein from comment #3) > Created attachment 859693 [details] > mod_wsgi 4.9.4 ebuild > > Here is the ebuild I used to build, test, and install a new Python 3.11 > compatible mod_wsgi. It builds fine. I will test it on my server as soon > as I finish the Python-3.10 to Python-3.11 upgrade to make sure it also runs > fine. Thanks Robert. I'll take a look.
commit 4cf080a536a86eaceb17c82433ff4d81e43047ef Author: Sam James <sam@gentoo.org> Date: Sun Apr 9 07:32:06 2023 +0100 www-apache/mod_wsgi: add 4.9.4 Closes: https://bugs.gentoo.org/897326 Signed-off-by: Sam James <sam@gentoo.org>