New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS -noconsole resulting app wont launch #4804
Comments
Same issue then |
Hello |
Same here... |
This is likely a Tcl bug, but could also be related to file reading/writing and the OS X sandbox. Do not use —onefile; this will break everything on recent macOS builds as it tries to extract things to a tmp folder and run them from there, which the new mac security mode disallows. If you’re reading or writing files from relative paths, make sure that you change directories into something sane. Also, it is a good idea to sign (and ideally, notarize) your app so that it clears the macOS gatekeeper checks. The best answer though, unfortunately, is to not use Tkinter for OS X apps. I’ve found that pyside2 / Qt works much better / is better supported. |
This may be Issue #3820. It is useful in debugging this kind of case to put your code in a "try" and in the "except" write the traceback to a file and then open that file in your editor. See: #3820 (comment) |
Creating App bundle with '-w' on OSX - resulting app won't launch.
Pyinstaller: 3.5 and 3.6 (tried both)
Python: 3.7.5 (conda install)
Platform: OSX (Mojave 10.14.1)
When creating a mac application bundle (-w) option, there are not problems building, but the result app won't launch. In console mode, either --onefile or not, there are no problems. No warnings during build. Directly launching the executable out of the mac application bundle launches app without problems.
Tried launching app bundle directly from cmd line, and no error or messages are reported, but the app has the same (ie won't launch) behavior.
Problem seen both with my app, and simple test app (included below)
Checked 'when things go wrong' and couldn't find anything I didn't already try (except for trying latest dev version of pyinstaller).
The problem was only apparent when attempting to launch the .app bundle directly.
Simple test app:
The text was updated successfully, but these errors were encountered: