Hi
    I have been trying to figure this error out now for three days. Could 
somebody please shed some light on it. I have several customers getting the 
following error almost every day. They always seem to be base64 errors.

Centos 3.8
qmail 1.03 + patches
python 2.5
tmda 1.0.3
tmda-cgi 0.13

The error is:

<class 'binascii.Error'> Python 2.5.1: /usr/local/bin/python
Fri Jun 29 09:50:43 2007 

A problem occurred in a Python script. Here is the sequence of function calls 
leading up to the error, in the order they occurred.

 /usr/local/src/tmda-cgi-0.13/tmda-cgi.py in () 
  188   elif Cmd == "pending":
 
  189     import PendList
 
  190     Call(PendList)
 
  191   elif Cmd == "restore":
 
  192     pass
 
Call = <function Call at 0xb710f454>, PendList = <module 'PendList' from 
'/usr/local/src/tmda-cgi-0.13/PendList.py'> 
 /usr/local/src/tmda-cgi-0.13/tmda-cgi.py in Call(Library=<module 'PendList' 
from '/usr/local/src/tmda-cgi-0.13/PendList.py'>, Str=None) 
   86     Library.Show(Str)
 
   87   else:
 
   88     Library.Show()
 
   89 
 
   90 # Capture WebUID
 
Library = <module 'PendList' from '/usr/local/src/tmda-cgi-0.13/PendList.py'>, 
Library.Show = <function Show at 0xb702be2c> 
 /usr/local/src/tmda-cgi-0.13/PendList.py in Show() 
  475               value += Unicode.TranslateToUTF8(CharSet, decoded[0], 
"ignore")
 
  476           else:
 
  477             value += Unicode.TranslateToUTF8(CharSet, decoded[0], 
"ignore")
 
  478         Subject = value
 
  479         if len(Subject) > int(PVars[("PendingList", "CropSubject")]):
 
value = '', global Unicode = <module 'Unicode' from 
'/usr/local/src/tmda-cgi-0.13/Unicode.pyc'>, Unicode.TranslateToUTF8 = 
<function TranslateToUTF8 at 0xb710f41c>, CharSet = 'base64', decoded = ('Irish 
Spring (R) Sample on us', None) 
 /usr/local/src/tmda-cgi-0.13/Unicode.py in TranslateToUTF8(CharSet='base64', 
Str='Irish Spring (R) Sample on us', Errors='ignore') 
  113     Uni = Decoder(Str, errors = Errors)[0]
 
  114   except:
 
  115     Uni = Decoder(Str)[0]
 
  116   # Encode for UTF-8
 
  117   return UTF8(Uni)[0]
 
Uni undefined, Decoder = <function base64_decode at 0xb7066e9c>, Str = 'Irish 
Spring (R) Sample on us' 
 /usr/local/lib/python2.5/encodings/base64_codec.py in 
base64_decode(input='Irish Spring (R) Sample on us', errors='strict') 
   40     """
 
   41     assert errors == 'strict'
 
   42     output = base64.decodestring(input)
 
   43     return (output, len(input))
 
   44 
 
output undefined, global base64 = <module 'base64' from 
'/usr/local/lib/python2.5/base64.pyc'>, base64.decodestring = <function 
decodestring at 0xb7169d84>, input = 'Irish Spring (R) Sample on us' 
 /usr/local/lib/python2.5/base64.py in decodestring(s='Irish Spring (R) Sample 
on us') 
  319 def decodestring(s):
 
  320     """Decode a string."""
 
  321     return binascii.a2b_base64(s)
 
  322 
 
  323 
 
global binascii = <module 'binascii' from 
'/usr/local/lib/python2.5/lib-dynload/binascii.so'>, binascii.a2b_base64 = 
<built-in function a2b_base64>, s = 'Irish Spring (R) Sample on us' 

<class 'binascii.Error'>: Incorrect padding 
 
 
Ant help on this would be greatly appreciated

Kelly
_____________________________________________
tmda-users mailing list (tmda-users@tmda.net)
http://tmda.net/lists/listinfo/tmda-users

Reply via email to