Crash in python3 with the 'file' backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kubuntu Automation |
New
|
Undecided
|
Unassigned | ||
python-launchpadlib (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi,
I have a program written in python 3 which uses launchpadlib, and it's crashing if it tries to use the 'file' backend:
$ kubuntu-
Logs are activated and are going to be stored in:
/home/santa/
If you want to disable this feature, edit your ~/kubuntu-
Date started: Sat, 22 Apr 2017 22:52:10 +0200
The authorization page:
(https:/
should be opening in your browser. Use your browser to authorize
this program to access Launchpad on your behalf.
Waiting to hear from Launchpad about your decision...
Traceback (most recent call last):
File "/usr/bin/
lp = Launchpad.
File "/usr/lib/
credential_
File "/usr/lib/
credentials = authorization_
File "/usr/lib/
credential_
File "/usr/lib/
raise e
File "/usr/lib/
self.
File "/usr/lib/
'launchpadlib', unique_key, serialized)
File "/usr/lib/
_keyring_
File "/usr/lib/
password_
AttributeError: 'bytes' object has no attribute 'encode'
As a workaround I replaced the file.py line in question with:
password_encrypted = self.encrypt(
and now it works.
What is your version of python-keyring (or Ubuntu)?