On 9/16/23 5:29 AM, Paul Rubin wrote:
*I need to know what to remove, how to correctly update, etc., That said the two scripts appear to be very similar:*
mail:/opt/mailman # head /usr/bin/mailman
#!/usr/bin/python3 # EASY-INSTALL-ENTRY-SCRIPT: 'mailman==3.3.4','console_scripts','mailman' __requires__ = 'mailman==3.3.4' 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(
This is no good because it uses the system Python and won't have the venv's site-packages in its path.
mail:/opt/mailman # head /opt/mailman/venv/bin/mailman #!/opt/mailman/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from mailman.bin.mailman import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main()) mail:/opt/mailman #
This one is good because it uses the venv python3 and thus uses site-packages from the venv.
*Given the two years since the last reboot I also tried following * https://docs.mailman3.org/en/latest/upgrade-guide.html *to make sure I was running the latest*
pip install -U mailman postorius django-mailman3 hyperkitty mailman-web
Thin may be part of the issue. The above may not upgrade dependencies as
needed. You may need the --upgrade-strategy eager
option.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan