stack trace AttributeError: 'bytes' object has no attribute 'encode'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keyrings.alt (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Running git-ubuntu on a remote system I hit the traceback below.
Note that this was when ssh'd into a system, and then I copied and
pasted the url into my local browser.
The authorization page:
(https:/
TOP_INTEGRATION)
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 "/home/
main()
File "/home/
sys.
File "/home/
retry_
File "/home/
lp = launchpad_
File "/home/
version=
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'
11/22/2017 12:21:06 - INFO:Leaving /tmp/open-iscsi as directed
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: python3-
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.8-0ubuntu1
Architecture: amd64
Date: Wed Nov 22 12:21:20 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-07-23 (853 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150722.1)
PackageArchitec
ProcEnviron:
TERM=screen.
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: keyrings.alt
UpgradeStatus: No upgrade log present (probably fresh install)
This is a bug in python- launchpadlib, as python-keyring API only supports unicode passwords and not bytestrings.
See https:/ /bugs.launchpad .net/ubuntu/ +source/ python- launchpadlib/ +bug/1685547/ comments/ 2 for details.