On Tue, 2021-12-28 at 20:05 -0800, Mark Sapiro wrote:
On 12/28/21 5:58 PM, William Oliver wrote:
On Tue, 2021-12-28 at 17:50 -0800, Mark Sapiro wrote:
The recommended uwsgi.ini includes
pythonpath = /etc/mailman3/
according to https://uwsgi-docs.readthedocs.io/en/latest/Options.html?highlight=pythonpat... this should work. Did you have that? If you did and it doesn't work, perhaps adding
env = PYTHONPATH=/etc/mailman3
Yes, I had the first, and does not work. The second entry works.
I updated the doc to use
env = PYTHONPATH=/etc/mailman3
I don't know enough about uwsgi to know for sure, but the issue may be that setting pythonpath in a running python process doesn't work - it's too late as the path is already set in python's initialization.
You might add that it may be necessary to do it in .bashrc for linux folk -- I got it to work but as I've demonstrated, I can sometimes make mistakes and leave detritus around. I may not have successfully cleared my previous setting. That being said, I think it works.
I am, I am afraid not a details-oriented guy, which is a bit of a drawback for someone doing system admin...