Postorius install - missing python modules
Hello,
On AlmaLinux 8.7, after Configuring Mailman and Setting up my database (postgres), and hooking up my mailserver (Exim), the instructions proceed to Set up Postorius: https://docs.mailman3.org/projects/postorius/en/latest/setup.html
I've tried pip install postorius
, as well as the latest version, cloning and pip install -e .
. I've tried with multiple python versions, all with the results: ModuleNotFoundError. Here's highlights of one example:
dnf update -y
dnf upgrade -y
dnf install -y python39
alternatives --config python3
» python3 -V
Python 3.9.13
pip3 install postorius
git clone https://gitlab.com/mailman/postorius.git
cd postorius
pip3 install -e .
cd example_project
~/postorius/example_project (master)»
» python3 manage.py migrate
...
ModuleNotFoundError: No module named 'debug_toolbar'
» pip3 install debug_toolbar
ERROR: Could not find a version that satisfies the requirement debug_toolbar (from versions: none)
ERROR: No matching distribution found for debug_toolbar
» pip3 install django-debug-toolbar
...
» python3 manage.py migrate
...
ModuleNotFoundError: No module named 'requests_panel'
» pip3 install requests_panel
...
» python3 manage.py migrate
...
ModuleNotFoundError: No module named 'requests_panel'
» pip3 install django-requests-panel
...
» python3 manage.py migrate
...
ModuleNotFoundError: No module named 'requests_panel.panel'
# I tried a bunch of different modules, none resolved the error, finally tried this & it did:
» cd $( dirname $( locate requests_panel/panels.py ) ) && cp -pv panels.py panel.py
» python3 manage.py migrate
...
ModuleNotFoundError: No module named 'requests_wrapper'
» pip3 install requests_wrapper
...
» python3 manage.py migrate
...
ImportError: cannot import name '_total_seconds' from 'requests_wrapper' (/usr/local/lib/python3.9/site-packages/requests_wrapper/__init__.py)
On Wed, May 3, 2023 at 7:13 PM Marco F <marco.ferrufino@webpros.com> wrote:
Hello,
On AlmaLinux 8.7, after Configuring Mailman and Setting up my database (postgres), and hooking up my mailserver (Exim), the instructions proceed to Set up Postorius: https://docs.mailman3.org/projects/postorius/en/latest/setup.html
Hello Marco,
Please abandon that method completely and follow the recommended method.
https://docs.mailman3.org/en/latest/install/virtualenv.html
I've tried
pip install postorius
, as well as the latest version, cloning andpip install -e .
. I've tried with multiple python versions, all with the results: ModuleNotFoundError. Here's highlights of one example:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Don't do the above!!
dnf update -y dnf upgrade -y dnf install -y python39 alternatives --config python3 » python3 -V Python 3.9.13
^^^^^^^^^^^^^^^^^^ From here, proceed to: https://docs.mailman3.org/en/latest/install/virtualenv.html#installing-depen...
And continue with everything below it.
The above method is universal across all OSes.
And with it, it will be easier for most of us to help you. We don't even have to think about your OS if you follow the above method :)
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
participants (2)
-
Marco F
-
Odhiambo Washington