Bug 1390003

Summary: Cannot install python2-requests
Product: [Fedora] Fedora Reporter: Alejandro_Perez <alejandro.perez.torres>
Component: python-requestsAssignee: Fedora Infrastructure SIG <infra-sig>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 25CC: cstratak, infra-sig, jcline, jeremy, pingou, rbean, sagarun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-31 13:04: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:

Description Alejandro_Perez 2016-10-30 17:01:08 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. sudo dnf install pyhton-requests
2. rpm -Uvh ~/Downloads/python2-requests-2.10.0-4.fc25.noarch.rpm
3.

Actual results:


Actualizando / instalando...
   1:python2-requests-2.10.0-3.fc25   ################################# [100%]
error: falló el desempaquetado de archivos  en archivo/usr/lib/python2.7/site-packages/requests/packages/chardet: cpio: rename
error: python2-requests-2.10.0-3.fc25.noarch: instalar  falló

Dependencias resueltas.
==============================================================================================================================================================
 Package                                    Arquitectura                     Versión                                   Repositorio                      Tamaño
==============================================================================================================================================================
Instalando:
 python2-requests                           noarch                           2.10.0-4.fc25                             fedora                           107 k

Resumen de la transacción
==============================================================================================================================================================
Instalar  1 Paquete

Tamaño total de la descarga: 107 k
Tamaño instalado: 369 k
¿Está de acuerdo [s/N]?: s
Descargando paquetes:
python2-requests-2.10.0-4.fc25.noarch.rpm                                                                                     142 kB/s | 107 kB     00:00    
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                          50 kB/s | 107 kB     00:02     
Ejecutando verificación de operación
Verificación de operación exitosa.
Ejecutando prueba de operaciones
Prueba de operación exitosa.
Ejecutando operación
  Instalando              : python2-requests-2.10.0-4.fc25.noarch                                                                                         1/1 
Error unpacking rpm package python2-requests-2.10.0-4.fc25.noarch
Error unpacking rpm package python2-requests-2.10.0-4.fc25.noarch
error: falló el desempaquetado de archivos  en archivo/usr/lib/python2.7/site-packages/requests/packages/chardet: cpio: rename
¡se suponía que python2-requests-2.10.0-4.fc25.noarch estuviera instalado, pero no lo está!
  Verificando             : python2-requests-2.10.0-4.fc25.noarch                                                                                         1/1 

Fallido:
  python2-requests.noarch 2.10.0-4.fc25                                                                                                                       

¡Listo!


Expected results:
Installed

Additional info:

Comment 1 Pierre-YvesChibon 2016-10-30 18:22:13 UTC
Could you run a:

ls -lsd /usr/lib/python2.7/site-packages/requests
LANG=C rpm -qf /usr/lib/python2.7/site-packages/requests


(LANG=C will change the language of output to english ;-))

Comment 2 Alejandro_Perez 2016-10-30 20:08:16 UTC
Here it is:

ls -lsd /usr/lib/python2.7/site-packages/requests

4 drwxr-xr-x. 3 root root 4096 oct 30 11:59 /usr/lib/python2.7/site-packages/requests

 LANG=C rpm -qf /usr/lib/python2.7/site-packages/requests

file /usr/lib/python2.7/site-packages/requests is not owned by any package

Comment 3 Pierre-YvesChibon 2016-10-31 07:25:22 UTC
My guess would be that you installed requests using pip at some point in the past.

And that is indeed conflicting with the RPM.

May try uninstalling with pip and try using the RPM again?

Comment 4 Jeremy Cline 2016-10-31 13:04:40 UTC
I believe Pierre-Yves is correct, but it would be good to keep this conversation all on one ticket, so I've closed this as a duplicate of your other issue. The conversation can continue there, if necessary.

*** This bug has been marked as a duplicate of bug 1387090 ***