Bug 1390003 - Cannot install python2-requests
Summary: Cannot install python2-requests
Keywords:
Status: CLOSED DUPLICATE of bug 1387090
Alias: None
Product: Fedora
Classification: Fedora
Component: python-requests
Version: 25
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Fedora Infrastructure SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-30 17:01 UTC by Alejandro_Perez
Modified: 2016-10-31 13:04 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-31 13:04:40 UTC
Type: Bug


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.