{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/3798","repository_url":"https://api.github.com/repos/pypa/pip","labels_url":"https://api.github.com/repos/pypa/pip/issues/3798/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/3798/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/3798/events","html_url":"https://github.com/pypa/pip/issues/3798","id":160393601,"number":3798,"title":"On using python -m pip install -upgrade pip.. its throwing an error like the one below","user":{"login":"ank94","id":16443099,"avatar_url":"https://avatars.githubusercontent.com/u/16443099?v=3","gravatar_id":"","url":"https://api.github.com/users/ank94","html_url":"https://github.com/ank94","followers_url":"https://api.github.com/users/ank94/followers","following_url":"https://api.github.com/users/ank94/following{/other_user}","gists_url":"https://api.github.com/users/ank94/gists{/gist_id}","starred_url":"https://api.github.com/users/ank94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ank94/subscriptions","organizations_url":"https://api.github.com/users/ank94/orgs","repos_url":"https://api.github.com/users/ank94/repos","events_url":"https://api.github.com/users/ank94/events{/privacy}","received_events_url":"https://api.github.com/users/ank94/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-15T10:53:49Z","updated_at":"2016-06-23T22:43:04Z","closed_at":null,"body":"* Pip version:\r\n* Python version:\r\n* Operating System:\r\n\r\n### Description:\r\n\r\nOn using python -m pip install -upgrade pip.. its throwing an error like the one below\r\n\r\n### What I've run:\r\n\r\n```\r\n\r\n\r\nC:\\>python -m pip install --upgrade pip\r\nTraceback (most recent call last):\r\n  File \"C:\\Python27\\lib\\runpy.py\", line 151, in _run_module_as_main\r\n    mod_name, loader, code, fname = _get_module_details(mod_name)\r\n  File \"C:\\Python27\\lib\\runpy.py\", line 109, in _get_module_details\r\n    return _get_module_details(pkg_main_name)\r\n  File \"C:\\Python27\\lib\\runpy.py\", line 101, in _get_module_details\r\n    loader = get_loader(mod_name)\r\n  File \"C:\\Python27\\lib\\pkgutil.py\", line 464, in get_loader\r\n    return find_loader(fullname)\r\n  File \"C:\\Python27\\lib\\pkgutil.py\", line 474, in find_loader\r\n    for importer in iter_importers(fullname):\r\n  File \"C:\\Python27\\lib\\pkgutil.py\", line 430, in iter_importers\r\n    __import__(pkg)\r\n  File \"C:\\Python27\\lib\\site-packages\\pip\\__init__.py\", line 13, in <module>\r\n    from pip.commands import commands, get_summaries, get_similar_commands\r\n  File \"C:\\Python27\\lib\\site-packages\\pip\\commands\\__init__.py\", line 6, in <mod\r\nule>\r\n    from pip.commands.bundle import BundleCommand\r\n  File \"C:\\Python27\\lib\\site-packages\\pip\\commands\\bundle.py\", line 6, in <modul\r\ne>\r\n    from pip.commands.install import InstallCommand\r\n  File \"C:\\Python27\\lib\\site-packages\\pip\\commands\\install.py\", line 5, in <modu\r\nle>\r\n    from pip.req import InstallRequirement, RequirementSet, parse_requirements\r\n  File \"C:\\Python27\\lib\\site-packages\\pip\\req\\__init__.py\", line 3, in <module>\r\n    from .req_install import InstallRequirement\r\n  File \"C:\\Python27\\lib\\site-packages\\pip\\req\\req_install.py\", line 30, in <modu\r\nle>\r\n    from pip.utils import (\r\n  File \"C:\\Python27\\lib\\site-packages\\pip\\utils\\__init__.py\", line 87, in <modul\r\ne>\r\n    def rmtree(dir, ignore_errors=False):\r\n  File \"C:\\Python27\\lib\\site-packages\\pip\\_vendor\\retrying.py\", line 47, in wrap\r\n\r\n    @six.wraps(f)\r\nAttributeError: 'module' object has no attribute 'wraps'\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/228207811","html_url":"https://github.com/pypa/pip/issues/3798#issuecomment-228207811","issue_url":"https://api.github.com/repos/pypa/pip/issues/3798","id":228207811,"user":{"login":"pfmoore","id":1110419,"avatar_url":"https://avatars.githubusercontent.com/u/1110419?v=3","gravatar_id":"","url":"https://api.github.com/users/pfmoore","html_url":"https://github.com/pfmoore","followers_url":"https://api.github.com/users/pfmoore/followers","following_url":"https://api.github.com/users/pfmoore/following{/other_user}","gists_url":"https://api.github.com/users/pfmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/pfmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfmoore/subscriptions","organizations_url":"https://api.github.com/users/pfmoore/orgs","repos_url":"https://api.github.com/users/pfmoore/repos","events_url":"https://api.github.com/users/pfmoore/events{/privacy}","received_events_url":"https://api.github.com/users/pfmoore/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T22:43:04Z","updated_at":"2016-06-23T22:43:04Z","body":"> No mudule named _vendor.six\r\n\r\nThat definitely sounds like you have a broken copy of pip. What files and subdirectories exist in ```C:\\Python27\\lib\\site-packages\\pip\\_vendor```? The above error implies that there is no ```six.py``` in that directory. If that's the case, how did it get removed?\r\n\r\nAs far as fixing this is concerned, the simplest option may be to manually remove pip and reinstall by hand (using ensurepip or get-pip.py)."}}
{"actor":{"display_login":"pfmoore"}}