[Mailman-Users] mailman NameError: global name '_' is not defined

Steven Jones Steven.Jones at vuw.ac.nz
Tue Jun 7 23:57:28 CEST 2011


Hi

Why would it be missing stuff?

How do I determine this and then go kick redhat?

regards


________________________________________
From: Mark Sapiro [mark at msapiro.net]
Sent: Wednesday, 8 June 2011 9:50 a.m.
To: Steven Jones; mailman-users at python.org
Subject: Re: [Mailman-Users] mailman NameError: global name '_' is not defined

Steven Jones wrote:
>
>[root at vuwunicmailmnt1 conf.d]# /usr/lib/mailman/bin/mmsitepass --help
>Traceback (most recent call last):
>  File "/usr/lib/mailman/bin/mmsitepass", line 105, in <module>
>    main()
>  File "/usr/lib/mailman/bin/mmsitepass", line 77, in main
>    usage(0)
>  File "/usr/lib/mailman/bin/mmsitepass", line 57, in usage
>    print >> fd, _(__doc__)
>NameError: global name '_' is not defined


The standard distributed GNU Mailman mmsitepass contains the following
lines immediately after the copyright notice and the documentation:

import sys
import getpass
import getopt

import paths
from Mailman import Utils
from Mailman.i18n import _

Yours is apparently missing the last of these and who knows what else.

--
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list