[Mailman-Users] Hold.py fails in hold_for_approval
mojo at whiteoaks.com
Thu Sep 30 06:03:29 CEST 2010
I recently discovered that all of my moderated posts have been failing,
most likely because my mailman version was older than my python version.
This is the error:
Sep 29 20:52:12 2010 (5588) Uncaught runner exception: unbound method
reason_notice() must be called with ModeratedMemberPost instance as
first argument (got nothing instead)
Sep 29 20:52:12 2010 (5588) Traceback (most recent call last):
File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop
File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 169, in _onefile
'Dequeuing message destined for missing list: %s',
File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 130, in
more = self._dopipeline(mlist, msg, msgdata, pipeline)
File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 153, in
sys.modules[modname].process(mlist, msg, msgdata)
File "/usr/lib/mailman/Mailman/Handlers/Moderate.py", line 67, in process
msgdata['sender'] = sender
File "/usr/lib/mailman/Mailman/Handlers/Hold.py", line 212, in
TypeError: unbound method reason_notice() must be called with
ModeratedMemberPost instance as first argument (got nothing instead)
Sep 29 20:52:12 2010 (5588) SHUNTING:
My python version is 2.6.2, and I've been very careful to be sure that
older pythons are not in the PATH.
The first thing I did was update mailman to 2.1.14, which seemed to go
just fine, but I still see this error. The timestamps of all the
executables are current, and were overwritten by the new versions. The
"version' command reports 2.1.14.
I see now that the actual line of code changed after installing the new
version of mailman. Where it used to be:
reason = Utils.wrap(exc.reason_notice())
it's now ...
So it would appear that I need to get python to recompile all the pyc
files, is that correct? How do I do that? I tried touching the .py
files to make them newer ...
Sorry, not a python guru ...
Morris Jones, Monrovia, CA
More information about the Mailman-Users