Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. PyQt on OS X
Forum Updated to NodeBB v4.3 + New Features

PyQt on OS X

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 3 Posters 2.2k 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.
  • nshiellN Offline
    nshiellN Offline
    nshiell
    wrote on last edited by
    #1

    I have written a nice desktop app in PyQt and it works well on Linux, I was investigating how easy it would be to get it running on a Mac.

    I have an OS X 10.12 Sierra build running
    I looked at the homebrew install path method
    I tried:

    brew install qt
    brew install sip
    brew install pyqt5
    

    When I try to execute my script I see:

    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
    

    Has anyone got any Ideas?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DanV
      wrote on last edited by
      #2

      Hey, my dev is pyqt on Mac... tooling around the internet I found that there is a brew install python option that force-includes pyqt... but I seem to have lost the link.

      That said, when it comes to python/node, I'm a fan of local environments and minimal brew usage. I downloaded Qt/sip/pyqt src and built everything inside a python venv and found it to be really easy.

      Just recently I hammered out the details so that I could get designer custom widgets working and logged my steps here:

      https://stackoverflow.com/questions/54097475/custom-qwidgets-how-do-i-build-get-the-pyqt5-plugin-for-qt-designer-on-mac

      hopefully this helps,
      Dan

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alpgokcek
        wrote on last edited by
        #3

        Re: PyQt on OS X

        resolved. If you are on a mac, make sure you install opencv-python-headless instead of opencv-python to avoid these errors.
        Source:
        https://github.com/ageitgey/face_recognition/issues/1041

        1 Reply Last reply
        1

        • Login

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