Reputation: 313
I tried to use pyinstaller and fbs both to package my python script (just one) into a standalone app. They both built with no errors but when I try running the binary pyinstaller gave this message:
/Users/mac/Desktop/mtime/dist/main/main ; exit;
objc[53699]: Class RunLoopModeTracker is implemented in both /Users/mac/Desktop/mtime/dist/main/libQt5Core.5.dylib (0x1081dba80) and /Users/mac/miniconda3/envs/chessapp/lib/libQt5Core.5.9.7.dylib (0x10e377a80). One of the two will be used. Which one is undefined.
objc[53699]: Class NotificationReceiver is implemented in both /Users/mac/Desktop/mtime/dist/main/libQt5Widgets.5.dylib (0x1079691b8) and /Users/mac/miniconda3/envs/chessapp/lib/libQt5Widgets.5.9.7.dylib (0x10db051b8). One of the two will be used. Which one is undefined.
QObject::moveToThread: Current thread (0x7f8b98f27c80) is not the object's thread (0x7f8b9b08ff30).
Cannot move to target thread (0x7f8b98f27c80)
You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
This application failed to start because it could not find or load the Qt platform plugin "cocoa"
in "".
Available platform plugins are: cocoa, minimal, offscreen.
Reinstalling the application may fix this problem
FBS failed as well.
Two slightly unusual things I know I did was I used sqlalchemy in my script and I use conda.
Does anyone know a possible solution? If sqlalchemy doesn't work well with these tools I'm open to using different methods for persistence (is that the term?) for my little script if necessary too.
Im compiling on a mac btw.
Upvotes: 0
Views: 134
Reputation: 313
It was due to conda env messing up the build. Just create a venv is fine (you can use conda to select a python version)
Upvotes: 1