{"action":"created","issue":{"url":"https://api.github.com/repos/eliangcs/http-prompt/issues/1","repository_url":"https://api.github.com/repos/eliangcs/http-prompt","labels_url":"https://api.github.com/repos/eliangcs/http-prompt/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/eliangcs/http-prompt/issues/1/comments","events_url":"https://api.github.com/repos/eliangcs/http-prompt/issues/1/events","html_url":"https://github.com/eliangcs/http-prompt/issues/1","id":155738789,"number":1,"title":"Installation fails on system-wide install on os.x","user":{"login":"ralphschindler","id":76674,"avatar_url":"https://avatars.githubusercontent.com/u/76674?v=3","gravatar_id":"","url":"https://api.github.com/users/ralphschindler","html_url":"https://github.com/ralphschindler","followers_url":"https://api.github.com/users/ralphschindler/followers","following_url":"https://api.github.com/users/ralphschindler/following{/other_user}","gists_url":"https://api.github.com/users/ralphschindler/gists{/gist_id}","starred_url":"https://api.github.com/users/ralphschindler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralphschindler/subscriptions","organizations_url":"https://api.github.com/users/ralphschindler/orgs","repos_url":"https://api.github.com/users/ralphschindler/repos","events_url":"https://api.github.com/users/ralphschindler/events{/privacy}","received_events_url":"https://api.github.com/users/ralphschindler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-19T13:38:05Z","updated_at":"2016-05-19T14:16:32Z","closed_at":null,"body":"From the debug log:\r\n```\r\nCleaning up...\r\n  Removing temporary dir /private/tmp/pip_build_root...\r\nException:\r\nTraceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py\", line 122, in main\r\n    status = self.run(options, args)\r\n  File \"/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/commands/install.py\", line 283, in run\r\n    requirement_set.install(install_options, global_options, root=options.root_path)\r\n  File \"/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py\", line 1431, in install\r\n    requirement.uninstall(auto_confirm=True)\r\n  File \"/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py\", line 598, in uninstall\r\n    paths_to_remove.remove(auto_confirm)\r\n  File \"/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py\", line 1836, in remove\r\n    renames(path, new_path)\r\n  File \"/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/util.py\", line 295, in renames\r\n    shutil.move(old, new)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 302, in move\r\n    copy2(src, real_dst)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 131, in copy2\r\n    copystat(src, dst)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 103, in copystat\r\n    os.chflags(dst, st.st_flags)\r\nOSError: [Errno 1] Operation not permitted: '/tmp/pip-ZBkEd1-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'\r\n```"},"comment":{"url":"https://api.github.com/repos/eliangcs/http-prompt/issues/comments/220337522","html_url":"https://github.com/eliangcs/http-prompt/issues/1#issuecomment-220337522","issue_url":"https://api.github.com/repos/eliangcs/http-prompt/issues/1","id":220337522,"user":{"login":"georules","id":775628,"avatar_url":"https://avatars.githubusercontent.com/u/775628?v=3","gravatar_id":"","url":"https://api.github.com/users/georules","html_url":"https://github.com/georules","followers_url":"https://api.github.com/users/georules/followers","following_url":"https://api.github.com/users/georules/following{/other_user}","gists_url":"https://api.github.com/users/georules/gists{/gist_id}","starred_url":"https://api.github.com/users/georules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georules/subscriptions","organizations_url":"https://api.github.com/users/georules/orgs","repos_url":"https://api.github.com/users/georules/repos","events_url":"https://api.github.com/users/georules/events{/privacy}","received_events_url":"https://api.github.com/users/georules/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T14:16:32Z","updated_at":"2016-05-19T14:16:32Z","body":"I had (perhaps) a related problem.  I first did pip install without sudo (whoops) and then did it with sudo and got the following:\r\n\r\n```\r\nCollecting http-prompt\r\nRequirement already satisfied (use --upgrade to upgrade): click>=5.0 in /Library/Python/2.7/site-packages (from http-prompt)\r\nRequirement already satisfied (use --upgrade to upgrade): parsimonious>=0.6.2 in /Library/Python/2.7/site-packages (from http-prompt)\r\nRequirement already satisfied (use --upgrade to upgrade): httpie>=0.9.0 in /Library/Python/2.7/site-packages (from http-prompt)\r\nRequirement already satisfied (use --upgrade to upgrade): Pygments>=2.1.0 in /Library/Python/2.7/site-packages (from http-prompt)\r\nCollecting six>=1.10.0 (from http-prompt)\r\n  Downloading six-1.10.0-py2.py3-none-any.whl\r\nCollecting prompt-toolkit>=0.60 (from http-prompt)\r\n  Downloading prompt_toolkit-1.0.0-py2-none-any.whl (223kB)\r\n    100% |████████████████████████████████| 225kB 2.2MB/s\r\nRequirement already satisfied (use --upgrade to upgrade): requests>=2.3.0 in /Library/Python/2.7/site-packages (from httpie>=0.9.0->http-prompt)\r\nCollecting wcwidth (from prompt-toolkit>=0.60->http-prompt)\r\n  Downloading wcwidth-0.1.6-py2.py3-none-any.whl\r\nInstalling collected packages: six, wcwidth, prompt-toolkit, http-prompt\r\n  Found existing installation: six 1.4.1\r\n    DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.\r\n    Uninstalling six-1.4.1:\r\nException:\r\nTraceback (most recent call last):\r\n  File \"/Library/Python/2.7/site-packages/pip/basecommand.py\", line 215, in main\r\n    status = self.run(options, args)\r\n  File \"/Library/Python/2.7/site-packages/pip/commands/install.py\", line 317, in run\r\n    prefix=options.prefix_path,\r\n  File \"/Library/Python/2.7/site-packages/pip/req/req_set.py\", line 736, in install\r\n    requirement.uninstall(auto_confirm=True)\r\n  File \"/Library/Python/2.7/site-packages/pip/req/req_install.py\", line 742, in uninstall\r\n    paths_to_remove.remove(auto_confirm)\r\n  File \"/Library/Python/2.7/site-packages/pip/req/req_uninstall.py\", line 115, in remove\r\n    renames(path, new_path)\r\n  File \"/Library/Python/2.7/site-packages/pip/utils/__init__.py\", line 267, in renames\r\n    shutil.move(old, new)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 302, in move\r\n    copy2(src, real_dst)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 131, in copy2\r\n    copystat(src, dst)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 103, in copystat\r\n    os.chflags(dst, st.st_flags)\r\nOSError: [Errno 1] Operation not permitted: '/tmp/pip-YTkss5-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'\r\n```\r\n"}}