question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Qt Platform plugin "cocoa" not found error while trying to run the web cam example.

See original GitHub issue

First 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:closed
  • Created 4 years ago
  • Comments:14

github_iconTop GitHub Comments

122reactions
pacjin79commented, Feb 5, 2020

resolved. If you are on a mac, make sure you install opencv-python-headless instead of opencv-python to avoid these errors.

8reactions
puresproutcommented, Mar 9, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found