[Mailman-Users] Empty module name again

Tokio Kikuchi tkikuchi at is.kochi-u.ac.jp
Sat Jun 5 11:57:47 CEST 2004


Hi

This patch should work.

--- ToDigest.py.orig    Sat Jun  5 18:54:11 2004
+++ ToDigest.py Sat Jun  5 18:55:22 2004
@@ -390,6 +390,6 @@
          ustr = h.__unicode__()
          oneline = UEMPTYSTRING.join(ustr.splitlines())
          return oneline.encode(cset, 'replace')
-    except (LookupError, UnicodeError):
+    except (LookupError, UnicodeError, ValueError):
          # possibly charset problem. return with undecoded string in 
one line.
          return EMPTYSTRING.join(s.splitlines())


Brian Wilson wrote:

> One of my lists just up and quit on me;
> looks like the problem described here
> 
> http://mail.python.org/pipermail/mailman-developers/2004-February/016511.html
> 
> I run about 20 other lists and the only one affected is the one that is
> set to work in French. All the others are just fine. On June 1, mailman
> stopped delivering mail on the French list. Nothing that I know of was
> changed on the system. This one list just stopped delivering mail.  I
> can see the MTA invoke the 'post' script and I can see the message end
> up in the qfiles/shunt directory.
> 
> See trace below,,,
> 
> Currently I have mailman 2.1.5 running under python 2.3.4 and RH9 Linux
> MTA is sendmail 8.12.11, webserver is Apache 2.0.40
> 
> Things I've tried already:
> 0. Ran check_perms.
> 1. Installed scrubber patch 2.1.4 and reinstalled (as per the related
>      URL above)
> 2. Upgraded Python from RH RPM version 2.2.2 to source compiled version 2.3.4
> 3. Upgraded from 2.1.4 to 2.1.5 and reinstalled
> 4. Installed scrubber patch in 2.1.5 again and reinstalled again.
> 
> Through all this the other 20 lists apparently continue to function fine.
> 
> Here is the trace from the logs/errors
> 
> Jun 04 23:44:42 2004 (21659) Uncaught runner exception: Empty module name
> Jun 04 23:44:42 2004 (21659) Traceback (most recent call last):
>   File "/home/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop
>     self._onefile(msg, msgdata)
>   File "/home/mailman/Mailman/Queue/Runner.py", line 167, in _onefile
>     keepqueued = self._dispose(mlist, msg, msgdata)
>   File "/home/mailman/Mailman/Queue/IncomingRunner.py", line 130, in
> _dispose
>     more = self._dopipeline(mlist, msg, msgdata, pipeline)
>   File "/home/mailman/Mailman/Queue/IncomingRunner.py", line 153, in
> _dopipeline
>     sys.modules[modname].process(mlist, msg, msgdata)
>   File "/home/mailman/Mailman/Handlers/ToDigest.py", line 91, in process
>     send_digests(mlist, mboxfp)
>   File "/home/mailman/Mailman/Handlers/ToDigest.py", line 132, in
> send_digests
>     send_i18n_digests(mlist, mboxfp)
>   File "/home/mailman/Mailman/Handlers/ToDigest.py", line 313, in
> send_i18n_digests
>     uh = Utils.wrap('%s: %s' % (h, oneline(msg[h], lcset)))
>   File "/home/mailman/Mailman/Handlers/ToDigest.py", line 390, in oneline
>     ustr = h.__unicode__()
>   File "/home/mailman/pythonlib/email/Header.py", line 225, in __unicode__
>     uchunks.append(unicode(s, str(charset)))
>   File "/usr/local/lib/python2.3/encodings/__init__.py", line 84, in
> search_function
>     globals(), locals(), _import_tail)
> ValueError: Empty module name
> 
> Jun 04 23:44:42 2004 (21659) SHUNTING:
> 1086417881.2896941+d6825c4106baed1e1951a1add26ebf40ab9b0124
> 
> 
> Searching for the listname (vph) in logs/post shows last message was June 1.
> 
> Jun 01 06:40:48 2004 (1842) post to vph from friemel at free.fr, size=2933, message-id=
> <3.0.5.32.20040601151702.00c407f0 at pop3.free.fr>, success
> 
> 
> Thanks for any suggestions for more things I can try.
> 

-- 
Tokio Kikuchi tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/





More information about the Mailman-Users mailing list