FAQ
Hi all,

I'm running the mailman that ships with opensuse 11.2 - running /usr/
lib/mailman/bin/version gives:

Using Mailman version: 2.1.11

I have lots of email to my mailing lists stuck in the shunt queue (and
no, they aren't delivered). According to http://wiki.list.org/pages/viewpage.action?pageId@30704
and searches of the archives, it is to do with mailman not managing
to run one of the processes on the email.

The tracebacks for these emails follows - could someone give me a clue
on why the queue runner and the archiver claim the messages have no
"get_type" ?

Running unshunt doesn't deliver the messages, it just logs more such
tracebacks.

--
patrick

Mar 07 22:52:07 2010 (23634) SHUNTING:
1267989214.492028+f0d7863592a47b2376a3ed8719376f68600b8709
Mar 07 22:52:07 2010 (23634) uncaught archiver exception at filepos: 0
Mar 07 22:52:07 2010 (23634) Uncaught runner exception: Message
instance has no attribute 'get_type'
Mar 07 22:52:07 2010 (23634) Traceback (most recent call last):
File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 120, in
_oneloop
self._onefile(msg, msgdata)
File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 191, in
_onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/lib/mailman/Mailman/Queue/ArchRunner.py", line 73, in
_dispose
mlist.ArchiveMail(msg)
File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 216, in
ArchiveMail
h.processUnixMailbox(f)
File "/usr/lib/mailman/Mailman/Archiver/pipermail.py", line 564, in
processUnixMailbox
m = mbox.next()
File "/usr/lib/python2.6/mailbox.py", line 1955, in next
return self.factory(_PartialFile(self.fp, start, stop))
File "/usr/lib/mailman/Mailman/Mailbox.py", line 89, in scrubber
return mailbox.scrub(msg)
File "/usr/lib/mailman/Mailman/Mailbox.py", line 109, in scrub
return self._scrubber(self._mlist, msg)
File "/usr/lib/mailman/Mailman/Handlers/Scrubber.py", line 192, in
process
ctype = part.get_type(part.get_default_type())
AttributeError: Message instance has no attribute 'get_type'

Mar 07 22:52:07 2010 (23634) SHUNTING:
1267990733.944869+e78b99c1915ce48434e1c8f2de4928bf18000659
Mar 07 22:52:07 2010 (23634) uncaught archiver exception at filepos: 0
Mar 07 22:52:07 2010 (23634) Uncaught runner exception: Message
instance has no attribute 'get_type'
Mar 07 22:52:07 2010 (23634) Traceback (most recent call last):
File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 120, in
_oneloop
self._onefile(msg, msgdata)
File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 191, in
_onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/lib/mailman/Mailman/Queue/ArchRunner.py", line 73, in
_dispose
mlist.ArchiveMail(msg)
File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 216, in
ArchiveMail
h.processUnixMailbox(f)
File "/usr/lib/mailman/Mailman/Archiver/pipermail.py", line 564, in
processUnixMailbox
m = mbox.next()
File "/usr/lib/python2.6/mailbox.py", line 1955, in next
return self.factory(_PartialFile(self.fp, start, stop))
File "/usr/lib/mailman/Mailman/Mailbox.py", line 89, in scrubber
return mailbox.scrub(msg)
File "/usr/lib/mailman/Mailman/Mailbox.py", line 109, in scrub
return self._scrubber(self._mlist, msg)
File "/usr/lib/mailman/Mailman/Handlers/Scrubber.py", line 192, in
process
ctype = part.get_type(part.get_default_type())
AttributeError: Message instance has no attribute 'get_type'

Search Discussions

  • Patrick Okui at Mar 7, 2010 at 8:37 pm

    On 7 Mar, 2010, at 11:01 PM, Patrick Okui wrote:

    AttributeError: Message instance has no attribute 'get_type'
    hmm.. /usr/lib/mailman/pythonlib is empty -- that could do it no?

    pop:/usr/lib/mailman # rpm -ql mailman | grep pythonlib
    /usr/lib/mailman/pythonlib
    pop:/usr/lib/mailman #

    I'm guessing this is an opensuse issue, unless someone here has
    figured out what they did with the pythonlib.

    --
    patrick
  • Mark Sapiro at Mar 8, 2010 at 12:08 am

    Patrick Okui wrote:
    On 7 Mar, 2010, at 11:01 PM, Patrick Okui wrote:

    AttributeError: Message instance has no attribute 'get_type'
    hmm.. /usr/lib/mailman/pythonlib is empty -- that could do it no?

    pop:/usr/lib/mailman # rpm -ql mailman | grep pythonlib
    /usr/lib/mailman/pythonlib
    pop:/usr/lib/mailman #

    I'm guessing this is an opensuse issue, unless someone here has
    figured out what they did with the pythonlib.

    Yes, it does appear to be a packaging issue. As I said in my other
    reply, with Mailman 2.1.11, not only do you need the email package in
    pythonlib, you also can't use Python later than 2.5.x. The first
    Mailman release compatible woth Python 2.6.x is Mailman 2.1.12.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Patrick Okui at Mar 8, 2010 at 8:24 am

    On 8 Mar, 2010, at 3:08 AM, Mark Sapiro wrote:

    Patrick Okui wrote:
    On 7 Mar, 2010, at 11:01 PM, Patrick Okui wrote:

    AttributeError: Message instance has no attribute 'get_type'
    hmm.. /usr/lib/mailman/pythonlib is empty -- that could do it no?

    pop:/usr/lib/mailman # rpm -ql mailman | grep pythonlib
    /usr/lib/mailman/pythonlib
    pop:/usr/lib/mailman #

    I'm guessing this is an opensuse issue, unless someone here has
    figured out what they did with the pythonlib.

    Yes, it does appear to be a packaging issue. As I said in my other
    reply, with Mailman 2.1.11, not only do you need the email package in
    pythonlib, you also can't use Python later than 2.5.x. The first
    Mailman release compatible woth Python 2.6.x is Mailman 2.1.12.

    Thank you for your help, I was able to fix this by downloading a patch
    from SuSE that basically renames the relevant get_type etc functions
    to those that will work with python2.6. Downgrading to 2.4 broke a few
    other things so I'll leave it as is and plan for the upgrade to 2.1.13.

    Thanks again,

    Patrick.
  • Mark Sapiro at Mar 8, 2010 at 12:04 am

    Patrick Okui wrote:
    I'm running the mailman that ships with opensuse 11.2 - running /usr/
    lib/mailman/bin/version gives:

    Using Mailman version: 2.1.11

    I have lots of email to my mailing lists stuck in the shunt queue (and
    no, they aren't delivered). According to http://wiki.list.org/pages/viewpage.action?pageId@30704
    and searches of the archives, it is to do with mailman not managing
    to run one of the processes on the email.

    The tracebacks for these emails follows - could someone give me a clue
    on why the queue runner and the archiver claim the messages have no
    "get_type" ?

    Because Mailman 2.1.11 is incompatible with python 2.6 in the first
    place. See the FAQ at <http://wiki.list.org/x/pYA9>. Also, Mailman
    2.1.11 should be using the email 2.5.8 package from Mailman's
    pythonlib directory and it doesn't appear to be doing that either.

    Running unshunt doesn't deliver the messages, it just logs more such
    tracebacks.

    Because all unshunt does is reque the message in the original queue.
    Until you fix the underlying problem that causes the messages to be
    shunted in the first place, processing will throw the same exception
    and shunt the message again.


    Mar 07 22:52:07 2010 (23634) SHUNTING:
    1267989214.492028+f0d7863592a47b2376a3ed8719376f68600b8709
    Mar 07 22:52:07 2010 (23634) uncaught archiver exception at filepos: 0
    Mar 07 22:52:07 2010 (23634) Uncaught runner exception: Message
    instance has no attribute 'get_type'
    Mar 07 22:52:07 2010 (23634) Traceback (most recent call last):
    File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 120, in
    _oneloop
    self._onefile(msg, msgdata)
    File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 191, in
    _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
    File "/usr/lib/mailman/Mailman/Queue/ArchRunner.py", line 73, in
    _dispose
    mlist.ArchiveMail(msg)
    File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 216, in
    ArchiveMail
    h.processUnixMailbox(f)
    File "/usr/lib/mailman/Mailman/Archiver/pipermail.py", line 564, in
    processUnixMailbox
    m = mbox.next()
    File "/usr/lib/python2.6/mailbox.py", line 1955, in next
    return self.factory(_PartialFile(self.fp, start, stop))
    File "/usr/lib/mailman/Mailman/Mailbox.py", line 89, in scrubber
    return mailbox.scrub(msg)
    File "/usr/lib/mailman/Mailman/Mailbox.py", line 109, in scrub
    return self._scrubber(self._mlist, msg)
    File "/usr/lib/mailman/Mailman/Handlers/Scrubber.py", line 192, in
    process
    ctype = part.get_type(part.get_default_type())
    AttributeError: Message instance has no attribute 'get_type'
    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Barry Finkel at Mar 8, 2010 at 1:52 pm

    Patrick Okui wrote:
    On 7 Mar, 2010, at 11:01 PM, Patrick Okui wrote:

    AttributeError: Message instance has no attribute 'get_type'
    hmm.. /usr/lib/mailman/pythonlib is empty -- that could do it no?

    pop:/usr/lib/mailman # rpm -ql mailman | grep pythonlib
    /usr/lib/mailman/pythonlib
    pop:/usr/lib/mailman #

    I'm guessing this is an opensuse issue, unless someone here has
    figured out what they did with the pythonlib.
    I am not familiar with the opensuse distribution packaging, but, as
    has been discussed here in the past, the Debian/Ubuntu packaging
    removes pythonlib, as there once was a problem where a customer had
    a symbolic link to pythonlib, and the Debian fix (incorrect) was to
    remove pythonlib. That is one reason why I build my own package for
    Mailman on Ubuntu. From a debian/rules file:

    rmdir debian/$(package)/var/lib/mailman/pythonlib

    ----------------------------------------------------------------------
    Barry S. Finkel
    Computing and Information Systems Division
    Argonne National Laboratory Phone: +1 (630) 252-7277
    9700 South Cass Avenue Facsimile:+1 (630) 252-4601
    Building 240, Room 5.B.8 Internet: BSFinkel at anl.gov
    Argonne, IL 60439-4828 IBMMAIL: I1004994

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedMar 7, '10 at 8:01p
activeMar 8, '10 at 1:52p
posts6
users3
websitelist.org

People

Translate

site design / logo © 2022 Grokbase