Monday 12 June 2017

gdal ImportError in python on Windows


Trying to import gdal for Python 2.7.3 on Windows XP:


>>> import gdal
Traceback (most recent call last):
File "", line 1, in
File "C:\Python27\lib\site-packages\gdal.py", line 2, in

from osgeo.gdal import deprecation_warn
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 swit_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: DLL load failed: The specified procedure could not be found.

Following suggestions from Installing GDAL with Python on windows? and elsewhere, here's what I've done so far:



The result is the same. Any other ideas about how to troubleshoot this?





No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...