2.1.18rc1 error issue w/ DMARC changes

Bug #1310122 reported by Dave Pascoe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Critical
Mark Sapiro

Bug Description

Seeing this in my error log as a result of the new DMARC filtering:

Apr 19 17:37:48 2014 (2527) SHUNTING: 1397943462.7369959+603479c2403e60476d6a84b84387374956d5123e
Apr 19 17:52:19 2014 (2527) Uncaught runner exception: 'module' object has no attribute 'defaultdict'
Apr 19 17:52:19 2014 (2527) Traceback (most recent call last):
  File "/usr/local/mailman/Mailman/Queue/Runner.py", line 119, in _oneloop
    self._onefile(msg, msgdata)
  File "/usr/local/mailman/Mailman/Queue/Runner.py", line 190, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/usr/local/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File "/usr/local/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline
    sys.modules[modname].process(mlist, msg, msgdata)
  File "/usr/local/mailman/Mailman/Handlers/Moderate.py", line 57, in process
    if Utils.IsDMARCProhibited(addr):
  File "/usr/local/mailman/Mailman/Utils.py", line 1099, in IsDMARCProhibited
    results_by_name = collections.defaultdict(list)
AttributeError: 'module' object has no attribute 'defaultdict'

Python is complaining about collections having no defaultdict attribute

This is on CentOS release 5.10 (Final) which has Python 2.4.3

Revision history for this message
Mark Sapiro (msapiro) wrote :

The code as released requires Python 2.5. I'll try to make it work with 2.4 and put out a new rc2.

Changed in mailman:
assignee: nobody → Mark Sapiro (msapiro)
importance: Undecided → Critical
milestone: none → 2.1.18
status: New → Confirmed
Revision history for this message
Dave Pascoe (km3t) wrote : Re: [Bug 1310122] Re: 2.1.18rc1 error issue w/ DMARC changes

As soon as I filed that bug I realized that it required Python 2.5. I
can try a parallel install of Python 2.5+ as well. I know that will fix
it but a version that will work with 2.4 would be welcome if it's an
easy fix.

On 4/19/14, 7:48 PM, Mark Sapiro wrote:
> The code as released requires Python 2.5. I'll try to make it work with
> 2.4 and put out a new rc2.
>
> ** Changed in: mailman
> Importance: Undecided => Critical
>
> ** Changed in: mailman
> Status: New => Confirmed
>
> ** Changed in: mailman
> Milestone: None => 2.1.18
>
> ** Changed in: mailman
> Assignee: (unassigned) => Mark Sapiro (msapiro)
>

Mark Sapiro (msapiro)
Changed in mailman:
status: Confirmed → Fix Committed
Mark Sapiro (msapiro)
Changed in mailman:
milestone: 2.1.18 → 2.1.18rc2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.