Switchboard.py", line 159, in dequeue: "qrunner(822): ImportError : No module named header"

Bug #280170 reported by Lars E
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mailman (Ubuntu)
Fix Released
Undecided
Chuck Short

Bug Description

Binary package hint: mailman

Ubuntu 8.04.1, mailman 1:2.1.9-9ubuntu1

When mailman creates "Your new mailing list"-notification message in qfiles/virgin the "bin/qrunner --runner=VirginRunner"-process vanishes and a .bak-file containing the message is left in qfiles/virgin. Removing the offending file and restarting mailman makes everything ok until the next new list is created and a new notification for the new list is created in the virgin queue.

this is logged in mailman/error:
Oct 07 18:35:04 2008 qrunner(823): Traceback (most recent call last):
Oct 07 18:35:04 2008 qrunner(823): File "/var/lib/mailman/bin/qrunner", line 278, in <module>
Oct 07 18:35:04 2008 qrunner(823): main()
Oct 07 18:35:04 2008 qrunner(823): File "/var/lib/mailman/bin/qrunner", line 238, in main
Oct 07 18:35:04 2008 qrunner(823): qrunner.run()
Oct 07 18:35:04 2008 qrunner(823): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 71, in run
Oct 07 18:35:04 2008 qrunner(823): filecnt = self._oneloop()
Oct 07 18:35:04 2008 qrunner(823): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 100, in _oneloop
Oct 07 18:35:04 2008 qrunner(823): msg, msgdata = self._switchboard.dequeue(filebase)
Oct 07 18:35:04 2008 qrunner(823): File "/usr/lib/mailman/Mailman/Queue/Switchboard.py", line 159, in dequeue
Oct 07 18:35:04 2008 qrunner(823): msg = cPickle.load(fp)
Oct 07 18:35:04 2008 qrunner(823): ImportError : No module named header

Running "bin/dumpdb -p" on the offending file returns
[----- start pickle file -----]
Traceback (most recent call last):
  File "./bin/dumpdb", line 159, in <module>
    msg = main()
  File "./bin/dumpdb", line 139, in main
    obj = load(fp)
ImportError: No module named header

Adding
 import email.Header
before
 import paths
in bin/dumpdb fixes this.

My aptitude show mailman
Package: mailman
State: installed
Automatically installed: yes
Version: 1:2.1.9-9ubuntu1
Priority: optional
Section: mail
Maintainer: Ubuntu MOTU Developers <email address hidden>
Uncompressed Size: 40.6M
Depends: adduser, apache2 | httpd, cron, exim4 | mail-transport-agent, libc6 (>= 2.7-1), logrotate, lsb-base (>= 3.0-6), pwgen, python (>= 2.3), python-support (>= 0.7.1), ucf
PreDepends: debconf | debconf-2.0
Suggests: listadmin, lynx, spamassassin
[...]

Revision history for this message
Lars E (lars-einarsen) wrote :

Cancelled...
in-house list generator script is to blame,
let the script use mailmans own email package and the problem i solved.

Revision history for this message
amdijefri (david-mu) wrote :

I get this error on every .pck until qrunner quits. No custom scripts in use. Adding import email.Header does fix dumpdb, but not message processing. Recently upgraded to 8.04 from 6.10. Have no idea how to proceed.

Revision history for this message
Chuck Short (zulcss) wrote :

HI,

I was wondering if this was still a problem for you?

Regards
chuck

Changed in mailman (Ubuntu):
assignee: nobody → Chuck Short (zulcss)
status: New → Incomplete
Revision history for this message
Lars E (lars-einarsen) wrote : Re: [Bug 280170] Re: Switchboard.py", line 159, in dequeue: "qrunner(822): ImportError : No module named header"

Chuck Short wrote:
> HI,
>
> I was wondering if this was still a problem for you?
no,
as stated in my 1st comment, our own scripts are to blame, no mailman bug.

>
> Regards
> chuck
>
> ** Changed in: mailman (Ubuntu)
> Status: New => Incomplete
>
> ** Changed in: mailman (Ubuntu)
> Assignee: (unassigned) => Chuck Short (zulcss)
>

Revision history for this message
amdijefri (david-mu) wrote : Re: [Bug 280170] Re: Switchboard.py", line 159, in dequeue: "qrunner(822): ImportError : No module named header"

Chuck,

> I was wondering if this was still a problem for you?

I am not. It had something to do with an Ubuntu upgrade, but I never
figured out exactly what.

Regards,

David Drum
<email address hidden>
--
"Penultimate." Ooh! Second-best word ever!--Frazz

Revision history for this message
Chuck Short (zulcss) wrote :

Great thanks for the feedback.

Regards
chuck

Changed in mailman (Ubuntu):
status: Incomplete → 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.