Qt Platform plugin "cocoa" not found error while trying to run the web cam example.
See original GitHub issueFirst of all, thank you for this great library!
- face_recognition version: latest
- Python version: 3.5.6
- Operating System: macOS Catalina 10.15.1
Description
Trying to run the webcam example on my mac using command python webcam_recongnition.py
.
keep getting this error on command line
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.
I tried to install mac version of PT platform but the command gave me an error about ‘more than 1 binary’.
any advise would be much appreciated!
Issue Analytics
- State:
- Created 4 years ago
- Comments:14
Top Results From Across the Web
Qt could not find the platform plugin cocoa - Stack Overflow
[qt.qpa.plugin] Could not find the Qt platform plugin "cocoa" in "" This application failed to start because no ...
Read more >qt.qpa.plugin: could not find the qt platform plugin "cocoa" in "" - You ...
This fixed my problem. You can try it. pip install opencv-python-headless. These packages do not contain any GUI functionality. They are smaller and...
Read more >How to solve "Could not load the Qt platform plugin "cocoa" in ...
app with Alias Mode in Py2App the app works fine, however, when I create the bundled version of the app, the app tries...
Read more >Vaa3D and Vaa3D-Neuron: help - NITRC
I am trying to use the BrainAligner function but cannot seem to get it to work. ... Mac OS X Cocoa, but the...
Read more >homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter
aacgain 1.8 AAC‑supporting version of mp3gain
aalib 1.4rc5 Portable ASCII art graphics library
aamath 0.3 Renders mathematical expressions as ASCII art
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
resolved. If you are on a mac, make sure you install
opencv-python-headless
instead ofopencv-python
to avoid these errors.you all should not install ‘opencv-contrib-python-headless’ package because this is for server. Opening the window with cv2.imshow does not seem to be a problem, but the closing button does not work.
So, you should install previous version.
pip3 install --user opencv-contrib-python==4.1.2.30
The close button does work well.