{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/524","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/524/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/524/events","html_url":"https://github.com/bazelbuild/bazel/pull/524","id":112725112,"number":524,"title":"Ignore the empty path when searching for python interpetor","user":{"login":"srobertson","id":25101,"avatar_url":"https://avatars.githubusercontent.com/u/25101?v=3","gravatar_id":"","url":"https://api.github.com/users/srobertson","html_url":"https://github.com/srobertson","followers_url":"https://api.github.com/users/srobertson/followers","following_url":"https://api.github.com/users/srobertson/following{/other_user}","gists_url":"https://api.github.com/users/srobertson/gists{/gist_id}","starred_url":"https://api.github.com/users/srobertson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srobertson/subscriptions","organizations_url":"https://api.github.com/users/srobertson/orgs","repos_url":"https://api.github.com/users/srobertson/repos","events_url":"https://api.github.com/users/srobertson/events{/privacy}","received_events_url":"https://api.github.com/users/srobertson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-22T03:37:26Z","updated_at":"2015-10-22T03:41:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bazelbuild/bazel/pulls/524","html_url":"https://github.com/bazelbuild/bazel/pull/524","diff_url":"https://github.com/bazelbuild/bazel/pull/524.diff","patch_url":"https://github.com/bazelbuild/bazel/pull/524.patch"},"body":"Bazel mistakes local packages named `python` (i.e. python/BUILD) for the python interpreter when it searches the path. Which causes permission issues.\r\n\r\nFor example I get the following exception when using a docker rule\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"bazel-out/host/bin/tools/build_defs/docker/build_layer\", line 104, in <module>\r\n    Main()\r\n  File \"bazel-out/host/bin/tools/build_defs/docker/build_layer\", line 96, in Main\r\n    os.execv(program, args)\r\nOSError: [Errno 13] Permission denied: 'python'\r\n```\r\n\r\nThis patch fixes it."},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/150097858","html_url":"https://github.com/bazelbuild/bazel/pull/524#issuecomment-150097858","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/524","id":150097858,"user":{"login":"googlebot","id":5384588,"avatar_url":"https://avatars.githubusercontent.com/u/5384588?v=3","gravatar_id":"","url":"https://api.github.com/users/googlebot","html_url":"https://github.com/googlebot","followers_url":"https://api.github.com/users/googlebot/followers","following_url":"https://api.github.com/users/googlebot/following{/other_user}","gists_url":"https://api.github.com/users/googlebot/gists{/gist_id}","starred_url":"https://api.github.com/users/googlebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googlebot/subscriptions","organizations_url":"https://api.github.com/users/googlebot/orgs","repos_url":"https://api.github.com/users/googlebot/repos","events_url":"https://api.github.com/users/googlebot/events{/privacy}","received_events_url":"https://api.github.com/users/googlebot/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T03:41:18Z","updated_at":"2015-10-22T03:41:18Z","body":"CLAs look good, thanks!\n\n<!-- ok -->"}}