{"action":"created","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1747","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1747/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1747/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1747/events","html_url":"https://github.com/pyinstaller/pyinstaller/pull/1747","id":124550734,"number":1747,"title":"NameError: name 'sys' is not defined","user":{"login":"alanscarpa","id":8715611,"avatar_url":"https://avatars.githubusercontent.com/u/8715611?v=3","gravatar_id":"","url":"https://api.github.com/users/alanscarpa","html_url":"https://github.com/alanscarpa","followers_url":"https://api.github.com/users/alanscarpa/followers","following_url":"https://api.github.com/users/alanscarpa/following{/other_user}","gists_url":"https://api.github.com/users/alanscarpa/gists{/gist_id}","starred_url":"https://api.github.com/users/alanscarpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanscarpa/subscriptions","organizations_url":"https://api.github.com/users/alanscarpa/orgs","repos_url":"https://api.github.com/users/alanscarpa/repos","events_url":"https://api.github.com/users/alanscarpa/events{/privacy}","received_events_url":"https://api.github.com/users/alanscarpa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-01T16:58:08Z","updated_at":"2016-01-01T20:05:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/pulls/1747","html_url":"https://github.com/pyinstaller/pyinstaller/pull/1747","diff_url":"https://github.com/pyinstaller/pyinstaller/pull/1747.diff","patch_url":"https://github.com/pyinstaller/pyinstaller/pull/1747.patch"},"body":"Fixes this error:\r\n```\r\nFile \"C:\\Python27\\lib\\site-packages\\pyinstaller-3.1.dev0+9826a1c-py2.7.egg\\PyInstaller\\building\\build_main.py\", line 701, in build\r\n    exec(text, spec_namespace)\r\n  File \"<string>\", line 12, in <module>\r\nNameError: name 'sys' is not defined\r\n```\r\nThis occurs when running --onefile"},"comment":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/comments/168335148","html_url":"https://github.com/pyinstaller/pyinstaller/pull/1747#issuecomment-168335148","issue_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1747","id":168335148,"user":{"login":"alanscarpa","id":8715611,"avatar_url":"https://avatars.githubusercontent.com/u/8715611?v=3","gravatar_id":"","url":"https://api.github.com/users/alanscarpa","html_url":"https://github.com/alanscarpa","followers_url":"https://api.github.com/users/alanscarpa/followers","following_url":"https://api.github.com/users/alanscarpa/following{/other_user}","gists_url":"https://api.github.com/users/alanscarpa/gists{/gist_id}","starred_url":"https://api.github.com/users/alanscarpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanscarpa/subscriptions","organizations_url":"https://api.github.com/users/alanscarpa/orgs","repos_url":"https://api.github.com/users/alanscarpa/repos","events_url":"https://api.github.com/users/alanscarpa/events{/privacy}","received_events_url":"https://api.github.com/users/alanscarpa/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T20:05:42Z","updated_at":"2016-01-01T20:05:42Z","body":"@htgoebel Yea, I'm still new to Pyinstaller and Python.  I was using Pyinstaller 2.~ and it was working fine.  But when I upgraded to 3.0, I began getting the error listed above.  "}}