Hi All!<br><br>I'm trying to import qgis into python outside the standard qgis python console. I've set ht PYTHONPATH like the following:<br><br><blockquote>export PYTHONPATH=${PYTHONPATH}:"/Applications/qgis1.0.0.app/Contents/MacOS/share/qgis/python/"<br>

</blockquote>Then I fire up a fresh terminal, open ipython and try to import it getting the following:<br><br><blockquote>In [3]: import qgis.core<br>---------------------------------------------------------------------------<br>

ImportError                               Traceback (most recent call last)<br><br>/Users/dreamessence/<ipython console> in <module>()<br><br>ImportError: dlopen(/Applications/qgis1.0.0.app/Contents/MacOS/share/qgis/python/qgis/core.so, 2): Library not loaded: @executable_path/lib/libqgis_core.1.0.dylib<br>

  Referenced from: /Applications/qgis1.0.0.app/Contents/MacOS/share/qgis/python/qgis/core.so<br>  Reason: image not found<br><br>In [4]: <br></blockquote><br>Any suggestions/ideas why it's happening? How could I make it work? If I'm on the python console within qgis it works fine.<br>

<br>I'm on MacOS 10.5 and qGIS-1.0.0<br><br>Thank you very much,<br><br>]d[<br clear="all"><br>-- <br>============================================================<br>Daniel Arribas-Bel<br>Url: <a href="http://darribas.org">darribas.org</a><br>

Mail: <a href="mailto:darribas@unizar.es">darribas@unizar.es</a><br><br>Department of Economic Analysis<br>Universidad de Zaragoza (<a href="http://www.unizar.es">www.unizar.es</a>)<br><br>GeoDa Center for Geospatial Analysis and Computation (<a href="http://geodacenter.asu.edu">geodacenter.asu.edu</a>)<br>

Arizona State University (USA)<br>============================================================<br><br>