[Qgis-developer] Qgis standalone app, sip version and API problems under mac os x

Luca Mandolesi mandoluca at gmail.com
Wed May 11 12:38:24 EDT 2011


>
>  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.
>

Ah, ok!

>>>import sys
>>> sys.path.append('/Applications/QGIS_1_6.app/Contents/Resources/python')
>>> from qgis.core import *

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    from qgis.core import *
RuntimeError: the sip module implements API v7.0 to v7.1 but the qgis.core
module requires API v8.0


>>>import sys
>>> sys.path.insert(0,
'/Applications/QGIS_1_6.app/Contents/Resources/python')
>>> from qgis.core import *
>>>

Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110511/4d8ed49e/attachment-0001.html


More information about the Qgis-developer mailing list