Skip to content

"TypeError: Incorrect padding" #27

Closed
fabsmusicjunkie opened this Issue Sep 13, 2010 · 1 comment

2 participants

@fabsmusicjunkie

the program doesn't start on my amd64 ubuntu lucid. here's the error message:
[code]
Traceback (most recent call last):
File "/usr/bin/pastie", line 53, in
clipboard_protector = protector.ClipboardProtector()
File "/usr/lib/pymodules/python2.6/pastielib/protector.py", line 63, in init
self.history.set_payload(self.recover_history())
File "/usr/lib/pymodules/python2.6/pastielib/protector.py", line 141, in recover_history
data = base64.b64decode(item.text)
File "/usr/lib/python2.6/base64.py", line 76, in b64decode
raise TypeError(msg)
TypeError: Incorrect padding[/code]

@fmoralesc
Owner

The workaround is to delete the .clipoard_history file and try to start pastie again. This seems to be a problem with the images encoding pastie uses.
In the long term, the XML format should de replaced by something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.