Description of problem: import requests File "/usr/lib/python3.4/site-packages/requests/__init__.py", line 58, in <module> from . import utils File "/usr/lib/python3.4/site-packages/requests/utils.py", line 26, in <module> from .compat import parse_http_list as _parse_list_header File "/usr/lib/python3.4/site-packages/requests/compat.py", line 7, in <module> from .packages import chardet File "/usr/lib/python3.4/site-packages/requests/packages/__init__.py", line 3, in <module> from . import urllib3 File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/__init__.py", line 10, in <module> from .connectionpool import ( File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 29, in <module> from .packages.ssl_match_hostname import CertificateError File "/usr/lib/python3.4/site-packages/requests/packages/urllib3/packages/__init__.py", line 3, in <module> from . import ssl_match_hostname ImportError: cannot import name 'ssl_match_hostname' Version-Release number of selected component (if applicable): python3-urllib3-1.10-1.fc22.noarch python-urllib3-1.10-1.fc22.noarch python3-requests-2.5.0-3.fc22.noarch How reproducible: always Steps to Reproduce: 1. get a code which was working week ago 2. try to use it Actual results: traceback as above Expected results: code works Additional info:
*** Bug 1177024 has been marked as a duplicate of this bug. ***
It's pretty clear from the spec why this occurs: --- rm -rf %{buildroot}/%{python3_sitelib}/urllib3/packages/six.py* rm -rf %{buildroot}/%{python3_sitelib}/urllib3/packages/ssl_match_hostname/ mkdir -p %{buildroot}/%{python3_sitelib}/urllib3/packages/ ln -s ../../six.py %{buildroot}/%{python3_sitelib}/urllib3/packages/six.py --- The bundled copy is removed, but the symlink is not added. Should be simple to fix, at least. Interestingly it seems to be correct in the F21 package in testing.
Thanks for the report! Sorry for the blunder.
python-urllib3-1.10-2.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/python-urllib3-1.10-2.fc21
Just to be clear, this bug is against Rawhide, but the update appears to be for F21?
Yes. The associated rawhide build can be found here: http://koji.fedoraproject.org/koji/buildinfo?buildID=602124 Thanks for pointing that out. :)
python-urllib3-1.10-2.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.