{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/2719","labels_url":"https://api.github.com/repos/pypa/pip/issues/2719/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/2719/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/2719/events","html_url":"https://github.com/pypa/pip/issues/2719","id":70704241,"number":2719,"title":"Error Installing any module using pip, but easy_install works","user":{"login":"harshdattani","id":4353485,"avatar_url":"https://avatars.githubusercontent.com/u/4353485?v=3","gravatar_id":"","url":"https://api.github.com/users/harshdattani","html_url":"https://github.com/harshdattani","followers_url":"https://api.github.com/users/harshdattani/followers","following_url":"https://api.github.com/users/harshdattani/following{/other_user}","gists_url":"https://api.github.com/users/harshdattani/gists{/gist_id}","starred_url":"https://api.github.com/users/harshdattani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshdattani/subscriptions","organizations_url":"https://api.github.com/users/harshdattani/orgs","repos_url":"https://api.github.com/users/harshdattani/repos","events_url":"https://api.github.com/users/harshdattani/events{/privacy}","received_events_url":"https://api.github.com/users/harshdattani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-24T14:26:55Z","updated_at":"2015-04-28T03:42:49Z","closed_at":null,"body":"I get this error whenever I try to install any module using pip, but easy_install work perfectly. I have no proxies configured in my Ubuntu 12.04 machine. Previously it was working fine, just dnt know, how it stoped working suddenly.\r\n\r\nThis is error i get, while running pip install <any_package_name>:\r\n<snippet>\r\nException:\r\nTraceback (most recent call last):\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/basecommand.py\", line 246, in main\r\n    status = self.run(options, args)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/commands/install.py\", line 342, in run\r\n    requirement_set.prepare_files(finder)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/req/req_set.py\", line 345, in prepare_files\r\n    functools.partial(self._prepare_file, finder))\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/req/req_set.py\", line 290, in _walk_req_to_install\r\n    more_reqs = handler(req_to_install)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/req/req_set.py\", line 415, in _prepare_file\r\n    req_to_install, finder)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/req/req_set.py\", line 376, in _check_skip_installed\r\n    finder.find_requirement(req_to_install, self.upgrade)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/index.py\", line 425, in find_requirement\r\n    all_versions = self._find_all_versions(req.name)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/index.py\", line 349, in _find_all_versions\r\n    index_locations = self._get_index_urls_locations(project_name)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/index.py\", line 323, in _get_index_urls_locations\r\n    page = self._get_page(main_index_url)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/index.py\", line 789, in _get_page\r\n    return HTMLPage.get_page(link, session=self.session)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/index.py\", line 878, in get_page\r\n    \"Cache-Control\": \"max-age=600\",\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/_vendor/requests/sessions.py\", line 476, in get\r\n    return self.request('GET', url, **kwargs)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/download.py\", line 367, in request\r\n    return super(PipSession, self).request(method, url, *args, **kwargs)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/_vendor/requests/sessions.py\", line 464, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/_vendor/requests/sessions.py\", line 576, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/_vendor/cachecontrol/adapter.py\", line 46, in send\r\n    resp = super(CacheControlAdapter, self).send(request, **kw)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/_vendor/requests/adapters.py\", line 370, in send\r\n    timeout=timeout\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/_vendor/requests/packages/urllib3/connectionpool.py\", line 544, in urlopen\r\n    body=body, headers=headers)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/_vendor/requests/packages/urllib3/connectionpool.py\", line 341, in _make_request\r\n    self._validate_conn(conn)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/_vendor/requests/packages/urllib3/connectionpool.py\", line 762, in _validate_conn\r\n    conn.connect()\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/_vendor/requests/packages/urllib3/connection.py\", line 238, in connect\r\n    ssl_version=resolved_ssl_version)\r\n  File \"/tmp/tmpOA61D3/pip.zip/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py\", line 296, in ssl_wrap_socket\r\n    cnx.set_tlsext_host_name(server_hostname)\r\nAttributeError: '_socketobject' object has no attribute 'set_tlsext_host_name'\r\n</snippet>\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/96900225","html_url":"https://github.com/pypa/pip/issues/2719#issuecomment-96900225","issue_url":"https://api.github.com/repos/pypa/pip/issues/2719","id":96900225,"user":{"login":"rbtcollins","id":499678,"avatar_url":"https://avatars.githubusercontent.com/u/499678?v=3","gravatar_id":"","url":"https://api.github.com/users/rbtcollins","html_url":"https://github.com/rbtcollins","followers_url":"https://api.github.com/users/rbtcollins/followers","following_url":"https://api.github.com/users/rbtcollins/following{/other_user}","gists_url":"https://api.github.com/users/rbtcollins/gists{/gist_id}","starred_url":"https://api.github.com/users/rbtcollins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbtcollins/subscriptions","organizations_url":"https://api.github.com/users/rbtcollins/orgs","repos_url":"https://api.github.com/users/rbtcollins/repos","events_url":"https://api.github.com/users/rbtcollins/events{/privacy}","received_events_url":"https://api.github.com/users/rbtcollins/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T03:42:48Z","updated_at":"2015-04-28T03:42:48Z","body":"This is a duplicate of #2696 "}}