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

Mark Sapiro mark at msapiro.net
Tue Jun 7 23:50:07 CEST 2011


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