{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/2272","labels_url":"https://api.github.com/repos/pypa/pip/issues/2272/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/2272/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/2272/events","html_url":"https://github.com/pypa/pip/issues/2272","id":52793141,"number":2272,"title":"regression: TypeError exception when installing package distribute","user":{"login":"rsyring","id":109467,"avatar_url":"https://avatars.githubusercontent.com/u/109467?v=3","gravatar_id":"","url":"https://api.github.com/users/rsyring","html_url":"https://github.com/rsyring","followers_url":"https://api.github.com/users/rsyring/followers","following_url":"https://api.github.com/users/rsyring/following{/other_user}","gists_url":"https://api.github.com/users/rsyring/gists{/gist_id}","starred_url":"https://api.github.com/users/rsyring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsyring/subscriptions","organizations_url":"https://api.github.com/users/rsyring/orgs","repos_url":"https://api.github.com/users/rsyring/repos","events_url":"https://api.github.com/users/rsyring/events{/privacy}","received_events_url":"https://api.github.com/users/rsyring/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-24T03:25:32Z","updated_at":"2015-03-31T17:06:04Z","closed_at":"2014-12-31T01:02:15Z","body":"I recently ran into this exception from pip:\r\n\r\n``` console\r\n(helloworld) C:\\Users\\rsyring\\Projects\\helloworld\r\nλ pip install pyinstaller\r\nDEPRECATION: --download-cache has been deprecated and will be removed in the future. Pip now automatically uses and configures its cache.\r\nCollecting pyinstaller\r\n  Downloading PyInstaller-2.1.tar.gz (4.8MB)\r\n    100% |################################| 4.8MB 787kB/s\r\nCollecting distribute (from pyinstaller)\r\n  Downloading distribute-0.7.3.zip (145kB)\r\n    100% |################################| 147kB 3.2MB/s\r\nRequirement already satisfied (use --upgrade to upgrade): setuptools>=0.7 in c:\\users\\rsyring\\.virtualenvs\\helloworld\\lib\\site-packages (from distribute->pyinstaller)\r\nException:\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\rsyring\\.virtualenvs\\helloworld\\lib\\site-packages\\pip\\basecommand.py\", line 215, in main\r\n    status = self.run(options, args)\r\n  File \"C:\\Users\\rsyring\\.virtualenvs\\helloworld\\lib\\site-packages\\pip\\commands\\install.py\", line 347, in run\r\n    root=options.root_path,\r\n  File \"C:\\Users\\rsyring\\.virtualenvs\\helloworld\\lib\\site-packages\\pip\\req\\req_set.py\", line 497, in install\r\n    and req.installed_version in distribute_req):\r\n  File \"C:\\Users\\rsyring\\.virtualenvs\\helloworld\\lib\\site-packages\\pip\\_vendor\\pkg_resources.py\", line 2851, in __contains__\r\n    return self.specifier.contains(item, prereleases=True)\r\n  File \"C:\\Users\\rsyring\\.virtualenvs\\helloworld\\lib\\site-packages\\pip\\_vendor\\packaging\\specifiers.py\", line 651, in contains\r\n    item = parse(item)\r\n  File \"C:\\Users\\rsyring\\.virtualenvs\\helloworld\\lib\\site-packages\\pip\\_vendor\\packaging\\version.py\", line 41, in parse\r\n    return Version(version)\r\n  File \"C:\\Users\\rsyring\\.virtualenvs\\helloworld\\lib\\site-packages\\pip\\_vendor\\packaging\\version.py\", line 202, in __init__\r\n    match = self._regex.search(version)\r\nTypeError: expected string or buffer\r\n```\r\n\r\nReverting to pip 1.5.6 allowed the package to install:\r\n\r\n``` console\r\n(helloworld) C:\\Users\\rsyring\\Projects\\helloworld\r\nλ python -m pip install -U pip==1.5.6\r\nDEPRECATION: --download-cache has been deprecated and will be removed in the future. Pip now automatically uses and configures its cache.\r\nCollecting pip==1.5.6\r\n  Downloading pip-1.5.6-py2.py3-none-any.whl (1.0MB)\r\n    100% |################################| 1.0MB 1.3MB/s\r\nInstalling collected packages: pip\r\n  Found existing installation: pip 6.0.3\r\n    Uninstalling pip-6.0.3:\r\n      Successfully uninstalled pip-6.0.3\r\n\r\nSuccessfully installed pip-1.5.6\r\n\r\n(helloworld) C:\\Users\\rsyring\\Projects\\helloworld\r\nλ pip --version\r\npip 1.5.6 from C:\\Users\\rsyring\\.virtualenvs\\helloworld\\lib\\site-packages (python 2.7)\r\n\r\n(helloworld) C:\\Users\\rsyring\\Projects\\helloworld\r\nλ pip install pyinstaller\r\nDownloading/unpacking pyinstaller\r\n  Storing download in cache at p:\\https%3a%2f%2fpypi.python.org%2fpackages%2fsource%2fp%2fpyinstaller%2fpyinstaller-2.1.tar.gz\r\n  Running setup.py (path:C:\\Users\\rsyring\\.virtualenvs\\helloworld\\build\\pyinstaller\\setup.py) egg_info for package pyinstaller\r\n\r\nDownloading/unpacking distribute (from pyinstaller)\r\n  Storing download in cache at p:\\https%3a%2f%2fpypi.python.org%2fpackages%2fsource%2fd%2fdistribute%2fdistribute-0.7.3.zip\r\n  Running setup.py (path:C:\\Users\\rsyring\\.virtualenvs\\helloworld\\build\\distribute\\setup.py) egg_info for package distribute\r\n\r\nRequirement already satisfied (use --upgrade to upgrade): setuptools>=0.7 in c:\\users\\rsyring\\.virtualenvs\\helloworld\\lib\\site-packages (from distribute->pyinstaller)\r\nInstalling collected packages: pyinstaller, distribute\r\n  Running setup.py install for pyinstaller\r\n\r\n    Installing pyinstaller-script.py script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyinstaller.exe script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyinstaller.exe.manifest script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-grab_version-script.py script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-grab_version.exe script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-grab_version.exe.manifest script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-archive_viewer-script.py script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-archive_viewer.exe script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-archive_viewer.exe.manifest script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-build-script.py script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-build.exe script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-build.exe.manifest script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-make_comserver-script.py script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-make_comserver.exe script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-make_comserver.exe.manifest script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-bindepend-script.py script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-bindepend.exe script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-bindepend.exe.manifest script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-set_version-script.py script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-set_version.exe script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-set_version.exe.manifest script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-makespec-script.py script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-makespec.exe script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n    Installing pyi-makespec.exe.manifest script to C:\\Users\\rsyring\\.virtualenvs\\helloworld\\Scripts\r\n  Running setup.py install for distribute\r\n\r\nSuccessfully installed pyinstaller distribute\r\nCleaning up...\r\n\r\n(helloworld) C:\\Users\\rsyring\\Projects\\helloworld\r\n```\r\n\r\nI was also able to install pyinstaller with pip 6.0.3 on Linux without issue."},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/88172879","html_url":"https://github.com/pypa/pip/issues/2272#issuecomment-88172879","issue_url":"https://api.github.com/repos/pypa/pip/issues/2272","id":88172879,"user":{"login":"apinsard","id":1536035,"avatar_url":"https://avatars.githubusercontent.com/u/1536035?v=3","gravatar_id":"","url":"https://api.github.com/users/apinsard","html_url":"https://github.com/apinsard","followers_url":"https://api.github.com/users/apinsard/followers","following_url":"https://api.github.com/users/apinsard/following{/other_user}","gists_url":"https://api.github.com/users/apinsard/gists{/gist_id}","starred_url":"https://api.github.com/users/apinsard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinsard/subscriptions","organizations_url":"https://api.github.com/users/apinsard/orgs","repos_url":"https://api.github.com/users/apinsard/repos","events_url":"https://api.github.com/users/apinsard/events{/privacy}","received_events_url":"https://api.github.com/users/apinsard/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T17:06:04Z","updated_at":"2015-03-31T17:06:04Z","body":"I'm currently facing the same issue with pip 6.0.8.\r\n\r\npip install markdown\r\nCollecting markdown\r\nException:\r\nTraceback (most recent call last):\r\nFile \"/usr/lib64/python3.3/site-packages/pip/basecommand.py\", line 232, in main\r\nstatus = self.run(options, args)\r\nFile \"/usr/lib64/python3.3/site-packages/pip/commands/install.py\", line 339, in run\r\nrequirement_set.prepare_files(finder)\r\nFile \"/usr/lib64/python3.3/site-packages/pip/req/req_set.py\", line 333, in prepare_files\r\nupgrade=self.upgrade,\r\nFile \"/usr/lib64/python3.3/site-packages/pip/index.py\", line 430, in find_requirement\r\nif self.allow_all_prereleases else None\r\nFile \"/usr/lib64/python3.3/site-packages/pkg_resources/_vendor/packaging/specifiers.py\", line 751, in filter\r\nparsed_version = parse(item)\r\nFile \"/usr/lib64/python3.3/site-packages/pkg_resources/_vendor/packaging/version.py\", line 41, in parse\r\nreturn Version(version)\r\nFile \"/usr/lib64/python3.3/site-packages/pkg_resources/_vendor/packaging/version.py\", line 210, in __init__\r\nmatch = self._regex.search(version)\r\nTypeError: expected string or buffer "}}