[Mailman-Users] unicode() error causing shunt
I'm running 2.1.6rc2. For the first time yesterday, I started getting
cron errors and messages getting shunted. The cron errors and the
shunting errors appear to be the same. When I run bin/unshunt, the
following shows up in my error log:
Apr 29 17:44:04 2005 (30197) SHUNTING:
1114627404.7106659+9a129579e22b7a7876567eea456d5c78552c286f
Apr 29 17:44:04 2005 (30197) Uncaught runner exception: unicode() argument 2
must be string, not None
Apr 29 17:44:04 2005 (30197) Traceback (most recent call last):
File "/usr/local/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/mailman/Mailman/Queue/Runner.py", line 167, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/mailman/Mailman/Queue/IncomingRunner.py", line 130, in
_dispose
more = self._dopipeline(mlist, msg, msgdata, pipeline)
File "/usr/local/mailman/Mailman/Queue/IncomingRunner.py", line 153, in
_dopipeline
sys.modules[modname].process(mlist, msg, msgdata)
File "/usr/local/mailman/Mailman/Handlers/ToDigest.py", line 92, in process
send_digests(mlist, mboxfp)
File "/usr/local/mailman/Mailman/Handlers/ToDigest.py", line 133, in
send_digests
send_i18n_digests(mlist, mboxfp)
File "/usr/local/mailman/Mailman/Handlers/ToDigest.py", line 315, in
send_i18n_digests
msg = scrubber(mlist, msg)
File "/usr/local/mailman/Mailman/Handlers/Scrubber.py", line 349, in process
partcharset = part.get_content_charset()
File "/usr/local/mailman/Mailman/Message.py", line 204, in get_content_charset
unicode('x', charset)
TypeError: unicode() argument 2 must be string, not None
Apr 29 17:44:04 2005 (30197) SHUNTING: 1114767622.905226+1a0d1f1ee1d75fba10ef000cfb04f6aba24ec9ae
I assume the bottom TypeError is the significant part.
I found about four similar reports when I searched the archives, but
didn't find any solutions. Actually I did find a reply from Barry for
one of them, but it was from 2003 and said to wait for version 2.1.3.
Is this likely a bug in 2.1.6rc2, or is there something I can fix on my end?
--
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
[Mailman-Users] Unicode error
With Maiman-2.1.3 I get this error, when someone sends back the confirmation-mail: Oct 22 10:42:19 2003 (571) Uncaught runner exception: ASCII decoding error: ordinal not in range(128) Oct 22 10:42:19 2003 (571) 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/CommandRunner.py", line 232, in _dispose res.process() File "/usr/local/mailman/Mailman/Queue/CommandRunner.py", line 105, in process stop = self.do_command(cmd, args) File "/usr/local/mailman/Mailman/Queue/CommandRunner.py", line 130, in do_command return self.do_command(cmd, args) File "/usr/local/mailman/Mailman/Queue/CommandRunner.py", line 132, in do_command return handler.process(self, args) File "/usr/local/mailman/Mailman/Commands/cmd_confirm.py", line 83, in process if line.lstrip() == match: UnicodeError: ASCII decoding error: ordinal not in range(128) Oct 22 10:42:19 2003 (571) SHUNTING: 1066812139.248986 +6b3ce17ac5ce8aa52d29ca6eefa928b3ded1cfb9 The language is German (de) Yours -- Bruno Gilligsberger Ploecking 51 A-4114 Neuhaus Tel: +437232/2097 -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] unicode error
Hi, Dan Phillips wrote: MM 2.1.3, Postfix 2.0.9, OS X Password reminders sent out this morning generated the following error for all subscribers who have chosen Japanese as their language of choice: I got this error too. Japanese seems to be the only language where output_codec differs input_codec and needs to convert(). Oct 01 05:04:42 2003 (16972) Uncaught runner exception: decoding Unicode is not supported Oct 01 05:04:42 2003 (16972) Traceback (most recent call last): File "/users/mailman/Mailman/Queue/Runner.py", line 110, in _oneloop self._onefile(msg, msgdata) (snip) s = self.convert(s) File "/users/mailman/pythonlib/email/Charset.py", line 269, in convert return unicode(s, self.input_codec).encode(self.output_codec) TypeError: decoding Unicode is not supported Oct 01 05:04:42 2003 (16972) SHUNTING: 1065002402.120966+15739cc63fad35075a9d11d4cab4c282919d2340 AFAIK, this has not happened before; at least there was no problem on September 1. The only thing changed since then has been updating to 2.1.3. Unicode support is certainly included in OS X. Sometime between 2.1.2 and 2.1.3, they switched the 'msg' charset from 'euc_jp' to unicode. Workaround is to apply this patch to /pythonlib/email http://mm.tkikuchi.net/email.patch.20031001 -- Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp http://weather.is.kochi-u.ac.jp/ -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
[Mailman-Users] unicode error
MM 2.1.3, Postfix 2.0.9, OS X Password reminders sent out this morning generated the following error for all subscribers who have chosen Japanese as their language of choice: Oct 01 05:04:42 2003 (16972) Uncaught runner exception: decoding Unicode is not supported Oct 01 05:04:42 2003 (16972) Traceback (most recent call last): File "/users/mailman/Mailman/Queue/Runner.py", line 110, in _oneloop self._onefile(msg, msgdata) File "/users/mailman/Mailman/Queue/Runner.py", line 160, in _onefile keepqueued = self._dispose(mlist, msg, msgdata) File "/users/mailman/Mailman/Queue/OutgoingRunner.py", line 74, in _dispose self._func(mlist, msg, msgdata) File "/users/mailman/Mailman/Handlers/SMTPDirect.py", line 146, in process deliveryfunc(mlist, msg, msgdata, envsender, refused, conn) File "/users/mailman/Mailman/Handlers/SMTPDirect.py", line 332, in verpdeliver bulkdeliver(mlist, msgcopy, msgdata, envsender, failures, conn) File "/users/mailman/Mailman/Handlers/SMTPDirect.py", line 345, in bulkdeliver msgtext = msg.as_string() File "/users/mailman/pythonlib/email/Message.py", line 113, in as_string g.flatten(self, unixfrom=unixfrom) File "/users/mailman/pythonlib/email/Generator.py", line 103, in flatten self._write(msg) File "/users/mailman/pythonlib/email/Generator.py", line 131, in _write self._dispatch(msg) File "/users/mailman/pythonlib/email/Generator.py", line 157, in _dispatch meth(msg) File "/users/mailman/pythonlib/email/Generator.py", line 198, in _handle_text payload = cset.body_encode(payload) File "/users/mailman/pythonlib/email/Charset.py", line 386, in body_encode s = self.convert(s) File "/users/mailman/pythonlib/email/Charset.py", line 269, in convert return unicode(s, self.input_codec).encode(self.output_codec) TypeError: decoding Unicode is not supported Oct 01 05:04:42 2003 (16972) SHUNTING: 1065002402.120966+15739cc63fad35075a9d11d4cab4c282919d2340 AFAIK, this has not happened before; at least there was no problem on September 1. The only thing changed since then has been updating to 2.1.3. Unicode support is certainly included in OS X. -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
