Thursday 14 September 2017

gdal - OSX 10.9 + QGIS 2.0.1 - Missing osgeo module


Running the following:



  • QGIS 2.0.1 (via Kyngchaos)

  • OSX 10.9

  • GDAL/OGR 1.10.1 (via Homebrew).


Recently, I've become unable to use the OpenLayers plugin, which is complaining that I'm missing the osgeo module.


Has anyone else dealt with this?




Answer





  • If you want to use the Kyngchaos's version of QGIS, you should use his version of GDAL/OGR (Framework in /Library/Frameworks/GDAL.framework). This version also installs the Python osgeo module (in /Library/Python/2.7/site-packages because QGIS use the Apple Python).




  • If you want to use the Homebrew version of GDAL/OGR (library in /usr/local/Cellar with symbolics links in /usr/local/bin) you should install the osgeo Python module in /Library/Python/2.7/site-packages without Homebrew because the Kyngchaos's version of QGIS does not recognize the Homebrew Python version, or use the Homebrew version of QGIS.




You can't mix these two solutions (unless you know UNIX very, very well)



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...