{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1226","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1226/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1226/comments","events_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1226/events","html_url":"https://github.com/sphinx-doc/testing2/issues/1226","id":53295743,"number":1226,"title":"Sphinx runs my code, then crashes","user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/autodoc","name":"autodoc","color":"FFFFFF"},{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sphinx-doc/testing2/milestones/8","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/milestones/8/labels","id":920282,"number":8,"title":"1.2.x","description":null,"creator":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-01-03T06:03:52Z","updated_at":"2015-01-03T06:14:04Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-01-03T06:14:04Z","updated_at":"2015-01-03T06:14:05Z","closed_at":null,"body":"When running `make html` after setting up with `sphinx-apidoc` in autodoc mode, it seems that sphinx is running my code, when it opens up my GUI (from within the package). If I then close the GUI window, sphinx crashes like so: \n\n```\nusage: sphinx-build [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]       \n   or: sphinx-build --help [cmd1 cmd2 ...]\n   or: sphinx-build --help-commands\n   or: sphinx-build cmd --help\n\nerror: option -b not recognized\nmake: *** [html] Error 1\n```\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/1226\n- Originally reported by: Anonymous\n- Originally created at: 2013-07-29T23:10:00.786\n"},"comment":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/comments/68585014","html_url":"https://github.com/sphinx-doc/testing2/issues/1226#issuecomment-68585014","issue_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1226","id":68585014,"user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T06:14:05Z","updated_at":"2015-01-03T06:14:05Z","body":"_From Georg Brandl on 2013-09-16 08:47:03+00:00_\n\nYou probably forgot to guard module-level \"main\" code with\n\n\n```\n#!python\n\nif __name__ == '__main__':\n```"}}