oauth import doesn't work on python3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restfulclient |
Fix Released
|
High
|
Colin Watson |
Bug Description
launchpadlib doesn't work on python3 because oauth import breaks:
$ virtualenv -p python3.5 ve
$ ve/bin/pip install -e bzr+ssh:
$ ve/bin/pip install -e bzr+ssh:
$ ve/bin/python3.5 -c 'from launchpadlib.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/
from lazr.restfulcli
File "/home/
oauth = __import_
File "/home/
import urlparse
ImportError: No module named 'urlparse'
note that I used lazr.restfulclient from trunk since the version on pypi fail to install on python3
Related branches
- William Grant: Approve (code)
-
Diff: 144 lines (+43/-23)4 files modifiedsetup.py (+3/-1)
src/lazr/restfulclient/__init__.py (+2/-0)
src/lazr/restfulclient/authorize/oauth.py (+35/-21)
src/lazr/restfulclient/docs/NEWS.rst (+3/-1)
affects: | launchpadlib → lazr.restfulclient |
no longer affects: | launchpadlib |
Changed in lazr.restfulclient: | |
assignee: | nobody → Colin Watson (cjwatson) |
importance: | Undecided → High |
status: | New → Triaged |
Changed in lazr.restfulclient: | |
status: | Triaged → In Progress |
This works with the python3-oauth package in Ubuntu (which has had 2to3 run over it), just not to the packages available on PyPI. To fix this we need to port to oauthlib or similar.