[gdal-dev] ImportError when importing gdal module with python 2.7 on Windows 7 64-bit

Even Rouault even.rouault at mines-paris.org
Wed Oct 3 11:26:26 PDT 2012


Le mercredi 03 octobre 2012 20:23:35, John Twilley a écrit :
> I an running Windows 7 64-bit and have downloaded and installed the
> following software:
> 
>  * Python 2.7.3 for x64 from http://www.python.org/getit
>  * GDAL 1.9 core and bindings for amd64 and py2.7 from
> http://www.gisinternals.com/sdk
>  * various modules including PyWin32 from
> http://www.lfd.uci.edu/~gohlke/pythonlibs/
> 
> When I run "python -mgdal" to test importing the gdal module, I get an
> traceback.  These are the final lines in the traceback:
> 
> 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.
> 
> gdal19.dll is in C:\Program Files\GDAL for what it's worth.
> 
> What do I need to do to make this work?

Make sure that the directory where gdal19.dll is installed is in the PATH.

> 
> Thanks in advance!
> 
> Jack.
> --
> mathuin at gmail dot com
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list