<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 05/04/2012 08:16 PM, Jay L. wrote:
<blockquote
cite="mid:CA+bfmPsEJP5eTOV09OJVyhp3sJw4CrCcsjB+uz6JjySFFUQ8XA@mail.gmail.com"
type="cite">List, <br>
<br>
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:<br>
<br>
File "C:\Python26\ArcGIS10.0\lib\site-packages\osgeo\__init.py__",
line 17, in<br>
swig_import_helper<br>
_mod = imp.load_module('_gdal', fp, pathname, descritpion)<br>
ImportError: DLL load failed: The specified procedure could not be
found.<br>
<br>
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.<br>
<br>
I did try adding the PYTHONPATH variable and setting that to
C:\Python26\ArcGIS10.0, but no change in the error.<br>
<br>
GDAL1.9 and the python bindings were downloaded from <a
moz-do-not-send="true" href="http://www.gisinternals.com/sdk/">http://www.gisinternals.com/sdk/</a>
(the MSVC2010-32bit stable version).<br>
</blockquote>
<br>
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.<br>
<br>
-marius<br>
<blockquote
cite="mid:CA+bfmPsEJP5eTOV09OJVyhp3sJw4CrCcsjB+uz6JjySFFUQ8XA@mail.gmail.com"
type="cite">
<br>
Oddly, the gdal python utilities are functioning. That is
gdal2tiles.py for example.<br>
<br>
Any suggestions appreciated. I assume a PATH error that I am
missing, but am stumped. The mailing list archives were sparse on
this error...<br>
<br>
Thanks, <br>
Jay<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<br>
</body>
</html>