Hi gang,
On mailman import21, I hit the error
TypeError: 'pathlib._local.PosixPath' object does not support the context manager protocol
I found the earlier thread, where Mark wrote
This is https://gitlab.com/mailman/mailman/-/issues/1190 fixed for Mailman 3.3.11 by https://gitlab.com/mailman/mailman/-/merge_requests/1309
I have
(venv) mailman@darni:~$ mailman version GNU Mailman 3.3.9 (Tom Sawyer)
I tried
(venv) mailman@darni:~$ pip install -U mailman postorius django-mailman3 hyperkitty mailman-web
to no avail, the TypeError is not fixed and the version is the same.
ok, so I need to spell out a version. Trying
pip install -U mailman==3.3.11 postorius django-mailman3 hyperkitty mailman-web
3.3.11 appears not to be available
pip install -U mailman==3.3.10 postorius django-mailman3 hyperkitty mailman-web
yields the familiar problem with the nntplib.
ERROR: Could not find a version that satisfies the requirement nntplib; python_version >= "3.13" (from mailman) (from versions: none) ERROR: No matching distribution found for nntplib; python_version >= "3.13"
I had earlier gotten around this by installing its successor, standard-nntplib, and it is still there.
(venv) mailman@darni:~$ pip3.13 install standard-nntplib Requirement already satisfied: standard-nntplib in /usr/local/mailman/venv/lib/python3.13/site-packages (3.13.0)
That used to work for 3.3.9. But the 3.3.10 version may have no verbiage to say that the nntlib is replaced by standard-nntplib
Now I seem to have managed to hose my environment.
(venv) mailman@darni:~$ mailman version Traceback (most recent call last): File "/usr/local/mailman/venv/bin/mailman", line 3, in <module> from mailman.bin.mailman import main File "/usr/local/mailman/venv/lib/python3.13/site-packages/mailman/bin/mailman.py", line 25, in <module> from mailman.core.initialize import initialize File "/usr/local/mailman/venv/lib/python3.13/site-packages/mailman/core/initialize.py", line 29, in <module> import mailman.config.config File "/usr/local/mailman/venv/lib/python3.13/site-packages/mailman/config/__init__.py", line 20, in <module> from mailman.config.config import Configuration File "/usr/local/mailman/venv/lib/python3.13/site-packages/mailman/config/config.py", line 32, in <module> from mailman.utilities.modules import call_name, expand_path File "/usr/local/mailman/venv/lib/python3.13/site-packages/mailman/utilities/modules.py", line 23, in <module> from pkg_resources import resource_filename, resource_listdir ModuleNotFoundError: No module named 'pkg_resources'
What now?
-- Written by Thomas Krichel http://openlib.org/home/krichel on his 22213th day.