Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in “"
QtWS25 Last Chance

qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in “"

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 3 Posters 7.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mmontazerian
    wrote on last edited by
    #1

    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

    JonBJ 1 Reply Last reply
    0
    • M mmontazerian

      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

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mmontazerian
        wrote on last edited by
        #3

        Many thank I manage to resolved my issue by running the following command;

        pip install opencv-python==4.1.2.30

        1 Reply Last reply
        1
        • S Offline
          S Offline
          Sam Ling
          wrote on last edited by
          #4

          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 all

          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.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved