{"action":"created","issue":{"url":"https://api.github.com/repos/servo/servo/issues/13141","repository_url":"https://api.github.com/repos/servo/servo","labels_url":"https://api.github.com/repos/servo/servo/issues/13141/labels{/name}","comments_url":"https://api.github.com/repos/servo/servo/issues/13141/comments","events_url":"https://api.github.com/repos/servo/servo/issues/13141/events","html_url":"https://github.com/servo/servo/issues/13141","id":174335786,"number":13141,"title":"OSError: [Errno 13] Permission denied: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mach'","user":{"login":"Yoric","id":10190,"avatar_url":"https://avatars.githubusercontent.com/u/10190?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoric","html_url":"https://github.com/Yoric","followers_url":"https://api.github.com/users/Yoric/followers","following_url":"https://api.github.com/users/Yoric/following{/other_user}","gists_url":"https://api.github.com/users/Yoric/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoric/subscriptions","organizations_url":"https://api.github.com/users/Yoric/orgs","repos_url":"https://api.github.com/users/Yoric/repos","events_url":"https://api.github.com/users/Yoric/events{/privacy}","received_events_url":"https://api.github.com/users/Yoric/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/servo/servo/labels/A-build","name":"A-build","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-31T17:48:21Z","updated_at":"2016-09-01T08:34:30Z","closed_at":null,"body":"After a few months away, I just pulled and now, I get the following when attempting to build\r\n\r\n```sh\r\n$ ./mach build\r\nPip failed to execute properly: Exception:\r\nTraceback (most recent call last):\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/basecommand.py\", line 215, in main\r\n    status = self.run(options, args)\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/commands/install.py\", line 317, in run\r\n    prefix=options.prefix_path,\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_set.py\", line 742, in install\r\n    **kwargs\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_install.py\", line 831, in install\r\n    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_install.py\", line 1032, in move_wheel_files\r\n    isolated=self.isolated,\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/wheel.py\", line 346, in move_wheel_files\r\n    clobber(source, lib_dir, True)\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/wheel.py\", line 317, in clobber\r\n    ensure_dir(destdir)\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/utils/__init__.py\", line 83, in ensure_dir\r\n    os.makedirs(path)\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 157, in makedirs\r\n    mkdir(name, mode)\r\nOSError: [Errno 13] Permission denied: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mach'\r\n```\r\n\r\nFor some reason, `pip` seems to want to install (or use) mach in my `/opt/local`, which looks... weird.\r\n\r\nI'm using MacOS X 10.11.6 + MacPorts."},"comment":{"url":"https://api.github.com/repos/servo/servo/issues/comments/244012727","html_url":"https://github.com/servo/servo/issues/13141#issuecomment-244012727","issue_url":"https://api.github.com/repos/servo/servo/issues/13141","id":244012727,"user":{"login":"Yoric","id":10190,"avatar_url":"https://avatars.githubusercontent.com/u/10190?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoric","html_url":"https://github.com/Yoric","followers_url":"https://api.github.com/users/Yoric/followers","following_url":"https://api.github.com/users/Yoric/following{/other_user}","gists_url":"https://api.github.com/users/Yoric/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoric/subscriptions","organizations_url":"https://api.github.com/users/Yoric/orgs","repos_url":"https://api.github.com/users/Yoric/repos","events_url":"https://api.github.com/users/Yoric/events{/privacy}","received_events_url":"https://api.github.com/users/Yoric/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T08:34:30Z","updated_at":"2016-09-01T08:34:30Z","body":"After some digging, replacing\r\n\r\n```python\r\n            [pip, \"install\", \"-q\", \"-r\", req_path],\r\n```\r\n\r\nwith\r\n\r\n```python\r\n            [pip, \"install\", \"-q\", \"--user\", \"-r\", req_path],\r\n```\r\n\r\nseems to help.\r\n\r\nI have pip 8.1.2."}}
{"actor":{"display_login":"Yoric"}}