On 05/04/2012 08:16 PM, Jay L. wrote:
List,
Just upgraded to 1.9.0 on my windows 7 machine and I can no longer
access gdal via the python bindings. Command line (ogr2ogr, gdalinfo,
etc. are functioning as expected). Specifically, running 'from osgeo
import gdal', returns:
File "C:\Python26\ArcGIS10.0\lib\site-packages\osgeo\__init.py__",
line 17, in
swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, descritpion)
ImportError: DLL load failed: The specified procedure could not be found.
GDAL 1.8 was working wonderfully with ArcGIS. No environmental
variables were altered between installations. Path still contains
C:\Program Files (x86)\GDAL and GDAL_DATA is stills set to C:\Program
Files (x86)\GDAL\gdal-data.
I did try adding the PYTHONPATH variable and setting that to
C:\Python26\ArcGIS10.0, but no change in the error.
GDAL1.9 and the python bindings were downloaded from
http://www.gisinternals.com/sdk/ (the MSVC2010-32bit stable version).
Python 2.6 that comes with ArcGIS 10 was compiled with MSVC2008. That
could be the reason why the bindings aren't working. Try uninstalling
and then installing the matching version.
-marius
Oddly, the gdal python utilities are functioning. That is
gdal2tiles.py for example.
Any suggestions appreciated. I assume a PATH error that I am missing,
but am stumped. The mailing list archives were sparse on this error...
Thanks,
Jay
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev