[Mailman-Users] qrunner import error on regex module

Dave Dribin dave-ml at dribin.org
Wed Nov 6 18:42:59 CET 2002


Hello,

My setup is RedHat 7.2 with the default Python RPMs installed, Postfix
1.1.10 (installed from source), and Mailman 2.0.13 (installed from
source).  I installed Mailman with these options:

./configure  --with-mail-gid=mailman --with-cgi-gid=www \
             --with-python=/usr/bin/python2.1

I'm using Mailman for 1 very small volume mailing list (a few messages
per month).  I installed it in early September, and everything worked
for about a month.  Yesterday, someone had sent a message that never
got through.  I check the error log (/home/mailman/logs/error) only to
find this error:

------------------------------------------------------------------------
Nov 06 11:29:01 2002 qrunner(8237): Traceback (most recent call last):
Nov 06 11:29:01 2002 qrunner(8237):   File "/home/mailman/cron/qrunner", line 283, in ?
Nov 06 11:29:01 2002 qrunner(8237):      kids = main(lock)
Nov 06 11:29:01 2002 qrunner(8237):   File "/home/mailman/cron/qrunner", line 253, in main
Nov 06 11:29:01 2002 qrunner(8237):      keepqueued = dispose_message(mlist, msg, msgdata)
Nov 06 11:29:01 2002 qrunner(8237):   File "/home/mailman/cron/qrunner", line 121, in dispose_message
Nov 06 11:29:01 2002 qrunner(8237):      if BouncerAPI.ScanMessages(mlist, mimemsg):
Nov 06 11:29:01 2002 qrunner(8237):   File "/home/mailman/Mailman/Bouncers/BouncerAPI.py", line 57, in ScanMessages
Nov 06 11:29:01 2002 qrunner(8237):      mod = __import__('Mailman.Bouncers.'+modname)
Nov 06 11:29:01 2002 qrunner(8237):   File "/home/mailman/Mailman/Bouncers/Catchall.py", line 34, in ?
Nov 06 11:29:01 2002 qrunner(8237):      import regsub
Nov 06 11:29:01 2002 qrunner(8237):   File "/usr/lib/python2.1/regsub.py", line 20, in ?
Nov 06 11:29:01 2002 qrunner(8237):      import regex
Nov 06 11:29:01 2002 qrunner(8237): ImportError :  No module named regex 
------------------------------------------------------------------------

Sure enough, there is no regex.py, and nor is the regex module
compiled in:

------------------------------------------------------------------------
Python 2.1.1 (#1, Aug 13 2001, 19:37:40) 
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-96)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.builtin_module_names
('__builtin__', '__main__', '_sre', 'exceptions', 'gc', 'imp', 'marshal', 'posix', 'signal', 'sys', 'thread')
------------------------------------------------------------------------

I did some digging only to find that this error started to happen way
back on Oct 10 (!) and I never noticed.  Now, I've yet to find
anything that changed on that day.  The Python RPMs have not been
upgraded.  There were some RedHat libc upgrades right around that
time, but I can't see any relation.

Does anyone have any clue as to why this stopped working and what I
can do to get this going again?

Thanks,

-Dave



More information about the Mailman-Users mailing list