<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> The important part is that the QGIS path is at the top of the sys.path list, so python finds the bundled pyqt before any pyqt installed in site-packages.<br>
</blockquote><div> </div><div>Ah, ok! </div><div><br></div><div><div>>>>import sys</div><div>>>> sys.path.append('/Applications/QGIS_1_6.app/Contents/Resources/python')</div><div>>>> from qgis.core import *</div>
<div><br></div><div>Traceback (most recent call last):</div><div> File "<pyshell#2>", line 1, in <module></div><div> from qgis.core import *</div><div>RuntimeError: the sip module implements API v7.0 to v7.1 but the qgis.core module requires API v8.0</div>
</div><div><br></div><div><br></div><div><div>>>>import sys</div><div>>>> sys.path.insert(0, '/Applications/QGIS_1_6.app/Contents/Resources/python')</div><div>>>> from qgis.core import *</div>
<div>>>></div></div><div><br></div><div>Thanks a lot!</div><div><br></div></div>