[Mailman-Users] getting tons of cron errors (Python munged?)

Kreme kreme at kreme.com
Thu Jan 16 20:16:47 CET 2003

I realized recently that the accoutn I was sending mailman's cron 
output to was not actually checking mail.

So, after I checked I saw tons (like several hundred a day) of this:

Subject: Cron <mailman at syth> /usr/bin/python -S 

Traceback (most recent call last):
   File "/Users/mailman/cron/gate_news", line 270, in ?
   File "/Users/mailman/cron/gate_news", line 250, in main
   File "/Users/mailman/cron/gate_news", line 185, in process_lists
     mlist = MailList.MailList(listname, lock=0)
   File "/Users/mailman/Mailman/MailList.py", line 101, in __init__
   File "/Users/mailman/Mailman/MailList.py", line 555, in Load
     dict, e = self.__load(file)
   File "/Users/mailman/Mailman/MailList.py", line 521, in __load
     fp = open(dbfile)
IOError: [Errno 13] Permission denied: 

OK, no problem I think, I'll just check_perms -f

bin/check_perms -f
Traceback (most recent call last):
   File "bin/check_perms", line 331, in ?
   File "bin/check_perms", line 266, in checkmta
   File "/Users/mailman/Mailman/MTA/Manual.py", line 23, in ?
     from Mailman import Message
   File "/Users/mailman/Mailman/Message.py", line 23, in ?
     import email.Message
   File "/Users/mailman/pythonlib/email/__init__.py", line 32, in ?
     from email.Parser import Parser as _Parser
   File "/Users/mailman/pythonlib/email/Parser.py", line 12, in ?
     from email import Message
   File "/Users/mailman/pythonlib/email/Message.py", line 14, in ?
     from email import Utils
   File "/Users/mailman/pythonlib/email/Utils.py", line 8, in ?
     import socket
   File "/usr/local/lib/python2.2/socket.py", line 41, in ?
     from _socket import *
ImportError: No module named _socket

What's odd is the lists are all working, but somewhere python got 
munged.  Anyone have any idea how to fix this?

# python -v
# /usr/local/lib/python2.2/site.pyc matches 
import site # precompiled from /usr/local/lib/python2.2/site.pyc
# /usr/local/lib/python2.2/os.pyc matches /usr/local/lib/python2.2/os.py
import os # precompiled from /usr/local/lib/python2.2/os.pyc
import posix # builtin
# /usr/local/lib/python2.2/posixpath.pyc matches 
import posixpath # precompiled from 
# /usr/local/lib/python2.2/stat.pyc matches 
import stat # precompiled from /usr/local/lib/python2.2/stat.pyc
# /usr/local/lib/python2.2/UserDict.pyc matches 
import UserDict # precompiled from /usr/local/lib/python2.2/UserDict.pyc
Python 2.2 (#1, 07/14/02, 23:25:09)
[GCC Apple cpp-precomp 6.14] on darwin
Type "help", "copyright", "credits" or "license" for more information.

Don't congratulate yourself too much, or berate yourself either.  Your 
choices are half chance; so are everybody else's.

More information about the Mailman-Users mailing list