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

Tamas Szekeres szekerest at gmail.com
Wed May 4 17:17:00 EDT 2011


Have you added C:\Program Files\GDAL to the *PATH* environment variable?

Best regards,

Tamas



2011/5/4 Gregory Yetman <gyetman at ciesin.columbia.edu>

> Hi,
>
> 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:
>
>
> http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1400-x64-gdal-1-8-mapserver-5-6.zip
>
> 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
> <module>
>    _gdal = swig_import_helper()
>  File "C:\Python27\Lib\site-packages\osgeo\__init__.py", line 17, in
> swig_import_helper
>    _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:
>
> C:\Python27\Lib\site-packages;C:\Python27\Lib\site-packages\osgeo;C:\Program
> Files\GDAL
>
> 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.
>
> TIA,
>
> Greg
>
>
>
> --
> Gregory Yetman
> CIESIN, Columbia University
> +1-845-365-8982
> http://www.ciesin.columbia.edu
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110504/145a84dc/attachment.html


More information about the gdal-dev mailing list