Cloned mailman3 from the gitlab site, having issues locating the mailman3 file to start it
The path to the mailman3.py file is: /home/mailman3/mailman/src/mailman/bin/mailman.py I created a mailman3 user, then, set the ownership on all directories and files in /home/mailman3 and below to mailman3:mailman3.
When trying to run the "mailman info" command to verify that that mailman3 can start, I get this error:
File "/home/mailman3/mailman/src/mailman/bin/mailman.py", line 22 in <module> from mailman.command.cli_help import help as help command
Not sure what is going on here, help greatly appreciated.
On 5/17/24 12:06 PM, Keith Christian wrote:
The path to the mailman3.py file is: /home/mailman3/mailman/src/mailman/bin/mailman.py I created a mailman3 user, then, set the ownership on all directories and files in /home/mailman3 and below to mailman3:mailman3.
You need to install all the dependencies and also have /home/mailman3/mailman/src/mailman in your PYTHONPATH.
If you just want Mailman Core and given that you've already cloned it
from gitlab, I suggest creating a Python virtual environment as the
mailman3 user with python3 -m venv /path/to/your/venv
and then as the
mailman3 user activate the venv, source /path/to/your/venv/bin/activate
, and do pip install /home/mailman3/mailman
to install Mailman and it's dependencies in the
venv. Then you can just run mailman info
.
I suggest a venv for this to isolate the dependencies from things that might already be installed system wide with differing versions.
To install the whole suite including the Postorius web UI for list management and the HyperKitty archiver, see https://docs.mailman3.org/en/latest/install/virtualenv.html
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you, Mark! I'll try that, hopefully I can get through the install without bothering this list too much.
------ Keith
Mark, Good morning,
If it matters, running Python3 3.6.8 on Red Hat Enterprise Linux release 8.9 (Ootpa)
[mailman3@wesnixtopmed mailman]$ mkdir /home/mailman3/mailman/virtual_environment [mailman3@wesnixtopmed mailman]$ python3 -m venv /home/mailman3/mailman/virtual_environment [mailman3@wesnixtopmed mailman]$ source /home/mailman3/mailman/virtual_environment/bin/activate (virtual_environment) [mailman3@wesnixtopmed mailman]$ pip install /home/mailman3/mailman
I tried to follow your instructions closely today, got these messages afterward:
Directory '/home/mailman3/mailman' is not installable. File 'setup.py' not found. You are using pip version 9.0.3, however version 24.0 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
Thanks, I appreciate your help.
--------------Keith
On Sat, May 18, 2024 at 9:49 AM <keith1christian@gmail.com> wrote:
Thank you, Mark! I'll try that, hopefully I can get through the install without bothering this list too much.
------ Keith
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to keith1christian@gmail.com
On 5/20/24 1:08 PM, Keith Christian wrote:
Mark, Good morning,
If it matters, running Python3 3.6.8 on Red Hat Enterprise Linux release 8.9 (Ootpa)
[mailman3@wesnixtopmed mailman]$ mkdir /home/mailman3/mailman/virtual_environment [mailman3@wesnixtopmed mailman]$ python3 -m venv /home/mailman3/mailman/virtual_environment [mailman3@wesnixtopmed mailman]$ source /home/mailman3/mailman/virtual_environment/bin/activate (virtual_environment) [mailman3@wesnixtopmed mailman]$ pip install /home/mailman3/mailman
I tried to follow your instructions closely today, got these messages afterward:
Directory '/home/mailman3/mailman' is not installable. File 'setup.py' not found. You are using pip version 9.0.3, however version 24.0 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
Both pip and python are too old. Officially, current Mailman 3 requires Python 3 >= 3.9. It might work with older versions, but no guarantees.
Also, 9.0.3 doesn't recognize pyproject.toml as replacing setup.py. It requires pip >= 10.0. see https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Keith Christian
-
keith1christian@gmail.com
-
Mark Sapiro