tox -e pep8 not working since requests version conflict with charm-tools
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Keystone Charm |
Fix Released
|
Undecided
|
Joe Guo |
Bug Description
In `charm-
charm-
requests>
In `charm-
requests<
When we run `tox -e pep8` in `charm-keystone`, top level requirement `requests>=2.18.4` was used, and latest requests(2.22.0) was installed.
When `charm-tools` was called by `tox`, it failed with such error:
```
pep8 run-test: commands[1] | charm-proof
Traceback (most recent call last):
File "/home/
ws.
File "/home/
needed = self.resolve(
File "/home/
raise VersionConflict
pkg_resources.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/
from pkg_resources import load_entry_point
File "/home/
@_call_aside
File "/home/
f(*args, **kwargs)
File "/home/
working_set = WorkingSet.
File "/home/
return cls._build_
File "/home/
dists = ws.resolve(reqs, Environment())
File "/home/
raise DistributionNot
pkg_resources.
ERROR: InvocationError for command /home/guoqiao/
_______
ERROR: pep8: commands failed
```
ENV: ubuntu 18.04
Suggested fix:
- remove requests requirement in `charm-
- perhaps update `charm-
Changed in charm-keystone: | |
assignee: | nobody → guoqiao (guoqiao) |
Changed in charm-keystone: | |
status: | In Progress → Fix Released |
Fix proposed to branch: master /review. opendev. org/670216
Review: https:/