Bug 1396325

Summary: Installing git-review / python2-requests failed
Product: [Fedora] Fedora Reporter: Gerard Braad <me>
Component: python-requestsAssignee: Fedora Infrastructure SIG <infra-sig>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: cstratak, infra-sig, jeremy, kevin, pingou, rbean, sagarun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-26 00:53:17 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:

Description Gerard Braad 2016-11-18 02:23:26 UTC
Description of problem:
Installing git-review fails due to dependencies. The dependency python2-requests fails with a cpio rename issue for:

  /usr/lib/python2.7/site-packages/requests/packages/chardet
  /usr/lib/python2.7/site-packages/requests/packages/urllib3

Version-Release number of selected component (if applicable):
Updating with python2-requests-2.10.0-2.fc24.noarch

How reproducible:
Haven't reproduced

Steps to Reproduce:
1. dnf install -y git-review

Actual results:
https://gist.github.com/gbraad/be6cb278d68f62630f1487a84756212a

Additional info:
This is on Fedora 24

Comment 1 Pierre-YvesChibon 2016-11-18 05:55:17 UTC
Hi,

Thanks for your report.

Did you by any chance install requests using pip instead of dnf?
You might be able to check this using `rpm -ql /usr/lib/python2.7/site-packages/requests/packages/chardet` for example.
rpm and pip do not work well together (they are both unaware of the other) so that could be an explanation.

Comment 2 Gerard Braad 2016-11-18 05:58:23 UTC
This docker image did use pip install, but from a virtualenv. That is why I am confused...

Comment 3 Pierre-YvesChibon 2016-11-18 07:50:23 UTC
What does  `rpm -qf /usr/lib/python2.7/site-packages/requests/packages/chardet` return? (and not -ql as I originally said since -ql is for listing the files in a package)

Comment 4 Kevin Fenzi 2017-02-26 00:53:17 UTC
I'm going to go ahead and close this... but if you are still seeing issues, please do reopen. 

The only time we see these kinds of issues is with pip installs having been done and in the place rpm wants to extract to.