Hi Mark and Stephen,
The command, "/opt/mailman/venv/bin/mailman -C /etc/mailman3/mailman.cfg" generates the following error message:
Traceback (most recent call last): File "/opt/mailman/venv/bin/mailman", line 6, in <module> from pkg_resources import load_entry_point File "/opt/mailman/venv/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3248, in <module> @_call_aside ^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3223, in _call_aside f(*args, **kwargs) File "/opt/mailman/venv/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3261, in _initialize_master_working_set working_set = WorkingSet._build_master() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.11/site-packages/pkg_resources/__init__.py", line 617, in _build_master ws.require(__requires__) File "/opt/mailman/venv/lib/python3.11/site-packages/pkg_resources/__init__.py", line 956, in require needed = self.resolve(parse_requirements(requirements)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.11/site-packages/pkg_resources/__init__.py", line 815, in resolve dist = self._resolve_dist( ^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.11/site-packages/pkg_resources/__init__.py", line 856, in _resolve_dist raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'mailman==3.3.5' distribution was not found and is required by the application
Also, the command "/opt/mailman/venv/bin/mailman -C /etc/mailman3/mailman.cfg start" generates a similar error message.
The contents of my file, /opt/mailman/venv/bin/mailman, is different from your suggested contents as follows:
#!/opt/mailman/venv/bin/python3 # EASY-INSTALL-ENTRY-SCRIPT: 'mailman==3.3.5','console_scripts','mailman' __requires__ = 'mailman==3.3.5' import re import sys from pkg_resources import load_entry_point
if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( load_entry_point('mailman==3.3.5', 'console_scripts', 'mailman')() )
So, I put Mark's suggested contents in /opt/mailman/venv/bin/mailman and then executed the command:
/opt/mailman/venv/bin/mailman -C /etc/mailman3/mailman.cfg
which resulted in the following error message:
Traceback (most recent call last): File "/opt/mailman/venv/bin/mailman", line 5, in <module> from mailman.bin.mailman import main ModuleNotFoundError: No module named 'mailman'
Any more ideas?
Thanks,
Gordon