[Mailman-Users] Message.OutgoingMessage ???

Wolodja Wentland babilen at gmail.com
Tue Oct 2 22:04:57 CEST 2007


Hi all,

please reply to me directly as well, as i am not subscribed to this 
list.

I am trying to do an upgrade on debian from mailman 2.1.5 to mailman 
2.1.9 and get the following error:

--- snip ---
Updating mailing list: <some_list>
Traceback (most recent call last):
  File "/var/lib/mailman/bin/withlist", line 297, in ?
    main()
  File "/var/lib/mailman/bin/withlist", line 272, in main
    r = [do_list(listname, args, func) for listname in Utils.list_names()]
  File "/var/lib/mailman/bin/withlist", line 194, in do_list
    m = MailList.MailList(listname, lock=LOCK)
  File "/var/lib/mailman/Mailman/MailList.py", line 130, in __init__
    self.Load()
  File "/var/lib/mailman/Mailman/MailList.py", line 665, in Load
    self.CheckVersion(dict)
  File "/var/lib/mailman/Mailman/MailList.py", line 718, in CheckVersion
    Update(self, stored_state)
  File "/var/lib/mailman/Mailman/versions.py", line 53, in Update
    NewRequestsDatabase(l)
  File "/var/lib/mailman/Mailman/versions.py", line 489, in NewRequestsDatabase
    msg = Message.OutgoingMessage(text)
AttributeError: 'module' object has no attribute 'OutgoingMessage'
--- snip ---

I had a look at the source code as distributed by debian and in the 
tarball from sourceforge. It seems like a bug to me that:



--- snip --- from versions.py (line 466 - 492)
NewRequestsDatabase(l):
    """With version 1.2, we use a new pending request database schema."""
    r = getattr(l, 'requests', {})
    if not r:
        # no old-style requests
        return
    for k, v in r.items():

        [ yadda yadda yadda ]

            for p in v:
                author, text = p[2]
                reason = p[3]
                msg = Message.OutgoingMessage(text)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

                l.HoldMessage(msg, reason)
            del r[k]
        elif k == 'add_member':
--- snip ---

This code tries to build an object of type OutgoingMessage which is assumed 
to be declared in Mailman.Message but is not. There is no single class 
OutgoingMessage in the Message module.

What is wrong here? What can i do about it? Why am i the first to 
encounter this problem???

Thanks in advance... 

    Wolodja Wentland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.python.org/pipermail/mailman-users/attachments/20071002/b94bfaf4/attachment.pgp 


More information about the Mailman-Users mailing list