launchpadlib not compatible with latest version of httplib2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restfulclient |
Fix Released
|
High
|
Colin Watson |
Bug Description
launchpadlib 1.10.6 (latest) is not compatible with the latest version of httplib2 0.12.0.
httplib2 0.12.0 has removed httplib2.re_slash, thus preventing launchpadlib from being imported:
## ERROR #######
Running Python 3.6.6 on Kubuntu 18.04.1
$ pip install launchpadlib
$ python -c "from launchpadlib.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/
from lazr.restfulcli
File "/home/
from lazr.restfulcli
File "/home/
from httplib2 import _md5, re_url_scheme, re_slash
ImportError: cannot import name 're_slash'
# SUCCESS #######
However if an older version of httplib2 is specified first
$ pip install httplib2==0.11.3 launchpadlib
$ python -c "from launchpadlib.
Related branches
- William Grant: Approve
-
Diff: 38 lines (+10/-1)2 files modifiedsrc/lazr/restfulclient/_browser.py (+5/-1)
src/lazr/restfulclient/docs/NEWS.rst (+5/-0)
affects: | launchpadlib → lazr.restfulclient |
Changed in lazr.restfulclient: | |
assignee: | nobody → Colin Watson (cjwatson) |
importance: | Undecided → High |
status: | New → In Progress |
Fixed in lazr.restfulclient 0.14.1.