Open jluethi opened 5 years ago
I am guessing this is related to Python GUI support on macOS. Might be related to macOS threading and the Cocoa event loop (see also #23)?
Things to try:
pythonw
instead of python
.Thanks @ctrueden ! This currently isn't a priority for me, as our production runs on Windows. Just wanted to document the issue for the moment. If I get to check this out later, I'll report back. Thank you!
I have an application using pyimagej for image processing and want to make a very simple interface for the users to provide some inputs. I am using tkinter for this gui. When I initialize pyimagej either in that script or one of its imports, it fails to produce the gui, but does not crash. It just shows the following message:
2019-05-31 16:47:01.581 python[27137:9099880] In -[NSApplication(NSQuietSafeQuit) _updateCanQuitQuietlyAndSafely], _LSSetApplicationInformationItem(NSCanQuitQuietlyAndSafely) returned error -50
Here is some dummy example code that reproduces this:
Without the imagej initialization, it runs fine. It happens both with a maven initialization and when wrapping the local Fiji installation. This problem does not reproduce on Windows for me (there, the gui comes up as expected) and I don't know whether it reproduces on Linux. I do get this issue on my Mac running macOS 10.14.5.