I assume that you use the QGIS version of KyngChaos
Have you installed the required packages ?
If you did, the osgeo
module is in:
/Library/Frameworks/GDAL.framework/Versions/1.11/Python/2.7/site-packages (or /Library/Frameworks/GDAL.framework/Versions/1.10/Python/2.7/site-packages
And there is a Python path configuration file (.pth) pointing to the module in:
/Library/Python/2.7/site-packages/gdal-py2.7.pth (or /Library/Python/2.7/site-packages/gdal-py2.7.pth)
The content of this file is:
import sys; sys.path.insert(0,'/Library/Frameworks/GDAL.framework/Versions/1.11/Python/2.7/site-packages')
or
import sys; sys.path.insert(0,'/Library/Frameworks/GDAL.framework/Versions/1.10/Python/2.7/site-packages')
To control, open the Terminal.app and type:
$ python
......
>>> import osgeo
>>> osgeo.__file__
'/Library/Frameworks/GDAL.framework/Versions/1.11/Python/2.7/site-packages/osgeo/__init__.pyc'
or the same in the Python console of QGIS
After, in the GDALTools parameters:
- for binaries, put: /Library/Frameworks/GDAL.framework/Programs:/usr/bin
- for the path of the Python modules, put /Library/Frameworks/GDAL.framework/Versions/1.11/Python/2.T/site-packages (or 1.10)
- for the help files, put /Library/Frameworks/GDAL.framework/Versions/1.11/Resources/doc/gdal (or 1.10)
Best 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:
and verify the contents are:
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