【发布时间】:2016-08-05 22:31:11
【问题描述】:
我正在尝试使用py2app 和python3 制作一个独立的应用程序:
python3 setup.py py2app --packages=PyQt5
一切似乎都很好。但是当启动应用程序时,Mac 控制台中会捕获以下错误:
14/04/16 13:27:27,688 app[98583]: objc[98583]: Class RunLoopModeTracker
is implemented in both
/Users/muammar/github/app/dist/app.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore
and /usr/local/Cellar/qt5/5.6.0/lib/QtCore.framework/Versions/5/QtCore.
One of the two will be used. Which one is undefined.
以下课程也报告了这一点:NotificationReceiver、QCocoaPageLayoutDelegate 等。
我在其他地方读到,将qt.conf 文件放在应用程序as suggested here 旁边应该可以解决问题。但实际上它在我的情况下不起作用。有人知道如何避免这个问题吗?
【问题讨论】: