{"action":"opened","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/2395","labels_url":"https://api.github.com/repos/pypa/pip/issues/2395/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/2395/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/2395/events","html_url":"https://github.com/pypa/pip/issues/2395","id":56517922,"number":2395,"title":"Python 2.7.9 change broke urllib3 on platforms where the OpenSSL library has SNI disabled","user":{"login":"mjpieters","id":46775,"avatar_url":"https://avatars.githubusercontent.com/u/46775?v=3","gravatar_id":"","url":"https://api.github.com/users/mjpieters","html_url":"https://github.com/mjpieters","followers_url":"https://api.github.com/users/mjpieters/followers","following_url":"https://api.github.com/users/mjpieters/following{/other_user}","gists_url":"https://api.github.com/users/mjpieters/gists{/gist_id}","starred_url":"https://api.github.com/users/mjpieters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjpieters/subscriptions","organizations_url":"https://api.github.com/users/mjpieters/orgs","repos_url":"https://api.github.com/users/mjpieters/repos","events_url":"https://api.github.com/users/mjpieters/events{/privacy}","received_events_url":"https://api.github.com/users/mjpieters/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-04T11:59:48Z","updated_at":"2015-02-04T11:59:48Z","closed_at":null,"body":"This is not a bug in `pip`, but I'm reporting it here as someone using `pip` on Python 2.7.9 with an OpenSSL version that does *not* have SNI enabled is likely to see this traceback when encountering this issue:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/basecommand.py\", line 232, in main\r\n    status = self.run(options, args)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/commands/install.py\", line 339, in run\r\n    requirement_set.prepare_files(finder)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/req/req_set.py\", line 333, in prepare_files\r\n    upgrade=self.upgrade,\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/index.py\", line 305, in find_requirement\r\n    page = self._get_page(main_index_url, req)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/index.py\", line 783, in _get_page\r\n    return HTMLPage.get_page(link, req, session=self.session)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/index.py\", line 872, in get_page\r\n    \"Cache-Control\": \"max-age=600\",\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/_vendor/requests/sessions.py\", line 473, in get\r\n    return self.request('GET', url, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/download.py\", line 365, in request\r\n    return super(PipSession, self).request(method, url, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/_vendor/requests/sessions.py\", line 461, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/_vendor/requests/sessions.py\", line 573, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/_vendor/cachecontrol/adapter.py\", line 43, in send\r\n    resp = super(CacheControlAdapter, self).send(request, **kw)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/_vendor/requests/adapters.py\", line 370, in send\r\n    timeout=timeout\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/_vendor/requests/packages/urllib3/connectionpool.py\", line 518, in urlopen\r\n    body=body, headers=headers)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/_vendor/requests/packages/urllib3/connectionpool.py\", line 322, in _make_request\r\n    self._validate_conn(conn)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/_vendor/requests/packages/urllib3/connectionpool.py\", line 727, in _validate_conn\r\n    conn.connect()\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/_vendor/requests/packages/urllib3/connection.py\", line 238, in connect\r\n    ssl_version=resolved_ssl_version)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip-6.0.7-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py\", line 254, in ssl_wrap_socket\r\n    return context.wrap_socket(sock)\r\n  File \"/usr/local/lib/python2.7/ssl.py\", line 350, in wrap_socket\r\n    _context=self)\r\n  File \"/usr/local/lib/python2.7/ssl.py\", line 537, in __init__\r\n    raise ValueError(\"check_hostname requires server_hostname\")\r\nValueError: check_hostname requires server_hostname\r\n```\r\n\r\nThis is an issue with `urllib3`, see shazow/urllib3#543, also noted at kennethreitz/requests#2435.\r\n\r\nBy placing this here the `pip` project has a place to track status on this and redirect people that encounter the problem.\r\n\r\n"}}