[Mailman-Users] getting python errorss with check_perms

2008-02-05 Thread Rob Tanner
Hi,

Running this as root so that it can fix any perm problems, but I'm 
getting what I assume to be python errors:

[EMAIL PROTECTED] mailman]# bin/check_perms -f
Traceback (most recent call last):
  File bin/check_perms, line 382, in module
checkarchives()
  File bin/check_perms, line 216, in checkarchives
print _(\
NameError: global name '_' is not defined


I get the same errors without the '-f' argument.  Any ideas?

Thanks,
Rob




-- 
Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] getting python errorss with check_perms

2008-02-05 Thread Todd Zullinger
Rob Tanner wrote:
 Running this as root so that it can fix any perm problems, but I'm 
 getting what I assume to be python errors:
 
 [EMAIL PROTECTED] mailman]# bin/check_perms -f
 Traceback (most recent call last):
 File bin/check_perms, line 382, in module
   checkarchives()
 File bin/check_perms, line 216, in checkarchives
   print _(\
 NameError: global name '_' is not defined
 
 
 I get the same errors without the '-f' argument.  Any ideas?

You said in another thread that you're migrating to a Fedora Core
system.  Are you using the Fedora rpm packages of Mailman?  This looks
like a bug in one of the patches that is applied in the Fedora/Red Hat
rpms.

If you're using the rpms, what version of Fedora are you running, and
what is the version and release of the mailman package?  The changes
I'm thinking of were discussed at https://bugzilla.redhat.com/132495

-- 
ToddOpenPGP - KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~
There will always be death and taxes, but death doesn't get worse
every year.



pgpW1OywAjmpd.pgp
Description: PGP signature
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp

Re: [Mailman-Users] getting python errorss with check_perms

2008-02-05 Thread Rob Tanner
Todd,

I think the bug URL you gave me is a wrong URL.  Bug 132495 is a 
Japanese encoding bug and its status is closed (which I presume means 
fixed).  That doesn't sound like the problem I'm seeing.

In answer to your questions, the Fedora release is Fedora release 7 
(Moonshine) and the mailman package installed  is mailman-2.1.9-5.1 
(output of rpm -qa).   I just no checked, and there is not a more 
current package to download via yum.

-- Rob


Todd Zullinger said the following on 02/05/2008 04:34 PM:
 Rob Tanner wrote:
   
 Running this as root so that it can fix any perm problems, but I'm 
 getting what I assume to be python errors:

 [EMAIL PROTECTED] mailman]# bin/check_perms -f
 Traceback (most recent call last):
 File bin/check_perms, line 382, in module
   checkarchives()
 File bin/check_perms, line 216, in checkarchives
   print _(\
 NameError: global name '_' is not defined


 I get the same errors without the '-f' argument.  Any ideas?
 

 You said in another thread that you're migrating to a Fedora Core
 system.  Are you using the Fedora rpm packages of Mailman?  This looks
 like a bug in one of the patches that is applied in the Fedora/Red Hat
 rpms.

 If you're using the rpms, what version of Fedora are you running, and
 what is the version and release of the mailman package?  The changes
 I'm thinking of were discussed at https://bugzilla.redhat.com/132495

   
 

 --
 Mailman-Users mailing list
 Mailman-Users@python.org
 http://mail.python.org/mailman/listinfo/mailman-users
 Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
 Unsubscribe: 
 http://mail.python.org/mailman/options/mailman-users/rtanner%40linfield.edu

 Security Policy: 
 http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] getting python errorss with check_perms

2008-02-05 Thread Mark Sapiro
Rob Tanner wrote:

I think the bug URL you gave me is a wrong URL.  Bug 132495 is a 
Japanese encoding bug and its status is closed (which I presume means 
fixed).  That doesn't sound like the problem I'm seeing.


Read further down in the comment thread. It talks about the _() i18n
function being changed to C_().

However, lines 37 to 48 of our check_perms are


try:
import paths
except ImportError:
print '''Could not import paths!

This probably means that you are trying to run check_perms from the
source
directory.  You must run this from the installation directory instead.
'''
raise
from Mailman import mm_cfg
from Mailman.mm_cfg import MAILMAN_USER, MAILMAN_GROUP
from Mailman.i18n import _


Is this what your's looks like?


-- 
Mark Sapiro [EMAIL PROTECTED]The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] getting python errorss with check_perms

2008-02-05 Thread Todd Zullinger
Rob Tanner wrote:
 I think the bug URL you gave me is a wrong URL.  Bug 132495 is a
 Japanese encoding bug and its status is closed (which I presume
 means fixed).  That doesn't sound like the problem I'm seeing.

The bug summary may not sound like what you're seeing, but the patch
that was applied to correct the initial problem does redefine _() and
can cause the sort of errors you're seeing.  I know this because I ran
into some places where the patch was incomplete and caused just such a
problem for me. :)

 In answer to your questions, the Fedora release is Fedora release 7
 (Moonshine) and the mailman package installed  is mailman-2.1.9-5.1
 (output of rpm -qa).   I just no checked, and there is not a more
 current package to download via yum.

There may still be problems with the patch, as the maintainer noted in
the last comment.  The bug is closed with the resolution rawhide,
which means that the latest updated patch may not have been pushed to
F7 (I haven't looked closely, though you can by looking at the Fedora
CVS: http://cvs.fedoraproject.org/viewcvs/rpms/mailman/)

There does happen to be an update that is in the updates-testing
repository, and the patch in question has been updated in that version
(mailman-2.1.9-5.3.i386.rpm).  You can download that directly or
enable the updates-testing repo to install it with yum like so:

yum --enablerepo=updates-testing update mailman

This package should hit the standard updates repo very soon as it
fixes CVE-2006-3636 (multiple cross-site scripting vulnerabilities).

-- 
ToddOpenPGP - KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~
Artificial Intelligence is no match for Natural Stupidity



pgp7zwrZ5Z3dH.pgp
Description: PGP signature
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp

[Mailman-Users] getting python errorss with check_perms

2008-02-05 Thread Stephen J. Turnbull
Rob Tanner writes:

File bin/check_perms, line 216, in checkarchives
  print _(\
  NameError: global name '_' is not defined

This is the conventional equivalent to GNU gettext used by most Python
programs.  Find the definition of '_' which will either look like

def _(x):
# code here

or like

_ = gettext

(or some other name that looks like it might be a function that
translates an English string into some other language).  Then replace
it with

def _(x):
return x

and win (unless you really want to see the messages in a language
other than the original, which is almost certainly Englishwink).

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] getting python errorss with check_perms

2008-02-05 Thread Rob Tanner
Todd,

That update took case of it.  Thanks.

-- Rob

On 02/05/2008 05:56 PM, Todd Zullinger wrote:
 Rob Tanner wrote:
   
 I think the bug URL you gave me is a wrong URL.  Bug 132495 is a
 Japanese encoding bug and its status is closed (which I presume
 means fixed).  That doesn't sound like the problem I'm seeing.
 

 The bug summary may not sound like what you're seeing, but the patch
 that was applied to correct the initial problem does redefine _() and
 can cause the sort of errors you're seeing.  I know this because I ran
 into some places where the patch was incomplete and caused just such a
 problem for me. :)

   
 In answer to your questions, the Fedora release is Fedora release 7
 (Moonshine) and the mailman package installed  is mailman-2.1.9-5.1
 (output of rpm -qa).   I just no checked, and there is not a more
 current package to download via yum.
 

 There may still be problems with the patch, as the maintainer noted in
 the last comment.  The bug is closed with the resolution rawhide,
 which means that the latest updated patch may not have been pushed to
 F7 (I haven't looked closely, though you can by looking at the Fedora
 CVS: http://cvs.fedoraproject.org/viewcvs/rpms/mailman/)

 There does happen to be an update that is in the updates-testing
 repository, and the patch in question has been updated in that version
 (mailman-2.1.9-5.3.i386.rpm).  You can download that directly or
 enable the updates-testing repo to install it with yum like so:

 yum --enablerepo=updates-testing update mailman

 This package should hit the standard updates repo very soon as it
 fixes CVE-2006-3636 (multiple cross-site scripting vulnerabilities).

   
 

 --
 Mailman-Users mailing list
 Mailman-Users@python.org
 http://mail.python.org/mailman/listinfo/mailman-users
 Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
 Unsubscribe: 
 http://mail.python.org/mailman/options/mailman-users/rtanner%40linfield.edu

 Security Policy: 
 http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp