I need to install Mailman2.1 using python3.x, but I have had some problem. On my Ubuntu-18.04 server, I have both python2.7 and python3.6. Now, everything is all fine with python2.7, but when I use python3.6, it bombs out:
root@lists:/home/wash/Mailman/2.1.29/mailman-2.1.29# ./configure --with-cgi-gid=33 --with-mail-gid=117 --with-python=/usr/bin/python3.6 checking for --with-python... /usr/bin/python3.6 checking Python interpreter... /usr/bin/python3.6 checking Python version... 3.6.7 checking dnspython... ok checking Python's email package... Traceback (most recent call last): File "conftest.py", line 8, in <module> version = tuple(int(v) for v in email.__version__.split('.')) AttributeError: module 'email' has no attribute '__version__' cat: conftest.out: No such file or directory checking Japanese codecs... Traceback (most recent call last): File "conftest.py", line 2, in <module> unicode('OK', 'iso-2022-jp') NameError: name 'unicode' is not defined cat: conftest.out: No such file or directory checking Korean codecs... Traceback (most recent call last): File "conftest.py", line 2, in <module> unicode('OK', 'euc-kr') NameError: name 'unicode' is not defined cat: conftest.out: No such file or directory checking that Python has a working distutils... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes checking for true... /bin/true checking for --without-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether #! works in shell scripts... yes checking for --with-var-prefix... no checking for --with-permcheck... yes checking for --with-username... mailman checking for user name "mailman"... okay checking for --with-groupname... mailman checking for group name "mailman"... okay checking permissions on /usr/local/mailman... File "conftest.py", line 17 if mailmangid <> gid: ^ SyntaxError: invalid syntax cat: conftest.out: No such file or directory configure: error: ***** Installation directory /usr/local/mailman is not configured properly! -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-) ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org