1

I recently had to reinstall QGIS (version 2.2.0-9) and the raster menu is missing its tools. I understand that the GdalTools plugin must be installed and enabled. I have already installed the GDal complete framework package. When I try to load the Gdal Tools plguin, the following error message occurs:

enter image description here

A similar error message occurs when I go to 'manage and install plugins' and try to reinstall the openlayers plugin. The following message occurs:

enter image description here

Does anyone know how to install the "osgeo [python-gdal]" module mentioned?

I am using MacOsx 10.8.5.

3

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)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.