[gdal-dev] Registering GDAL 1.8 64-bit with Python 2.7 on Windows 7

Gregory Yetman gyetman at ciesin.columbia.edu
Wed May 4 14:59:55 EDT 2011


I'm pulling my hair out over what should be a simple problem. I'm trying 
to use the pre-compiled GDAL library and bindings published here:


To implement a pure 64-bit Python and GDAL combo (I already have numpy 
64-bit working with python 2.7 64-bit).

GDAL is working on on the system, gdalinfo --version returns:

GDAL 1.8.0, released 2011/01/12

and python works fine as well. I installed the bindings with no error 
messages and rebooted, but if I try and import gdal I get:

 >>> from osgeo import gdal
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "C:\Python27\Lib\site-packages\osgeo\__init__.py", line 21, in 
     _gdal = swig_import_helper()
   File "C:\Python27\Lib\site-packages\osgeo\__init__.py", line 17, in 
     _mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: DLL load failed: The specified module could not be found.

I created a PYTHONPATH system variable and set it to:


to no avail.

Any suggestions?

I'm trying to get the 64 bit versions working because when I try and 
open a large raster as an array using
DatasetReadAsArray I get an error; suggestions on another mailing list 
were that this was because the 32 bit library can only handle rasters up 
to 2GB and the ones I am working with are larger than that.



Gregory Yetman
CIESIN, Columbia University

More information about the gdal-dev mailing list