[wplug] mailman/python error under redhat 9
Tim Lesher
tim at lesher.ws
Fri May 9 10:07:44 EDT 2003
On Fri, May 09, 2003 at 10:00:48AM -0400, John Harrold wrote:
> i have a friend who was trying to use mailman under redhat 9. he was
> getting the following error:
[...]
> KeyError: getgrnam(): name not found
>
> now if i goto line 274 in mailmanctl, it looks like this:
>
> gid = grp.getgrnam(mm_cfg.MAILMAN_GROUP)[2]
[...]
> it seems like python cannot find the function 'getgrnam'.
No, python is finding getgrnam() just fine. The problem is that
getgrname() is not finding its argument, which is the MAILMAN_GROUP
member of the mm_cfg dictionary (a KeyError means that a dictionary
lookup by key failed).
Sounds like your friend didn't edit the mm_cfg.py file to set the
MAILMAN_GROUP and MAILMAN_USER variables.
--
Tim Lesher <tim at lesher.ws>
http://www.lesher.ws
More information about the wplug
mailing list