{"action":"created","issue":{"url":"https://api.github.com/repos/android-ndk/ndk/issues/3","repository_url":"https://api.github.com/repos/android-ndk/ndk","labels_url":"https://api.github.com/repos/android-ndk/ndk/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/android-ndk/ndk/issues/3/comments","events_url":"https://api.github.com/repos/android-ndk/ndk/issues/3/events","html_url":"https://github.com/android-ndk/ndk/issues/3","id":139759508,"number":3,"title":"ndk-gdb.py fails","user":{"login":"jfirebaugh","id":98601,"avatar_url":"https://avatars.githubusercontent.com/u/98601?v=3","gravatar_id":"","url":"https://api.github.com/users/jfirebaugh","html_url":"https://github.com/jfirebaugh","followers_url":"https://api.github.com/users/jfirebaugh/followers","following_url":"https://api.github.com/users/jfirebaugh/following{/other_user}","gists_url":"https://api.github.com/users/jfirebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/jfirebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfirebaugh/subscriptions","organizations_url":"https://api.github.com/users/jfirebaugh/orgs","repos_url":"https://api.github.com/users/jfirebaugh/repos","events_url":"https://api.github.com/users/jfirebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/jfirebaugh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jmgao","id":593995,"avatar_url":"https://avatars.githubusercontent.com/u/593995?v=3","gravatar_id":"","url":"https://api.github.com/users/jmgao","html_url":"https://github.com/jmgao","followers_url":"https://api.github.com/users/jmgao/followers","following_url":"https://api.github.com/users/jmgao/following{/other_user}","gists_url":"https://api.github.com/users/jmgao/gists{/gist_id}","starred_url":"https://api.github.com/users/jmgao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmgao/subscriptions","organizations_url":"https://api.github.com/users/jmgao/orgs","repos_url":"https://api.github.com/users/jmgao/repos","events_url":"https://api.github.com/users/jmgao/events{/privacy}","received_events_url":"https://api.github.com/users/jmgao/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/android-ndk/ndk/milestones/1","html_url":"https://github.com/android-ndk/ndk/milestones/r11b","labels_url":"https://api.github.com/repos/android-ndk/ndk/milestones/1/labels","id":1635601,"number":1,"title":"r11b","description":"Hotfix for any issues we find in r11.","creator":{"login":"DanAlbert","id":315852,"avatar_url":"https://avatars.githubusercontent.com/u/315852?v=3","gravatar_id":"","url":"https://api.github.com/users/DanAlbert","html_url":"https://github.com/DanAlbert","followers_url":"https://api.github.com/users/DanAlbert/followers","following_url":"https://api.github.com/users/DanAlbert/following{/other_user}","gists_url":"https://api.github.com/users/DanAlbert/gists{/gist_id}","starred_url":"https://api.github.com/users/DanAlbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanAlbert/subscriptions","organizations_url":"https://api.github.com/users/DanAlbert/orgs","repos_url":"https://api.github.com/users/DanAlbert/repos","events_url":"https://api.github.com/users/DanAlbert/events{/privacy}","received_events_url":"https://api.github.com/users/DanAlbert/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":2,"state":"open","created_at":"2016-03-10T02:04:50Z","updated_at":"2016-03-14T22:28:19Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2016-03-10T01:58:12Z","updated_at":"2016-03-14T22:28:19Z","closed_at":"2016-03-14T22:28:19Z","body":"Output:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"prebuilt/darwin-x86_64/bin/ndk-gdb.py\", line 38, in <module>\r\n    import gdbrunner\r\nImportError: No module named gdbrunner\r\n```\r\n\r\nThe relevant code is:\r\n\r\n```\r\nNDK_PATH = os.path.normpath(os.path.join(os.path.dirname(__file__), '../..'))\r\nsys.path.append(os.path.join(NDK_PATH, \"python-packages\"))\r\nimport gdbrunner\r\n```\r\n\r\n`ndk-gdb.py` is at `prebuilt/darwin-x86_64/bin/ndk-gdb.py`, so this adds `$NDK_PATH/prebuilt/darwin-x86_64/bin/../../python-packages`, i.e. `$NDK_PATH/prebuilt/python-packages`. The correct path seems to be `$NDK_PATH/python-packages`. If I change `'../..'` to `'../../..'`, it gets further (but still fails)."},"comment":{"url":"https://api.github.com/repos/android-ndk/ndk/issues/comments/196548171","html_url":"https://github.com/android-ndk/ndk/issues/3#issuecomment-196548171","issue_url":"https://api.github.com/repos/android-ndk/ndk/issues/3","id":196548171,"user":{"login":"jmgao","id":593995,"avatar_url":"https://avatars.githubusercontent.com/u/593995?v=3","gravatar_id":"","url":"https://api.github.com/users/jmgao","html_url":"https://github.com/jmgao","followers_url":"https://api.github.com/users/jmgao/followers","following_url":"https://api.github.com/users/jmgao/following{/other_user}","gists_url":"https://api.github.com/users/jmgao/gists{/gist_id}","starred_url":"https://api.github.com/users/jmgao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmgao/subscriptions","organizations_url":"https://api.github.com/users/jmgao/orgs","repos_url":"https://api.github.com/users/jmgao/repos","events_url":"https://api.github.com/users/jmgao/events{/privacy}","received_events_url":"https://api.github.com/users/jmgao/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T22:28:19Z","updated_at":"2016-03-14T22:28:19Z","body":"Fixed in r11b"}}