[Pkg-mailman-hackers] Bug#443069: mailman: senddigests cron job: "TypeError: iso-8859-1"
Joost van Baal
j.e.vanbaal+debian-bugs-443069 at uvt.nl
Tue Sep 18 14:27:34 UTC 2007
On Tue, Sep 18, 2007 at 01:47:12PM +0000, Julian Mehnle wrote:
> Package: mailman
> Version: 1:2.1.9-8
> Severity: important
> Followup-For: Bug #384016
>
> It seems that #384016 is not resolved yet. I recently upgraded mailman
> from 1:2.1.8-4 to 1:2.1.9-8, and now I am getting the following error
> message whenever the senddigests cron job runs (i.e. daily):
>
> | Traceback (most recent call last):
> | File "/usr/lib/mailman/cron/senddigests", line 94, in ?
> | main()
> | File "/usr/lib/mailman/cron/senddigests", line 86, in main
> | mlist.send_digest_now()
> | File "/usr/lib/mailman/Mailman/Digester.py", line 60, in send_digest_now
> | ToDigest.send_digests(self, mboxfp)
> | File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py", line 142, in send_digests
> | send_i18n_digests(mlist, mboxfp)
> | File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py", line 324, in send_i18n_digests
> | msg = scrubber(mlist, msg)
> | File "/usr/lib/mailman/Mailman/Handlers/Scrubber.py", line 393, in process
> | replace_payload_by_text(msg, sep.join(text), charset)
> | File "/usr/lib/mailman/Mailman/Handlers/Scrubber.py", line 175, in replace_payload_by_text
> | msg.set_payload(text, charset)
> | File "email/Message.py", line 218, in set_payload
> | File "email/Message.py", line 242, in set_charset
> | TypeError: iso-8859-1
>
> I followed the trail of #384016 and found that its supposed fix (the
> mailman package shipping its own "email" Python package) does not seem
> to be in effect on my system:
>
> | io:/usr/lib/mailman/cron> python
> | Python 2.4.4 (#2, Aug 16 2007, 02:03:40)
> | [GCC 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)] on linux2
> | Type "help", "copyright", "credits" or "license" for more information.
> | >>> import paths
> | >>> import email
> | >>> email.__version__
> | '3.0.2'
> | >>>
>
> Using python2.3 to run senddigests works around the problem as expected:
>
> | io:/usr/lib/mailman/cron> sudo -H -u list python2.3 /usr/lib/mailman/cron/senddigests
> | io:/usr/lib/mailman/cron>
>
> What's going on here? Has the inclusion of mailman's own "email"
> package been reverted?
FWIW, I've recently manually done:
ln -s /usr/lib/mailman/pythonlib /var/lib/mailman/pythonlib
after such a Mailman upgrade. It solved the shown errors from
senddigests.
Apparently, the postinst script fails to execute this under some
circumstances. Since my system is nonstandard (/var/lib/mailman is a
symlink here), I didn't investigate further. Anyway, the workaround
might work for you too.
Bye,
Joost
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-mailman-hackers/attachments/20070918/de98affe/attachment.pgp
More information about the Pkg-mailman-hackers
mailing list