[Mailman-Users] Compiling mailaman-2.1.x against python3.x
Hi, I am trying to manually compile mailman-2.1.34 against python3.x on FreeBSD-12.1 because python2.7 is being EoLed on the platform. I am getting these errors which I need help with: root@gw:/home/wash/Tools/Mailman/2.1.29/mailman-2.1.34 # ln -fs /usr/local/bin/python3.6 /usr/local/bin/python root@gw:/home/wash/Tools/Mailman/2.1.29/mailman-2.1.34 # ./configure --with-cgi-gid=80 --with-mail-gid=26 checking for --with-python... no checking for python... /usr/local/bin/python checking Python interpreter... /usr/local/bin/python checking Python version... 3.6.11 checking dnspython... ok checking Python's email package... Traceback (most recent call last): File "conftest.py", line 8, in 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 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 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... /usr/bin/true checking for --without-gcc... no checking for gcc... no checking for cc... cc 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 cc accepts -g... yes checking for cc 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 To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/
[Mailman-Users] Re: Compiling mailaman-2.1.x against python3.x
On 7/18/2020 12:14 PM, Odhiambo Washington wrote: I am trying to manually compile mailman-2.1.34 against python3.x on FreeBSD-12.1 because python2.7 is being EoLed on the platform. 2.7 is still available for Freebsd 12.1 and won't stop working just being EOL'd. This may have changed, but- On Mon, 7 Jan 2019 at 20:37, Mark Sapiro wrote: > On 1/7/19 1:22 AM, Odhiambo Washington wrote: > > 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: > > > Which is expected because Mailman 2.1 does not support Python 3 and > never will. If you don't want to update the codebase or move to MM3, you're pretty much stuck with 2.7. z! -- Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/
[Mailman-Users] Re: Compiling mailaman-2.1.x against python3.x
IIRC, mailman-2.x should work with minimum python2.x. Python3.x is also supposed to work. I'd like to work with python3.6 or python3.7. How do I do that? On Sat, 18 Jul 2020 at 22:45, Carl Zwanzig wrote: > On 7/18/2020 12:14 PM, Odhiambo Washington wrote: > > I am trying to manually compile mailman-2.1.34 against python3.x on > > FreeBSD-12.1 because python2.7 is being EoLed on the platform. > > 2.7 is still available for Freebsd 12.1 and won't stop working just being > EOL'd. > > > This may have changed, but- > On Mon, 7 Jan 2019 at 20:37, Mark Sapiro wrote: > > On 1/7/19 1:22 AM, Odhiambo Washington wrote: > > > 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: > > > > > > Which is expected because Mailman 2.1 does not support Python 3 and > > never will. > > If you don't want to update the codebase or move to MM3, you're pretty > much > stuck with 2.7. > > z! > -- > Mailman-Users mailing list -- mailman-users@python.org > To unsubscribe send an email to mailman-users-le...@python.org > https://mail.python.org/mailman3/lists/mailman-users.python.org/ > Mailman FAQ: http://wiki.list.org/x/AgA3 > Security Policy: http://wiki.list.org/x/QIA9 > Searchable Archives: > https://www.mail-archive.com/mailman-users@python.org/ > https://mail.python.org/archives/list/mailman-users@python.org/ > -- 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 To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/
[Mailman-Users] Re: Compiling mailaman-2.1.x against python3.x
On 7/18/2020 2:50 PM, Odhiambo Washington wrote: On Mon, 7 Jan 2019 at 20:37, Mark Sapiro wrote: > Which is expected because Mailman 2.1 does not support Python 3 and > never will. (If anyone knows about this, it's Mark.) Python3.x is also supposed to work. (See above) I'd like to work with python3.6 or python3.7. How do I do that? From the previous conversations on this list, it looks like you're pretty much on your own for that. First thing would be running the entire MM2 codebase through the python 2->3 converter process, but I have no idea what it will need past that. I'm sure there are pages that detail the syntactic and semantic differences between the version. These differences are some of the reasons that python2 is still around. BTW, I took at quick look at this conversion 8-10 months ago and decided it wasn't worth my time to chase down all of the issues. z! -- Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/
[Mailman-Users] Re: Compiling mailaman-2.1.x against python3.x
On 7/18/20 2:50 PM, Odhiambo Washington wrote: > IIRC, mailman-2.x should work with minimum python2.x. > Python3.x is also supposed to work. Why do you think that? > I'd like to work with python3.6 or python3.7. How do I do that? You could start with 2to3, but I can almost certainly guarantee you'll give up before you squash all the unicode bugs. Mailman 2.1.27+ REQUIRES Python 2. Preferably the latest Python 2.7. I *think* it will work with Python 2.6, but that is not recommended. It will not work with any Python 3 and porting it would be a nightmare. -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/