Plainbox crashes at start 'requests-oauth missing'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PlainBox (Toolkit) |
Fix Released
|
Critical
|
Maciej Kisielewski |
Bug Description
I get following traceback [1] while trying to do anything involving plainbox, like running $ plainbox.
Steps to reproduce / what I did:
1. set up clean VM
2. get lp:checkbox
3. $ ./mk-venv
4. $ . venv/bin/activate
5. $ plainbox
[1]
Traceback (most recent call last):
File "/home/
from pkg_resources import load_entry_point
File "/usr/lib/
@_call_aside
File "/usr/lib/
f(*args, **kwargs)
File "/usr/lib/
working_set = WorkingSet.
File "/usr/lib/
ws.
File "/usr/lib/
needed = self.resolve(
File "/usr/lib/
raise DistributionNot
pkg_resources.
Related branches
- Sylvain Pineau: Approve
-
Diff: 39 lines (+2/-13)1 file modifiedplainbox/setup.py (+2/-13)
Changed in plainbox: | |
status: | Confirmed → In Progress |
assignee: | nobody → Maciej Kisielewski (kissiel) |
Changed in plainbox: | |
milestone: | none → 0.31 |
status: | In Progress → Fix Committed |
Changed in plainbox: | |
status: | Fix Committed → Fix Released |
We've made the necessary changes in the transport.py code to have a conditional import of oauthlib:
# OAuth is not always available on all platforms. available = False
_oauth_available = True
try:
from oauthlib import oauth1
except ImportError:
_oauth_
Jonathan did have the same issue with a snap built using plainbox from pypi. So to me the content of plainbox.py is the opposite of what we have in the code where requests-oauth is mandatory (it should not).
Now maybe there's an issue with requests-oauthlib on pypi but I'd stop depending on it, it's not a strict dependency of plainbox. projects requiring the OAuthTransport already pull the right set of dependencies (i.e the pilot project).