On Mon, Mar 6, 2023 at 7:10 PM Mark Sapiro <mark@msapiro.net> wrote:
On 3/6/23 03:38, Odhiambo Washington wrote:
Has MM3 been tested with Python3.11?
Yes, but not with uWSGI which is not part of Mailman per se.
Oh. I can easily switch between uWSGI, Gunicorn, or mod_wsgi.
I updated a Debian VM to Python3.11, installed MM3 and migrated the
configs. However, I am unable to get past the following error:
...
Traceback (most recent call last): File "/opt/mailman/venv/lib/python3.11/site-packages/mailman_web/wsgi.py", line 10, in <module> from django.core.wsgi import get_wsgi_application File "/opt/mailman/venv/lib/python3.11/site-packages/django/__init__.py", line 1, in <module> from django.utils.version import get_version File "/opt/mailman/venv/lib/python3.11/site-packages/django/utils/version.py", line 1, in <module> import datetime File "/usr/lib/python3.11/datetime.py", line 12, in <module> import math as _math ModuleNotFoundError: No module named 'math' unable to load app 0 (mountpoint='') (callable not found or import error)
This error says /usr/lib/python3.11/datetime.py can't import math. math is part of the python 3.11 standard library <https://docs.python.org/3/library/math.html>. There is something wrong with your Python 3.11 installation.
So I will redo the venv by invoking the python binaries explicitly, in case I have conflicts. Thanks.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)