[Mailman-Users] Uncaught runner exception: unknown encoding:us-ascii

rpyne at kinfolk.org rpyne at kinfolk.org
Mon Mar 2 18:52:53 CET 2009



On 2 Mar 2009 at 9:10, Mark Sapiro wrote:

> rpyne at kinfolk.org wrote:
> 
> >Please help! Since upgrading to Mailman 2.1.12 and Python 2.6.1, my
> >error log is filling up with messages like this and virtually no
> >messages are moving through my mailing lists. Based on a search of
> >the archives, I removed ALL digest.mbox files and ran unshunt. No
> >messages moved and the errors continue.
> >
> >Mar 02 09:51:11 2009 (30278) SHUNTING: 
> >1236010837.317246+dbe24d8d98f7ad6b16fdd98b1f18ae69b6a225e7
> >Mar 02 09:51:11 2009 (30278) Uncaught runner exception: unknown
> >encoding: us-ascii Mar 02 09:51:11 2009 (30278) Traceback (most
> >recent call last):
> >  File "/var/mailman/Mailman/Queue/Runner.py", line 120, in _oneloop
> >    self._onefile(msg, msgdata)
> >  File "/var/mailman/Mailman/Queue/Runner.py", line 191, in _onefile
> >    keepqueued = self._dispose(mlist, msg, msgdata)
> >  File "/var/mailman/Mailman/Queue/IncomingRunner.py", line 130, in 
> >_dispose
> >    more = self._dopipeline(mlist, msg, msgdata, pipeline)
> >  File "/var/mailman/Mailman/Queue/IncomingRunner.py", line 153, in 
> >_dopipeline
> >    sys.modules[modname].process(mlist, msg, msgdata)
> >  File "/var/mailman/Mailman/Handlers/SpamDetect.py", line 111, in 
> >process
> >    g.flatten(p)
> >  File "/usr/lib/python2.5/email/generator.py", line 84, in flatten
> >  File "/usr/lib/python2.5/email/generator.py", line 116, in _write
> >  File "/var/mailman/Mailman/Handlers/SpamDetect.py", line 84, in 
> >_write_headers
> >    Generator._write_headers(self, msg)
> >  File "/usr/lib/python2.5/email/generator.py", line 150, in 
> >_write_headers
> >  File "/usr/lib/python2.5/email/generator.py", line 26, in 
> >_is8bitstring
> >LookupError: unknown encoding: us-ascii
> 
> 
> You say you have Python 2.6.1, but your Python email library seems to
> be python2.5.
> 
> Did you upgrade Python after installing Mailman?
> 
> It appears your installation may not be completely consistent. What
> Python version is invoked by a "python" command.
> 
> You may need to rerun Mailman's configure and make install.

 # python
Python 2.6.1 (r261:67515, Feb 28 2009, 15:18:21)
[GCC 4.2.4] on linux2
Type "help", "copyright", "credits" or "license" for more 
information.


I re-ran the configure and install of mailman, ran unshunt and the 
errors still show using python 2.5:

Mar 02 10:39:45 2009 (30280) SHUNTING: 
1236015583.0520451+8058beae403d3fbac5f2571929549c19e2125acd
Mar 02 10:39:53 2009 (30278) Uncaught runner exception: unknown 
encoding: us-ascii
Mar 02 10:39:53 2009 (30278) Traceback (most recent call last):
  File "/var/mailman/Mailman/Queue/Runner.py", line 120, in _oneloop
    self._onefile(msg, msgdata)
  File "/var/mailman/Mailman/Queue/Runner.py", line 191, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/var/mailman/Mailman/Queue/IncomingRunner.py", line 130, in 
_dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File "/var/mailman/Mailman/Queue/IncomingRunner.py", line 153, in 
_dopipeline
    sys.modules[modname].process(mlist, msg, msgdata)
  File "/var/mailman/Mailman/Handlers/SpamDetect.py", line 111, in 
process
    g.flatten(p)
  File "/usr/lib/python2.5/email/generator.py", line 84, in flatten
  File "/usr/lib/python2.5/email/generator.py", line 109, in _write
  File "/usr/lib/python2.5/email/generator.py", line 135, in 
_dispatch
  File "/usr/lib/python2.5/email/generator.py", line 201, in 
_handle_multipart
  File "/usr/lib/python2.5/email/generator.py", line 84, in flatten
  File "/usr/lib/python2.5/email/generator.py", line 116, in _write
  File "/var/mailman/Mailman/Handlers/SpamDetect.py", line 84, in 
_write_headers
    Generator._write_headers(self, msg)
  File "/usr/lib/python2.5/email/generator.py", line 150, in 
_write_headers
  File "/usr/lib/python2.5/email/generator.py", line 26, in 
_is8bitstring
LookupError: unknown encoding: us-ascii

Mar 02 10:39:54 2009 (30278) SHUNTING: 
1236014500.0552149+8a7b01ddc869ad3d723ffcadca4644d72858e68b
Mar 02 10:39:54 2009 (30278) Failed to unlink/preserve backup file: 
/var/mailman/qfiles/in/1236014500.0552149+5aed32c1bfbe6e4ac85c02c35185
46e179e37b02.bak




More information about the Mailman-Users mailing list