<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>&gt;&gt;&gt;import sys</div><div>&gt;&gt;&gt; sys.path.append(&#39;/Applications/QGIS_1_6.app/Contents/Resources/python&#39;)</div><div>&gt;&gt;&gt; from qgis.core import *</div>
<div><br></div><div>Traceback (most recent call last):</div><div>  File &quot;&lt;pyshell#2&gt;&quot;, line 1, in &lt;module&gt;</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>&gt;&gt;&gt;import sys</div><div>&gt;&gt;&gt; sys.path.insert(0, &#39;/Applications/QGIS_1_6.app/Contents/Resources/python&#39;)</div><div>&gt;&gt;&gt; from qgis.core import *</div>
<div>&gt;&gt;&gt;</div></div><div><br></div><div>Thanks a lot!</div><div><br></div></div>