PyQt 5 loading two sets of Qt binaries and could not find or load the Qt platform plugin "cocoa" in "".

23 views
Skip to first unread message

zhenguo Zhao

unread,
May 16, 2019, 3:36:43 AM5/16/19
to PyInstaller

HELP:

Last login: Wed May 15 19:18:24 on ttys000

/Users/zhaozhenguo/PycharmProjects/firsttry/dist/hi/hi ; exit;

(base) Zhenguo-ZhaodeMacBook-Air:~ zhaozhenguo$ /Users/zhaozhenguo/PycharmProjects/firsttry/dist/hi/hi ; exit;

objc[2169]: Class RunLoopModeTracker is implemented in both /Users/zhaozhenguo/PycharmProjects/firsttry/dist/hi/libQt5Core.5.dylib (0x105570a80) and /Users/zhaozhenguo/anaconda3/lib/libQt5Core.5.9.7.dylib (0x10ae2ca80). One of the two will be used. Which one is undefined.

objc[2169]: Class NotificationReceiver is implemented in both /Users/zhaozhenguo/PycharmProjects/firsttry/dist/hi/libQt5Widgets.5.dylib (0x104cfe1b8) and /Users/zhaozhenguo/anaconda3/lib/libQt5Widgets.5.9.7.dylib (0x10a5ba1b8). One of the two will be used. Which one is undefined.

QObject::moveToThread: Current thread (0x7f86d4438170) is not the object's thread (0x7f86d46156c0).

Cannot move to target thread (0x7f86d4438170)


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.

Abort trap: 6

logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.


[Process completed]


Reply all
Reply to author
Forward
0 new messages