TypeError crash if credentials are expired and needs to re-login [py3]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-launchpadlib (Ubuntu) |
New
|
Undecided
|
Colin Watson |
Bug Description
If my credentials timed out (quite usual on staging), lplib usually spawns the login procedure in the browser:
$ python -c "from launchpadlib.
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...
[...]
But it crashes with python 3:
$ python3 -c "from launchpadlib.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/
shim_
File "/usr/lib/
representation = self._root.
File "/usr/lib/
response, content = self._request(url, extra_headers=
File "/usr/lib/
str(url), method=method, body=data, headers=headers)
File "/usr/lib/
url, method=method, body=body, headers=headers)
File "/usr/lib/
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/
return self.retry_
File "/usr/lib/
if (self._
File "/usr/lib/
(content.
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: python3-
ProcVersionSign
Uname: Linux 3.18.0-13-generic x86_64
ApportVersion: 2.16.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Feb 16 07:24:01 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-11-20 (87 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20141119)
PackageArchitec
SourcePackage: python-launchpadlib
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in python-launchpadlib (Ubuntu): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
summary: |
- TypeError crash if credentials are expired and needs to re-login + TypeError crash if credentials are expired and needs to re-login [py3] |
Changed in python-launchpadlib (Ubuntu): | |
assignee: | Dimitri John Ledkov (xnox) → Colin Watson (cjwatson) |
This was also bug 1471894, and so is fixed in launchpadlib 1.10.4, which is in >= zesty.