{"action":"opened","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/3957","repository_url":"https://api.github.com/repos/pypa/pip","labels_url":"https://api.github.com/repos/pypa/pip/issues/3957/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/3957/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/3957/events","html_url":"https://github.com/pypa/pip/issues/3957","id":175624347,"number":3957,"title":"TypeError when installing pip","user":{"login":"ethanaward","id":17013620,"avatar_url":"https://avatars.githubusercontent.com/u/17013620?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanaward","html_url":"https://github.com/ethanaward","followers_url":"https://api.github.com/users/ethanaward/followers","following_url":"https://api.github.com/users/ethanaward/following{/other_user}","gists_url":"https://api.github.com/users/ethanaward/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanaward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanaward/subscriptions","organizations_url":"https://api.github.com/users/ethanaward/orgs","repos_url":"https://api.github.com/users/ethanaward/repos","events_url":"https://api.github.com/users/ethanaward/events{/privacy}","received_events_url":"https://api.github.com/users/ethanaward/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-07T22:43:01Z","updated_at":"2016-09-07T22:43:01Z","closed_at":null,"body":"* Pip version: 8.1.2\r\n* Python version: 2.7\r\n* Operating System: Ubuntu\r\n\r\n### Description:\r\nI've been trying to install pip into an virtualenv as part of building a Linux package. When installing pip, it always gives me the same error and fails. I've seen the same error in shazow/urllib3#567, but the fix there doesn't seem to have worked for me.\r\n\r\n### What I've run:\r\n\r\n```\r\ndh build-arch -S --buildsystem=dh_virtualenv --setuptools --python=python2.7 --no-test\r\n   dh_testdir -a -O-S -O--buildsystem=dh_virtualenv -O--setuptools -O--python=python2.7 -O--no-test\r\n   dh_update_autotools_config -a -O-S -O--buildsystem=dh_virtualenv -O--setuptools -O--python=python2.7 -O--no-test\r\n   dh_auto_configure -a -O-S -O--buildsystem=dh_virtualenv -O--setuptools -O--python=python2.7 -O--no-test\r\n\tmkdir -p build/usr/lib/mycroft-core\r\n   dh_auto_build -a -O-S -O--buildsystem=dh_virtualenv -O--setuptools -O--python=python2.7 -O--no-test\r\n\tcd build\r\n\tvirtualenv --always-copy --clear /«PKGBUILDDIR»/build/usr/lib/mycroft-core\r\nNot deleting /«PKGBUILDDIR»/build/usr/lib/mycroft-core/bin\r\nNew python executable in /«PKGBUILDDIR»/build/usr/lib/mycroft-core/bin/python2\r\nAlso creating executable in /«PKGBUILDDIR»/build/usr/lib/mycroft-core/bin/python\r\nInstalling setuptools, pkg_resources, pip, wheel...\r\n  Complete output from command /build/mycroft-core-...oft-core/bin/python2 - setuptools pkg_resources pip wheel:\r\n  Collecting setuptools\r\nException:\r\nTraceback (most recent call last):\r\n  File \"/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/basecommand.py\", line 209, in main\r\n    status = self.run(options, args)\r\n  File \"/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/commands/install.py\", line 328, in run\r\n    wb.build(autobuilding=True)\r\n  File \"/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/wheel.py\", line 748, in build\r\n    self.requirement_set.prepare_files(self.finder)\r\n  File \"/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/req/req_set.py\", line 360, in prepare_files\r\n    ignore_dependencies=self.ignore_dependencies))\r\n  File \"/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/req/req_set.py\", line 512, in _prepare_file\r\n    finder, self.upgrade, require_hashes)\r\n  File \"/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/req/req_install.py\", line 273, in populate_link\r\n    self.link = finder.find_requirement(self, upgrade)\r\n  File \"/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/index.py\", line 442, in find_requirement\r\n    all_candidates = self.find_all_candidates(req.name)\r\n  File \"/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/index.py\", line 400, in find_all_candidates\r\n    for page in self._get_pages(url_locations, project_name):\r\n  File \"/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/index.py\", line 545, in _get_pages\r\n    page = self._get_page(location)\r\n  File \"/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/index.py\", line 648, in _get_page\r\n    return HTMLPage.get_page(link, session=self.session)\r\n  File \"/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/index.py\", line 757, in get_page\r\n    \"Cache-Control\": \"max-age=600\",\r\n  File \"/«PKGBUILDDIR»/build/usr/lib/mycroft-core/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py\", line 480, in get\r\n    return self.request('GET', url, **kwargs)\r\n  File \"/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/download.py\", line 378, in request\r\n    return super(PipSession, self).request(method, url, *args, **kwargs)\r\n  File \"/«PKGBUILDDIR»/build/usr/lib/mycroft-core/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py\", line 468, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/«PKGBUILDDIR»/build/usr/lib/mycroft-core/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py\", line 576, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/«PKGBUILDDIR»/build/usr/lib/mycroft-core/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py\", line 46, in send\r\n    resp = super(CacheControlAdapter, self).send(request, **kw)\r\n  File \"/«PKGBUILDDIR»/build/usr/lib/mycroft-core/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/adapters.py\", line 376, in send\r\nTraceback (most recent call last):\r\n    timeout=timeout\r\n  File \"/«PKGBUILDDIR»/build/usr/lib/mycroft-core/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py\", line 610, in urlopen\r\n  File \"/usr/lib/python3/dist-packages/virtualenv.py\", line 2363, in <module>\r\n    _stacktrace=sys.exc_info()[2])\r\n  File \"/«PKGBUILDDIR»/build/usr/lib/mycroft-core/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/retry.py\", line 228, in increment\r\n    total -= 1\r\nTypeError: unsupported operand type(s) for -=: 'Retry' and 'int'\r\n----------------------------------------\r\n...Installing setuptools, pkg_resources, pip, wheel...done.\r\n    main()\r\n  File \"/usr/lib/python3/dist-packages/virtualenv.py\", line 719, in main\r\n    symlink=options.symlink)\r\n  File \"/usr/lib/python3/dist-packages/virtualenv.py\", line 988, in create_environment\r\n    download=download,\r\n  File \"/usr/lib/python3/dist-packages/virtualenv.py\", line 918, in install_wheel\r\n    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)\r\n  File \"/usr/lib/python3/dist-packages/virtualenv.py\", line 812, in call_subprocess\r\n    % (cmd_desc, proc.returncode))\r\nOSError: Command /build/mycroft-core-...oft-core/bin/python2 - setuptools pkg_resources pip wheel failed with error code 2\r\nRunning virtualenv with interpreter /usr/bin/python2\r\ndh_auto_build: virtualenv --always-copy --clear /«PKGBUILDDIR»/build/usr/lib/mycroft-core returned exit code 1\r\n\tcd /«PKGBUILDDIR»\r\ndebian/rules:10: recipe for target 'build-arch' failed\r\nmake: *** [build-arch] Error 25\r\ndpkg-buildpackage: error: debian/rules build-arch gave error exit status 2\r\n```\r\n`\r\n"}}
{"actor":{"display_login":"ethanaward"}}