[Mailman-Developers] Empty module name

Dan Langille dan at langille.org
Thu Feb 5 21:48:15 EST 2004


On Thu, 5 Feb 2004, Dan Langille wrote:

> On Fri, 6 Feb 2004, Tokio Kikuchi wrote:
>
> > Hi,
> >
> > Try this patch;
> >
> > http://sourceforge.net/tracker/index.php?func=detail&aid=891491&group_id=103&atid=300103
>
> That patch gave this result:
>
> ]# patch < ../../scrubber.patch
> Hmm...  Looks like a unified diff to me...
> The text leading up to this was:
> --------------------------
> |Index: Scrubber.py
> |===================================================================
> |RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/Scrubber.py,v
> |retrieving revision 2.18.2.6
> |diff -u -r2.18.2.6 Scrubber.py
> |--- Scrubber.py        1 Dec 2003 01:43:18 -0000       2.18.2.6
> |+++ Scrubber.py        6 Feb 2004 00:24:20 -0000
> --------------------------
> Patching file Scrubber.py using Plan A...
> Hunk #1 succeeded at 27.
> Hunk #2 succeeded at 172 (offset -8 lines).
> Hunk #3 succeeded at 293 (offset -8 lines).
> Hunk #4 failed at 302.
> Hunk #5 succeeded at 348 with fuzz 1 (offset 2 lines).
> 1 out of 5 hunks failed--saving rejects to Scrubber.py.rej
> done
>
> I'm looking at the failure now.

I applied Hunk #4 by hand, recompiled with 'python -c "import py_compile
as p; p.compile('Scrubber.py')"', and all seems well now.  A few things
left in shunt, but the majority of things have cleared out.

Thank you.

>
> >
> >
> > Dan Langille wrote:
> >
> > > I'm running mailman-2.1.3 with postfix-2.0.16,1 on FreeBSD 4.9.
> > > Mailman was installed a few months ago.  A few days ago, mail stopped
> > > being delivered.  Viewing /var/log/maillog, I can see the mail is
> > > coming in, but never being delivered.
> > >
> > > In mailman/log/errors, I see this.
> > >
> > > Feb 02 16:19:01 2004 (33670) uncaught archiver exception at filepos:
> > > 0
> > > Feb 02 16:19:01 2004 (33670) Uncaught runner exception: Empty module
> > > name
> > > Feb 02 16:19:01 2004 (33670) Traceback (most recent call last):
> > >   File "/usr/local/mailman/Mailman/Queue/Runner.py", line 110, in
> > > _oneloop
> > >     self._onefile(msg, msgdata)
> > >   File "/usr/local/mailman/Mailman/Queue/Runner.py", line 160, in
> > > _onefile
> > >     keepqueued = self._dispose(mlist, msg, msgdata)
> > >   File "/usr/local/mailman/Mailman/Queue/ArchRunner.py", line 73, in
> > > _dispose
> > >     mlist.ArchiveMail(msg)
> > >   File "/usr/local/mailman/Mailman/Archiver/Archiver.py", line 208,
> > > in ArchiveMail
> > >     h.processUnixMailbox(f)
> > >   File "/usr/local/mailman/Mailman/Archiver/pipermail.py", line 544,
> > > in processUnixMailbox
> > >     m = mbox.next()
> > >   File "/usr/local/lib/python2.3/mailbox.py", line 35, in next
> > >     return self.factory(_Subfile(self.fp, start, stop))
> > >   File "/usr/local/mailman/Mailman/Mailbox.py", line 89, in scrubber
> > >     return mailbox.scrub(msg)
> > >   File "/usr/local/mailman/Mailman/Mailbox.py", line 109, in scrub
> > >     return self._scrubber(self._mlist, msg)
> > >   File "/usr/local/mailman/Mailman/Handlers/Scrubber.py", line 311,
> > > in process
> > >     t = t.encode(charset, 'replace')
> > >   File "/usr/local/lib/python2.3/encodings/__init__.py", line 84, in
> > > search_function
> > >     globals(), locals(), _import_tail)
> > > ValueError: Empty module name
> > >
> > >>From the archives, I see this is not a new problem, and found a patch
> > > at http://www.mail-archive.com/mailman-
> > > developers at python.org/msg06317.html.
> > >
> > > I applied the patch and recompiled:
> > >
> > >    cd /usr/local/mailman/Mailman/Handlers
> > >    python -c "import py_compile as p; p.compile('Scrubber.py')"
> > >
> > > I then ran unshunt and saw the errors continue.  FWIW, I also
> > > retstarted the qrunners and tried again.  Same symptoms.
> > >
> > > This problem has been raised before and seem to becoming more common.
> > >  I found these recent references:
> > >
> > > https://sourceforge.net/tracker/?func=detail&atid=100103&aid=871050&gr
> > > oup_id=103
> > > http://www.mail-archive.com/mailman-users@python.org/msg21490.html
> > >
> > > Any suggestions please?
> >
> > --
> > Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
> > http://weather.is.kochi-u.ac.jp/
> >
>
> _______________________________________________
> Mailman-Developers mailing list
> Mailman-Developers at python.org
> http://mail.python.org/mailman/listinfo/mailman-developers
> Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/dan%40langille.org
>



More information about the Mailman-Developers mailing list