{"action":"created","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1184","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1184/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1184/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1184/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1184","id":56706313,"number":1184,"title":"Single-file executable doesn't run","user":{"login":"Zenadix","id":7153514,"avatar_url":"https://avatars.githubusercontent.com/u/7153514?v=3","gravatar_id":"","url":"https://api.github.com/users/Zenadix","html_url":"https://github.com/Zenadix","followers_url":"https://api.github.com/users/Zenadix/followers","following_url":"https://api.github.com/users/Zenadix/following{/other_user}","gists_url":"https://api.github.com/users/Zenadix/gists{/gist_id}","starred_url":"https://api.github.com/users/Zenadix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zenadix/subscriptions","organizations_url":"https://api.github.com/users/Zenadix/orgs","repos_url":"https://api.github.com/users/Zenadix/repos","events_url":"https://api.github.com/users/Zenadix/events{/privacy}","received_events_url":"https://api.github.com/users/Zenadix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/support","name":"support","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-05T18:04:36Z","updated_at":"2015-02-06T15:04:15Z","closed_at":null,"body":"I originally posted this [on Stack Overflow][2].\r\n\r\nI'm trying to create a single-file executable for Windows from a Python application, using `pyinstaller`. \r\n\r\nI downloaded the experimental Python 3 branch of `pyinstaller` from [here][1] (scroll down and you'll find the download link, the file is `py3.zip`). And I installed it using `python setup.py install`. **UPDATE: I tried it with the Python 2 version too, and ran into the same problem.**\r\n\r\nThen I created a test python script called `test.py`, with the following content:\r\n\r\n    print('Hello, World!')\r\n\r\nAfterwards, I ran the following command to create a single-file executable:\r\n\r\n    pyinstaller --onefile test.py\r\n\r\nThe command succeeded, and I verified that the file `dist/test.exe` had been generated. However, when I try to run it, all I get is an empty `cmd` window. Nothing ever appears, and the program never terminates. It just hangs there forever, until I force close it.\r\n\r\n![pyinstaller](https://cloud.githubusercontent.com/assets/7153514/6065955/26af0f82-ad37-11e4-81bb-854351728697.png)\r\n\r\nCalling `pyinstaller test.py` (without the `--onefile` option) works fine.\r\n\r\n**UPDATE:** I just tested it under Python 2 (using the normal PyInstaller version), and I ran into the same problem. So, this is not just a Python 3 problem.\r\n\r\n  [1]: https://github.com/pyinstaller/pyinstaller/wiki\r\n  [2]: http://stackoverflow.com/questions/28349359/python-3-and-pyinstaller-single-file-executable-doesnt-run"},"comment":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/comments/73249599","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1184#issuecomment-73249599","issue_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1184","id":73249599,"user":{"login":"matysek","id":527280,"avatar_url":"https://avatars.githubusercontent.com/u/527280?v=3","gravatar_id":"","url":"https://api.github.com/users/matysek","html_url":"https://github.com/matysek","followers_url":"https://api.github.com/users/matysek/followers","following_url":"https://api.github.com/users/matysek/following{/other_user}","gists_url":"https://api.github.com/users/matysek/gists{/gist_id}","starred_url":"https://api.github.com/users/matysek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matysek/subscriptions","organizations_url":"https://api.github.com/users/matysek/orgs","repos_url":"https://api.github.com/users/matysek/repos","events_url":"https://api.github.com/users/matysek/events{/privacy}","received_events_url":"https://api.github.com/users/matysek/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T15:04:15Z","updated_at":"2015-02-06T15:04:15Z","body":"Please try with option --noupx"}}