On 10/3/23 16:42, paulrubin37@gmail.com wrote:
So clearly the issue is caused by the DB url: url: postgresql://mailman:XXXXX@localhost/mailman
something between python and PostgreSQL.
(venv) mailman@mail:~> mailman info Traceback (most recent call last):
...
File "/opt/mailman/venv/lib64/python3.11/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 690, in import_dbapi import psycopg2 File "/opt/mailman/venv/lib64/python3.11/site-packages/psycopg2/__init__.py", line 51, in <module> from psycopg2._psycopg import ( # noqa SystemError: initialization of _psycopg raised unreported exception
Something is broken in psycopg2-binary. Try in your venv
pip install --force-reinstall psycopg2-binary\<2.9
In your venv you need
python -c 'import psycopg2'
to succeed (i.e. return without reporting an error).
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan