| Summary: | copr-cli: ImportError: cannot import name InvalidHeader | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Sorin Sbarnea <ssbarnea> | ||||
| Component: | copr-cli | Assignee: | Miroslav Suchý <msuchy> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rawhide | CC: | clime, jkadlcik, msuchy, praiskup | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-11-10 18:36:40 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
Created attachment 1219473 [details]
pip freeze report
Not sure what caused this but doing this fixed it: pip install --upgrade --force-reinstall requestsexceptions requests requests-toolbelt I do mention that pip freeze reports the same packages as installed as before running the command, but this time it works. This does not seem like a bug in copr-cli so raising it there https://github.com/kennethreitz/requests/issues/3670 |
Description of problem: After installing copr-cli using pip I tried to run it and I got: $ copr-cli Traceback (most recent call last): File "/bin/copr-cli", line 7, in <module> from copr_cli.main import main File "/usr/lib/python2.7/site-packages/copr_cli/main.py", line 31, in <module> from copr import CoprClient File "/usr/lib/python2.7/site-packages/copr/__init__.py", line 1, in <module> from .client import CoprClient File "/usr/lib/python2.7/site-packages/copr/client/__init__.py", line 7, in <module> from .client import CoprClient File "/usr/lib/python2.7/site-packages/copr/client/client.py", line 14, in <module> import requests File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 64, in <module> from . import utils File "/usr/lib/python2.7/site-packages/requests/utils.py", line 29, in <module> from .exceptions import InvalidURL, InvalidHeader, FileModeWarning ImportError: cannot import name InvalidHeader Version-Release number of selected component (if applicable): 1.55