qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in “"
-
Hi all,
Is there anyone can help me with the following error;
qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Abort trap: 6
-
@mmontazerian
Hello and welcome.There are a lot of hits Googling for:
Could not find the Qt platform plugin "cocoa" in ""
e.g.
https://stackoverflow.com/questions/54297627/qt-could-not-find-the-platform-plugin-cocoa
https://stackoverflow.com/questions/60042568/this-application-failed-to-start-because-no-qt-platform-plugin-could-be-initiali
and others -
Many thank I manage to resolved my issue by running the following command;
pip install opencv-python==4.1.2.30
-
my laptop is MacOS Sonoma system with Apple silicon chip M1
after I install PyQt6 and the dependencies, I still get the following error message and can not work at allqt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.