[Mailman-Users] Stack dump trying to "Approve" postings
Mark Sapiro
mark at msapiro.net
Wed Dec 4 02:18:32 CET 2013
On 12/03/2013 10:23 AM, Rosenbaum, Larry M. wrote:
>
> I have checked the traceback and found the following. What does it mean, and how do we fix it?
>
> Dec 03 09:48:57 2013 admin(20706): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> admin(20706): [----- Mailman Version: 2.1.12 -----]
> admin(20706): [----- Traceback ------]
...
> admin(20706): File "/usr/lib/mailman/Mailman/ListAdmin.py", line 254, in __handlepost
> admin(20706): g(msg, 1)
> admin(20706): AttributeError: Generator instance has no __call__ method
> admin(20706): [----- Python Information -----]
> admin(20706): sys.version = 2.6.6 (r266:84292, May 27 2013, 05:35:12)
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
Mailman 2.1.12 is not compatible with Python 2.6+. This was fixed in 2.1.13.
This particular issue was fixed by this patch:
=== modified file 'Mailman/ListAdmin.py'
--- Mailman/ListAdmin.py 2008-09-21 18:59:44 +0000
+++ Mailman/ListAdmin.py 2009-08-01 00:40:36 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2008 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2009 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -202,7 +202,7 @@
cPickle.dump(msg, fp, 1)
else:
g = Generator(fp)
- g(msg, 1)
+ g.flatten(msg, 1)
fp.flush()
os.fsync(fp.fileno())
finally:
@@ -251,7 +251,7 @@
outfp = open(outpath, 'w')
try:
g = Generator(outfp)
- g(msg, 1)
+ g.flatten(msg, 1)
finally:
outfp.close()
# Now handle updates to the database
If RedHat EL6 is packaging Mailman 2.1.12 with Python 2.6.6, this is a
RedHat issue. See the FAQ at <http://wiki.list.org/x/OIDD>.
--
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