[Mailman-Users] Upgrade from 2.0.x to 2.1.1-- incorrect paddingerror.

sumeet sumeet at vmware.com
Mon Feb 24 02:10:13 CET 2003


i clearly don't know what i'm doing. I did a patch -p1 < yourfile on
/tmp/mailman.2.1.1/Mailman/Handlers/Scrubber.py when it asked me for which
file and then recompiled. Can you tell me exactly how to apply this patch?
Thanks alot. I then got:
[root at mailman mailman-2.1.1]# python -S /list/cron/senddigests
Traceback (most recent call last):
  File "/list/cron/senddigests", line 94, in ?
    main()
  File "/list/cron/senddigests", line 86, in main
    mlist.send_digest_now()
  File "/list/Mailman/Digester.py", line 60, in send_digest_now
    ToDigest.send_digests(self, mboxfp)
  File "/list/Mailman/Handlers/ToDigest.py", line 123, in send_digests
    send_i18n_digests(mlist, mboxfp)
  File "/list/Mailman/Handlers/ToDigest.py", line 295, in send_i18n_digests
    msg = scrubber(mlist, msg)
  File "/list/Mailman/Handlers/Scrubber.py", line 320, in process
    if not t.endswith('\n'):
AttributeError: 'NoneType' object has no attribute 'endswith'
----- Original Message -----
From: "Tokio Kikuchi" <tkikuchi at is.kochi-u.ac.jp>
To: "Sumeet" <sumeetp at hotmail.com>
Cc: <mailman-users at python.org>
Sent: Sunday, February 23, 2003 4:07 PM
Subject: Re: [Mailman-Users] Upgrade from 2.0.x to 2.1.1-- incorrect
paddingerror.


> Try this patch.
>
http://sourceforge.net/tracker/download.php?group_id=103&atid=300103&file_id
=43139&aid=670167
>
> Tokio
>
> Sumeet wrote:
> > Upgrade from 2.0.x to 2.1.1 has caused the following error during
sending
> > digests i suppose. There is a bug about base64 already open. Am I
running
> > into the same thing here?
> > As a side note does anyone else think that Mailman has reached a state
of
> > perfection in terms of usability/features? I can't imagine it being too
much
> > better.
> >  Thanks, sumeet.:
> > [root at mailman root]# /usr/bin/python -S /var/mailman/cron/senddigests
> > Traceback (most recent call last):
> >   File "/var/mailman/cron/senddigests", line 94, in ?
> >     main()
> >   File "/var/mailman/cron/senddigests", line 86, in main
> >     mlist.send_digest_now()
> >   File "/list/Mailman/Digester.py", line 60, in send_digest_now
> >     ToDigest.send_digests(self, mboxfp)
> >   File "/list/Mailman/Handlers/ToDigest.py", line 123, in send_digests
> >     send_i18n_digests(mlist, mboxfp)
> >   File "/list/Mailman/Handlers/ToDigest.py", line 295, in
send_i18n_digests
> >     msg = scrubber(mlist, msg)
> >   File "/list/Mailman/Handlers/Scrubber.py", line 252, in process
> >     payload = part.get_payload(decode=1)
> >   File "/list//pythonlib/email/Message.py", line 189, in get_payload
> >     return Utils._bdecode(payload)
> >   File "/list//pythonlib/email/Utils.py", line 75, in _bdecode
> >     value = base64.decodestring(s)
> >   File "/usr/lib/python2.2/base64.py", line 44, in decodestring
> >     return binascii.a2b_base64(s)
> > binascii.Error: Incorrect padding
> >
> > Sending relevent logs:
> > Feb 23 11:27:47 2003 (24968) SHUNTING:
> > 1046028467.287553+80336bf6d6db1c808bd7e3bceaa7256b5c4ff
> > 419
> > Feb 23 11:36:38 2003 (24968) Uncaught runner exception: Incorrect
padding
> > Feb 23 11:36:38 2003 (24968) Traceback (most recent call last):
> >   File "/list//Mailman/Queue/Runner.py", line 105, in _oneloop
> >     self._onefile(msg, msgdata)
> >   File "/list//Mailman/Queue/Runner.py", line 155, in _onefile
> >     keepqueued = self._dispose(mlist, msg, msgdata)
> >   File "/list//Mailman/Queue/IncomingRunner.py", line 130, in _dispose
> >     more = self._dopipeline(mlist, msg, msgdata, pipeline)
> >   File "/list//Mailman/Queue/IncomingRunner.py", line 153, in
_dopipeline
> >     sys.modules[modname].process(mlist, msg, msgdata)
> >   File "/list//Mailman/Handlers/ToDigest.py", line 82, in process
> >     send_digests(mlist, mboxfp)
> >   File "/list//Mailman/Handlers/ToDigest.py", line 123, in send_digests
> >     send_i18n_digests(mlist, mboxfp)
> >   File "/list//Mailman/Handlers/ToDigest.py", line 295, in
send_i18n_digests
> >     msg = scrubber(mlist, msg)
> >   File "/list//Mailman/Handlers/Scrubber.py", line 252, in process
> >     payload = part.get_payload(decode=1)
> >   File "/list//pythonlib/email/Message.py", line 189, in get_payload
> >     return Utils._bdecode(payload)
> >   File "/list//pythonlib/email/Utils.py", line 75, in _bdecode
> >     value = base64.decodestring(s)
> >   File "/usr/src/build/143041-i386/install/usr/lib/python2.2/base64.py",
> > line 44, in decodestr
> > ing
> >     return binascii.a2b_base64(s)
> > Error: Incorrect padding
> >
>



More information about the Mailman-Users mailing list