Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
PyQt on OS X
nshiell last edited by
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
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?
DanV last edited by
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:
hopefully this helps,
alpgokcek last edited by
Re: PyQt on OS X
resolved. If you are on a mac, make sure you install
opencv-pythonto avoid these errors.