{"action":"created","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/3473","repository_url":"https://api.github.com/repos/pyinstaller/pyinstaller","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/3473/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/3473/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/3473/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/3473","id":315793025,"number":3473,"title":"Packaged program fails to execute - MACOSX","user":{"login":"JoshMB8","id":26301639,"avatar_url":"https://avatars0.githubusercontent.com/u/26301639?v=4","gravatar_id":"","url":"https://api.github.com/users/JoshMB8","html_url":"https://github.com/JoshMB8","followers_url":"https://api.github.com/users/JoshMB8/followers","following_url":"https://api.github.com/users/JoshMB8/following{/other_user}","gists_url":"https://api.github.com/users/JoshMB8/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshMB8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshMB8/subscriptions","organizations_url":"https://api.github.com/users/JoshMB8/orgs","repos_url":"https://api.github.com/users/JoshMB8/repos","events_url":"https://api.github.com/users/JoshMB8/events{/privacy}","received_events_url":"https://api.github.com/users/JoshMB8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-19T09:16:26Z","updated_at":"2018-04-20T15:18:10Z","closed_at":null,"author_association":"NONE","body":"Hi I'm currently having a problem with a program that I am packaging on MacOSX.\r\nI have successfully packaged the same program on a Windows 10 machine without any problems.\r\nI am packaging from Anaconda on both systems using the same environment.\r\nThe mac is OS High Sierra Version 10.13.4\r\n\r\nI seem to be able to package the program on the mac, creating the build and dist directories. But when I then go into the dist directory and try to run my 'main' (the Unix executable created). A terminal window appears runs for a moment and then returns the message: \"Failed to execute script main\"\r\nThe original code does run successfully without an issue so I am a bit stumped considering that I managed to get a packaged version to work on windows. \r\n\r\nHere is the run log for packaging:\r\n[PyInstaller_Run_Log.txt](https://github.com/pyinstaller/pyinstaller/files/1927418/PyInstaller_Run_Log.txt)\r\n\r\nHere is the Error I get when I run main:\r\n[Running_main.txt](https://github.com/pyinstaller/pyinstaller/files/1927425/Running_main.txt)\r\n\r\nAnd here is my warnmain file if it helps:\r\n[warnmain.txt](https://github.com/pyinstaller/pyinstaller/files/1927426/warnmain.txt)\r\n\r\nI may be missing something obvious but any help would be appreciated. \r\nI am aware that in the run-log there is a runtime error for matplotlib and python about python not being a framework but all solutions I have googled do not seem to make any difference.\r\n\r\nThanks, \r\nJosh."},"comment":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/comments/383129935","html_url":"https://github.com/pyinstaller/pyinstaller/issues/3473#issuecomment-383129935","issue_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/3473","id":383129935,"user":{"login":"tallforasmurf","id":1137018,"avatar_url":"https://avatars1.githubusercontent.com/u/1137018?v=4","gravatar_id":"","url":"https://api.github.com/users/tallforasmurf","html_url":"https://github.com/tallforasmurf","followers_url":"https://api.github.com/users/tallforasmurf/followers","following_url":"https://api.github.com/users/tallforasmurf/following{/other_user}","gists_url":"https://api.github.com/users/tallforasmurf/gists{/gist_id}","starred_url":"https://api.github.com/users/tallforasmurf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tallforasmurf/subscriptions","organizations_url":"https://api.github.com/users/tallforasmurf/orgs","repos_url":"https://api.github.com/users/tallforasmurf/repos","events_url":"https://api.github.com/users/tallforasmurf/events{/privacy}","received_events_url":"https://api.github.com/users/tallforasmurf/received_events","type":"User","site_admin":false},"created_at":"2018-04-20T15:18:10Z","updated_at":"2018-04-20T15:18:10Z","author_association":"CONTRIBUTOR","body":"The `error_log.txt` shown above ends in a Python traceback. That's typical; and if you look in the Console app, that's when you'd see the app started and then ended with error code 255.\r\n\r\nThat traceback pointed to \"cytoolz\", which [looks like a mess of Cython](https://github.com/pytoolz/cytoolz), which is very likely to be doing sneaky imports that PyInstaller can't see. Oh wait, there is [a hook for it](https://github.com/pyinstaller/pyinstaller/blob/develop/PyInstaller/hooks/hook-cytoolz.itertoolz.py). I wonder if it is out of date (\"Tested with cytoolz 0.9.0\"). Anyway how could uninstalling it help, doesn't your code need it?\r\n\r\nBut if we are back to the \"original\" error, build with `--debug` and look for a traceback, similar to what you showed in `error_log.txt`."}}
{"actor":{"display_login":"tallforasmurf"}}