[PyQt] package to fix dreaded 'fail to load platform plugin' on OSX sandbox

lloyd konneker bootch at nc.rr.com
Sat Jun 7 10:51:09 BST 2014


On OSX a sandboxed PyQt app (without libqcocoa statically compiled) is 
denied access to 3rd party shared libraries and Qt fails to find a 
platform plugin libqcocoa.dylib in the app bundle.

I put a package that solves the problem at 
https://github.com/bootchk/qtLibPathFacade

Typical use:
   
   from qtLibPathFacade.qtLibPathFacade import QtLibPathFacade
   
   def main(args):
       QtLibPathFacade.addBundledPluginPath()
       app = QApplication(args)

The code is intended to have no effect on other platforms.




More information about the PyQt mailing list