Odhiambo Washington writes:
Has MM3 been tested with Python3.11?
Not heavily.
PEP 405 virtualenv detected: /opt/mailman/venv/
Have you recreated the venv from scratch, or did you try to upgrade it (or did you not upgrade it at all)?
import math as _math
ModuleNotFoundError: No module named 'math'
This is not a version incompatibility in the sense that Python 3.11 does something different from earlier versions with the same code. This is Python 3.11 saying that your installation Python 3.11 is broken because it can't find stdlib modules that are bundled with it.
Try "python3.11 -c 'import math; print(dir(math))" (with the venv deactivated). It should produce a list of about 60 attribute names. If that fails, your Python 3.11 itself is broken. If that succeeds, python3.11 is incompatible with the venv. My only guess is that the venv contains the math module from an earlier version of Python and 3.11 won't load it. (Note, "python -m math" is not expected to work, I forget why not.)