Python and Mailman problem
Critical trying to run Python 2.1 on my production mailman 2.0.11 Univeristy Mailing Lists. I had to revert back to Python1.5.2 Does Python 2.1 work with Mailman 2.0.11. Details & and error messages below. Does anyone know the solution of this problem below?
I've install mailman 2.0.11 on Red Hat 7.2 and it was working fine until
I upgrade to Python 2.1. Once I upgraded to this version everything seemed fine for 5 hours. I was able to receive messages from my mailing lists at our University. The Web Interface administrator options for the
lists all worked fine. Then messages started piling in "qfiles" and it would not send anymore messages out. I moved them out of the queue and started moving them back in one at a time and then again the messages seemed to be sent properly, but then they started piling back up in the qfiles directory again . Here is the errors I received in the "error" logfile. I'm not totally efficient on Python yet, so I would like some help I would appreciate it. (Quite a few messages on CORRUPTED ARCHIVES and module regex not found)
ERROR LOG FILE
May 21 10:20:01 2002 (31161) CORRUPT ARCHIVE FOR LIST: libstaff May 21 10:20:02 2002 qrunner(31161): Traceback (most recent call last): May 21 10:20:02 2002 qrunner(31161): File "/home/mailman/Mailman/Archiver/Archiver.py", line 220, in ArchiveMail May 21 10:20:02 2002 qrunner(31161): h = HyperArch.HyperArchive(self) May 21 10:20:02 2002 qrunner(31161): AttributeError: 'Mailman.Archiver.HyperArch' module has no attribute 'HyperArchive' May 21 10:20:02 2002 (31161) CORRUPT ARCHIVE FOR LIST: relief May 21 10:20:02 2002 qrunner(31161): Traceback (most recent call last): May 21 10:20:02 2002 qrunner(31161): File "/home/mailman/Mailman/Archiver/Archiver.py", line 220, in ArchiveMail May 21 10:20:02 2002 qrunner(31161): h = HyperArch.HyperArchive(self) May 21 10:20:02 2002 qrunner(31161): AttributeError: 'Mailman.Archiver.HyperArch' module has no attribute 'HyperArchive' May 21 10:20:02 2002 (31161) CORRUPT ARCHIVE FOR LIST: ultimate May 21 10:22:01 2002 qrunner(31203): Traceback (most recent call last): May 21 10:22:01 2002 qrunner(31203): File "/home/mailman/Mailman/Archiver/Archiver.py", line 219, in ArchiveMail May 21 10:22:01 2002 qrunner(31203): import HyperArch May 21 10:22:01 2002 qrunner(31203): File "/home/mailman/Mailman/Archiver/HyperArch.py", line 47, in ? May 21 10:22:01 2002 qrunner(31203): from Mailman import EncWord May 21 10:22:01 2002 qrunner(31203): File "/home/mailman/Mailman/EncWord.py", line 21, in ? May 21 10:22:01 2002 qrunner(31203): import base64 May 21 10:22:01 2002 qrunner(31203): File "/tmp/32444-i386/install/usr/lib/python2.1/base64.py", line 7, in ? May 21 10:22:01 2002 qrunner(31203): import binascii May 21 10:22:01 2002 qrunner(31203): ImportError: No module named binascii
May 21 10:22:01 2002 (31203) CORRUPT ARCHIVE FOR LIST: korymail May 21 10:28:01 2002 qrunner(31258): Traceback (most recent call last): May 21 10:28:01 2002 qrunner(31258): File "/home/mailman/Mailman/Archiver/Archiver.py", line 219, in ArchiveMail May 21 10:28:01 2002 qrunner(31258): import HyperArch May 21 10:28:01 2002 qrunner(31258): File "/home/mailman/Mailman/Archiver/HyperArch.py", line 47, in ? May 21 10:28:01 2002 qrunner(31258): from Mailman import EncWord May 21 10:28:01 2002 qrunner(31258): File "/home/mailman/Mailman/EncWord.py", line 21, in ? May 21 10:28:01 2002 qrunner(31258): import base64 May 21 10:28:01 2002 qrunner(31258): File "/tmp/32444-i386/install/usr/lib/python2.1/base64.py", line 7, in ? May 21 10:28:01 2002 qrunner(31258): import binascii May 21 10:28:01 2002 qrunner(31258): ImportError: No module named binascii
3:26:01 2002 qrunner(32122): Traceback (most recent call last): May 21 13:26:01 2002 qrunner(32122): File "/home/mailman/cron/qrunner", line 283, in ? May 21 13:26:01 2002 qrunner(32122): kids = main(lock) May 21 13:26:01 2002 qrunner(32122): File "/home/mailman/cron/qrunner", line 253, in main May 21 13:26:01 2002 qrunner(32122): keepqueued = dispose_message(mlist, msg, msgdata) May 21 13:26:01 2002 qrunner(32122): File "/home/mailman/cron/qrunner", line 121, in dispose_message May 21 13:26:01 2002 qrunner(32122): if BouncerAPI.ScanMessages(mlist, mimemsg): May 21 13:26:01 2002 qrunner(32122): File "/home/mailman/Mailman/Bouncers/BouncerAPI.py", line 57, in ScanMessages
May 21 13:26:01 2002 qrunner(32122): mod = __import__('Mailman.Bouncers.'+modname) May 21 13:26:01 2002 qrunner(32122): File "/home/mailman/Mailman/Bouncers/Catchall.py", line 34, in ? May 21 13:26:01 2002 qrunner(32122): import regsub May 21 13:26:01 2002 qrunner(32122): File "/usr/lib/python2.1/regsub.py", line 20, in ? May 21 13:26:01 2002 qrunner(32122): import regex May 21 13:26:01 2002 qrunner(32122): ImportError : No module named regex
Kory Wheatley Idaho State University
On Thu, May 23, 2002 at 12:52:56AM -0600, Kory Wheatley wrote:
Critical trying to run Python 2.1 on my production mailman 2.0.11 Univeristy Mailing Lists. I had to revert back to Python1.5.2 Does Python 2.1 work with Mailman 2.0.11.
I got it to work with Python 2.2.1 but this one was built from source on Solaris 8 and I remember having to uncomment a lot of modules at the Modules/Setup file before the build. Also, I needed to patch the Mailman/Bouncers/Catchall.py file because 'regex' didn't seem to be there to include (maybe I missed something but anyway I didn't think it worthwhile to figure out how to get 'regex' included if it's obsolete and only one module of Mailman needs it.) I posted the patch to the Mailman developers' list earlier this month but I can send it if you can't find it and are interested.
R.
participants (2)
-
Kory Wheatley -
Roy Bixler