{"action":"opened","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1800","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1800/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1800/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1800/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1800","id":128811398,"number":1800,"title":"SyntaxError: Non-UTF-8 code ... but no encoding declared","user":{"login":"dessant","id":7513068,"avatar_url":"https://avatars.githubusercontent.com/u/7513068?v=3","gravatar_id":"","url":"https://api.github.com/users/dessant","html_url":"https://github.com/dessant","followers_url":"https://api.github.com/users/dessant/followers","following_url":"https://api.github.com/users/dessant/following{/other_user}","gists_url":"https://api.github.com/users/dessant/gists{/gist_id}","starred_url":"https://api.github.com/users/dessant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dessant/subscriptions","organizations_url":"https://api.github.com/users/dessant/orgs","repos_url":"https://api.github.com/users/dessant/repos","events_url":"https://api.github.com/users/dessant/events{/privacy}","received_events_url":"https://api.github.com/users/dessant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-26T12:47:32Z","updated_at":"2016-01-26T12:47:32Z","closed_at":null,"body":"After packaging the example from https://github.com/pyinstaller/pyinstaller/issues/1780#issue-127366372  with the develop branch, i get this error while running the executable:\r\n\r\n```python\r\n$ python ./dist/a/a.exe\r\n  File \"./dist/a/a.exe\", line 1\r\nSyntaxError: Non-UTF-8 code starting with '\\x90' in file ./dist/a/a.exe on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details\r\n```\r\n\r\nThe error is not present with 3.0 or 3.1, and encoding headers should not be needed for python 3 anyway, because utf-8 is the default.\r\n"}}