Bug 462370

Summary: mailman senddigests throws error
Product: [openSUSE] openSUSE 11.1 Reporter: Lars Müller <lmuelle>
Component: NetworkAssignee: Heiko Rommel <heiko.rommel>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: ag, forgotten_abccHJSkz0, forgotten_AYtk8U4hnh, ge, gernot, lauffer
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 11.1   
Whiteboard: .
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lars Müller 2008-12-24 12:05:15 UTC
After an update from openSUSE 10.3 to 11.1 mailman's daily cron job throws an error:

List: openslx-devel: problem processing /var/lib/mailman/lists/openslx-devel/digest.mbox:
Message instance has no attribute 'get_type'
List: openslx-commit: problem processing /var/lib/mailman/lists/openslx-commit/digest.mbox:
Message instance has no attribute 'get_type'
List: openslx-users-de: problem processing /var/lib/mailman/lists/openslx-users-de/digest.mbox:
Message instance has no attribute 'get_type'
Comment 1 Forgotten User AYtk8U4hnh 2008-12-27 03:01:11 UTC
Maybe this is related to the absence of the directory pythonlib/email in the current version of the mailman package - the previous version of mailman at openSuSE-11.0 (mailman-2.1.9-159.2) included this directory and worked fine.
Unfortunately simply copying this directory does not solve the problem, nor does installation of the previous version of mailman.

See http://mail.python.org/pipermail/mailman-users/2008-March/060822.html for comments on this error message ("Message instance has no attribute 'get_type'").
Comment 2 Ge van Geldorp 2008-12-27 14:42:56 UTC
I ran into problems with mailman on 11.1 too. I believe the root cause of the problem is that mailman 2.1.11 is not compatible with Python 2.6, see http://www.mail-archive.com/mailman-users@python.org/msg51844.html It appears this was "solved" in 11.1 by removing the pythonlib/email stuff. This in turn leads to the "no attribute 'get_type'" error.
I've tried using a pythonlib/email directory from an older version, this will cause "ImportError: No module named message" errors. So it seems we have two choices at the moment:

1) No pythonlib/email directory: receive "get_type" errors
2) With pythonlib/email directory: receive "ImportError" errors

Since there doesn't seem to be a good solution using the 11.1 rpm, I gave up on that and compiled/installed mailman myself.
Comment 3 Forgotten User AYtk8U4hnh 2008-12-28 20:37:18 UTC
I fixed the problem for the moment by installing Python 2.5.4 and grabbing the pythonlib/email stuff from mailman-2.1.9-159.2 (openSUSE-11.0).

BTW: I raised the severity to "Major" because the problem keeps Mailman from distributing mails (not only generating archives).
Comment 4 Lars Müller 2009-01-03 22:51:18 UTC

*** This bug has been marked as a duplicate of bug 448530 ***
Comment 5 Dirk Mueller 2009-01-05 14:52:05 UTC
not a duplicate, but a regression from fixing bug 448530
Comment 6 Gernot Hillier 2009-01-08 16:19:12 UTC
For those of you running SUSE 11.1 which are in desperate need of mailman (as I am), you can find an updated RPM in my build project: https://build.opensuse.org/package/show?package=mailman&project=home%3Ayoda_gh%3Amailman

This is a mailman pre-release which for sure comes with ABSOLUTELY NO WARRANTY. :-)

It's today's snapshot of branch "lp:mailman/stable" from https://code.launchpad.net/mailman. This will end up in 2.1.12rc1 in a few days according to http://mail.python.org/pipermail/mailman-announce/2009-January/000127.html

I think the only clean way to fix these issues will be to update mailman to 2.1.12 as soon as it's available...
Comment 7 Heiko Rommel 2009-01-08 16:43:25 UTC
Confirmative, our plan is to wait for 2.1.12 rc1. 

According to the comments of the main developers the only changes between 2.1.12 rc1 and later rcs will be translation issues. 2.1.12 will be a bug fix release to 2.1.11.
Comment 8 Axel Theilmann 2009-01-08 16:49:13 UTC
applying just this one diff worked for me:

http://bazaar.launchpad.net/~mailman-coders/mailman/2.1/revision/1140

maybe its a bit less drastic than updatig to a snapshot...
Comment 10 Swamp Workflow Management 2009-01-09 20:49:53 UTC
The SWAMPID for this issue is 21488.
Please submit the patch and patchinfo file using this ID.
(https://swamp.suse.de/webswamp/wf/21488)
Comment 11 Heiko Rommel 2009-01-12 10:35:59 UTC
Submitted.
Comment 12 Heiko Rommel 2009-01-13 11:29:51 UTC
Submission was accepted.
Comment 13 Swamp Workflow Management 2009-01-21 01:27:49 UTC
Update released for: mailman
Products:
openSUSE 11.1 (debug, i586, ppc, x86_64)
Comment 14 Stephan Lauffer 2009-10-27 08:02:06 UTC
I run in trouble with mailman-2.1.11-9.15 from sless11 while using the webinterface to subscribe to a list. Is it possible, that there are still problems with this 2.1.11 build on sles11 in conjunction with python-2.6?

Best regards,
Stephan

admin(15203): [----- Mailman Version: 2.1.11 -----] 
admin(15203): [----- Traceback ------] 
admin(15203): Traceback (most recent call last):
admin(15203):   File "/usr/lib/mailman/scripts/driver", line 101, in run_main
admin(15203):     main()
admin(15203):   File "/usr/lib/mailman/Mailman/Cgi/subscribe.py", line 96, in main
admin(15203):     process_form(mlist, doc, cgidata, language)
admin(15203):   File "/usr/lib/mailman/Mailman/Cgi/subscribe.py", line 176, in process_form
admin(15203):     mlist.AddMember(userdesc, remote)
admin(15203):   File "/usr/lib/mailman/Mailman/MailList.py", line 916, in AddMember
admin(15203):     raise Errors.MMSubscribeNeedsConfirmation
admin(15203): TypeError: exceptions must be classes or instances, not str
admin(15203): [----- Python Information -----] 
admin(15203): sys.version     =   2.6 (r26:66714, Feb 21 2009, 02:16:04) 
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] 
admin(15203): sys.executable  =   /usr/bin/python 
admin(15203): sys.prefix      =   /usr 
admin(15203): sys.exec_prefix =   /usr 
admin(15203): sys.path        =   /usr 
admin(15203): sys.platform    =   linux2