2018-01-03 20:07 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0009139CentOS-7python-requestspublic2015-08-11 07:05
Reporterdanielbrunos 
PrioritynormalSeveritycrashReproducibilityalways
StatusnewResolutionopen 
Product Version7.1-1503 
Target VersionFixed in Version 
Summary0009139: python-requests crash after update
DescriptionToday I've updated python-requests and python-urllib3 and python-requests is broken.
Steps To Reproduce>>> import requests
Additional InformationTraceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 60, in <module>
    from .api import request, get, head, post, patch, put, delete, options
  File "/usr/lib/python2.7/site-packages/requests/api.py", line 14, in <module>
    from . import sessions
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 27, in <module>
    from .adapters import HTTPAdapter
  File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 29, in <module>
    from .packages.urllib3.exceptions import ResponseError
ImportError: cannot import name ResponseError
TagsNo tags attached.
abrt_hash
URL
Attached Files

-Relationships
+Relationships

-Notes

~0023829

PriceChild (reporter)

sudo pip install --upgrade requests

will get you going in the meantime.

~0023830

avij (manager)

Unable to reproduce. Please make sure you are using CentOS-packaged versions of python, python-requests and python-urllib3. Please note that EPEL used to have their own versions of these packages as well.

$ rpm -q python python-requests python-urllib3
python-2.7.5-18.el7_1.1.x86_64
python-requests-2.6.0-1.el7_1.noarch
python-urllib3-1.10.2-2.el7_1.noarch

$ rpm -qi python python-requests python-urllib3
Signature: RSA/SHA256, Wed 24 Jun 2015 06:05:10 AM EEST, Key ID 24c6a8a7f4a80eb5
Signature: RSA/SHA256, Wed 22 Jul 2015 11:25:10 PM EEST, Key ID 24c6a8a7f4a80eb5
Signature: RSA/SHA256, Thu 06 Aug 2015 05:16:21 AM EEST, Key ID 24c6a8a7f4a80eb5

~0023833

alphacc (developer)

I saw this on a system ; after uninstalling the python-request from EPEL, it seems some files are left behind in /usr/lib/python2.6/site-packages/requests/packages/

You can :
yum remove python-requests
rm -rf /usr/lib/python2.6/site-packages/requests/
yum install python-requests

I am still investigating which EPEL package version is affected.

--
Thomas.

~0023841

alphacc (developer)

Scratch my last comment it was a mixed pip/yum issue.
+Notes

-Issue History
Date Modified Username Field Change
2015-07-27 14:16 danielbrunos New Issue
2015-08-10 11:10 PriceChild Note Added: 0023829
2015-08-10 12:24 avij Note Added: 0023830
2015-08-10 15:22 alphacc Note Added: 0023833
2015-08-11 07:05 alphacc Note Added: 0023841
+Issue History