On Tue, Jul 11, 2017, at 07:32 AM, Rafael Mora wrote:
I want to install mailman 3 in a centos 7 virtual machine. I'm following these steps and I cannot make it work:
I am wondering if you are interested to setup a development environment or use Mailman 3? These instructions below are for working on Mailman, if you just need to deploy, instructions here1 would be the best.
git clone https://gitlab.com/mailman/mailman.git
virtualenv -p python3 venv
python setup.py develop
- I am pretty sure this setup command will place a configuration file
~/mailman/var/etc/mailman.cfg. Edit this file. https://mailman.readthedocs.io/en/latest/src/mailman/config/docs/config.html 8.
mailman infocan confirm which configuration file is in use 9.
mailman startwill start up Mailman 3 Core. This is what the parent background process command looks like in
/home/ubuntu/mailman/venv/bin/python /home/ubuntu/mailman/venv/bin/master -C /home/ubuntu/mailman/var/etc/mailman.cfg
Looks like you are working as the ubuntu user here and the the
virtualenv that you created exists at
I also tried the steps on the website https://wiki.list.org/DEV/SetupDevEnvironment but it doesn't work either
What do you suggest?
This is what I get from console:
[root@localhost ~]# cd dev/
[root@localhost dev]# cd mailman/
[root@localhost mailman]# source venv3/bin/activate
Why do you try to user a different venv as a root user here? If you'd just try:
$ source /home/ubuntu/mailman/venv/bin/activate
and then try
$ mailman start
things would work!
However, this would be a different instance of mailman and would create the new configuration (and the entire var directory) at the directory you run this command from. If you want to inhibit this, you can either use the -C flag, or set MAILMAN_CONFIG_FILE environment variable to point to your one single configuration file.
(venv3) [root@localhost mailman]# cd mailman/
(venv3) [root@localhost mailman]# ls conf.py COPYING data README.rst src unittest.cfg contrib coverage.ini MANIFEST.in setup.cfg template.py copybump.py cron port_me setup.py tox.ini
(venv3) [root@localhost mailman]# cd ..
(venv3) [root@localhost mailman]# mailman start Starting Mailman's master runner /root/dev/mailman/venv3/bin/python: can't open file '/sbin/master': [Errno 2] No such file or directory
(venv3) [root@localhost mailman]#
Hope that helps!