<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Did you install PyQt5 separately from QGIS?  It's included in the QGIS app, but if you append QGIS to the python path python will not see the QGIS PyQt5.<div class=""><br class=""></div><div class="">Try an insert instead:</div><div class=""><br class=""></div><div class=""><div dir="ltr" class=""><div class=""><div class="">sys.path.insert(0,'/Applications/QGIS3.app/Contents/Resources/python/')</div><div class="">sys.path.insert(0,'/Applications/QGIS3.app/Contents/Resources/python/plugins')</div></div></div></div><div class=""><div dir="ltr" class=""><div class=""><div class=""><br class=""></div></div></div></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 3, 2018, at 5:17 PM, DT <<a href="mailto:dmofot@gmail.com" class="">dmofot@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">OSX, version 10.13.6<div class="">Python 3.6.6</div><div class="">QGIS 3.2.1</div><div class=""><br class=""></div><div class="">QGIS itself is working fine with no errors, but I'm trying to write a standalone python script that utilizes a QGIS3 tool and I keep running into Qt errors.  This works fine:</div><div class=""><div class=""><br class=""></div><div class="">import os</div><div class="">import sys</div><div class="">sys.path.append('/Applications/QGIS3.app/Contents/Resources/python/')</div><div class="">sys.path.append('/Applications/QGIS3.app/Contents/Resources/python/plugins')</div><div class="">from qgis.core import *</div></div><div class=""><br class=""></div><div class="">But as soon as I try to do:</div><div class=""><br class=""></div><div class="">app = QgsApplication([],True)<br class=""></div><div class=""><br class=""></div><div class="">I get the following error:</div><div class=""><br class=""></div><div class=""><div class="">>>> app = QgsApplication([],True)</div><div class="">This application failed to start because it could not find or load the Qt platform plugin "cocoa"</div><div class="">in "".</div><div class=""><br class=""></div><div class="">Reinstalling the application may fix this problem.</div><div class="">Abort trap: 6</div></div><div class=""><br class=""></div><div class="">Anybody have an idea where I'm going wrong?  My Google fu has only managed to turn up setting paths for Windows and not OSX.  Thanks!</div><div class=""><br class=""></div><div class="">DT</div></div>
_______________________________________________<br class="">Qgis-user mailing list<br class=""><a href="mailto:Qgis-user@lists.osgeo.org" class="">Qgis-user@lists.osgeo.org</a><br class="">List info: https://lists.osgeo.org/mailman/listinfo/qgis-user<br class="">Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user</div></blockquote></div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; font-size: 14px; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal;"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div class="">-----</div><div class="">William Kyngesburye <kyngchaos*at*kyngchaos*dot*com></div><div class=""><a href="http://www.kyngchaos.com/" class="">http://www.kyngchaos.com/</a></div><div class=""><br class=""></div><div class="">"Mon Dieu! but they are all alike.  Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings.  And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence....</div><div class=""><br class=""></div><div class="">- the wisdom of Tarzan</div><br class="Apple-interchange-newline"></span></span>
</div>
<br class=""></div></body></html>