About Form Form acquisition value and setting worthy method

2022-12-24   ES  

Running program report errors:

objc[18135]: Class QMacAutoReleasePoolTracker is implemented in both /Users/zheyima/anaconda3/envs/IR_camera/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x119b8f060) and /Users/zheyima/anaconda3/envs/IR_camera/lib/python3.6/site-packages/cv2/.dylibs/QtCore (0x125015700). One of the two will be used. Which one is undefined.
objc[18135]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /Users/zheyima/anaconda3/envs/IR_camera/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x119b8f0d8) and /Users/zheyima/anaconda3/envs/IR_camera/lib/python3.6/site-packages/cv2/.dylibs/QtCore (0x125015778). One of the two will be used. Which one is undefined.
objc[18135]: Class KeyValueObserver is implemented in both /Users/zheyima/anaconda3/envs/IR_camera/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x119b8f100) and /Users/zheyima/anaconda3/envs/IR_camera/lib/python3.6/site-packages/cv2/.dylibs/QtCore (0x1250157a0). One of the two will be used. Which one is undefined.
objc[18135]: Class RunLoopModeTracker is implemented in both /Users/zheyima/anaconda3/envs/IR_camera/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x119b8f150) and /Users/zheyima/anaconda3/envs/IR_camera/lib/python3.6/site-packages/cv2/.dylibs/QtCore (0x1250157f0). One of the two will be used. Which one is undefined.
QObject::moveToThread: Current thread (0x7ff7d20164a0) is not the object’s thread (0x7ff7d37f8490).
Cannot move to target thread (0x7ff7d20164a0)
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.
qt.qpa.plugin: Could not load the Qt platform plugin “cocoa” in “/Users/zheyima/anaconda3/envs/IR_camera/lib/python3.6/site-packages/cv2/qt/plugins” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: cocoa, minimal, offscreen, webgl.

The main reason is that QT conflict, the program does not know which one runs.

either specifies one, and because I am directly managed by Anaconda, I chose the simplest and rude way:
First uninstall the GUI version of OpenCV, and then install the GUI version without the GUI version

pip uninstall opencv-python
pip install opencv-python-headless

Re -load the environment and make great achievements.

  1. https://stackoverflow.com/questions/25188153/this-application-failed-to-start-because-it-could-not-find-or-load-the-qt-platfo

source

Related Posts

HDU 1028 IGNATIUS and the Princess III mother function water question, everyone pays attention, I want to start the mother function ~~ lionel

Retis distributed lock (optimistic lock) Nicolos based on LUA script

Comparison of C/C ++ LOG library

About Form Form acquisition value and setting worthy method

About Form Form acquisition value and setting worthy method

Random Posts

CoinitializeSecurity

OpenGL Linux installation and configuration one -key compilation+operation

Protective measures for vulnerabilities of Android application

Repeated work: Be alert to the emotet virus email during the heavy insurance period

PYQT5 Chinese File Dialog box QFILEDIALOG The solution to collapse after calling