Thursday, 5 October 2017

QGIS says "osgeo [python-gdal]" isn't installed on Mac?


I know similar questions have been asked (like Missing QGIS raster menu tools - '"osgeo [python-gdal]" module is missing') -- but I'm encountering a unique problem. I installed GDAL complete 1.11 from KyngChaos, but when I open QGIS, I get the following error message:


screen shot


Interestingly enough, when I look at the Libraries directory in Finder, there isn't a subfolder called Frameworks. Which tells me something went wrong.


I'm running Mac OS X 10.9.2.



Answer



There is currently a small flaw in the GDAL Complete install for 1.11. You can fix it yourself by editing the following file:


 /Library/Python/2.7/site-packages/gdal-py2.7.pth


and verify the contents are:


import sys; sys.path.insert(0,'/Library/Frameworks/GDAL.framework/Versions/1.11/Python/2.7/site-packages')

If it is still referencing the 1.10 install, which you may not have, change it to 1.11 and save the file. You will probably need admin rights to do this. Programs like BBEdit and TextWrangler (free) can handle the file permissions.


See: http://osgeo-org.1560.x6.nabble.com/Install-problem-on-OS-X-10-9-td5143122.html


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