Works wonderfully.<div><br></div><div>What causes this?  Is their another item in the path that is calling the GDAL.dll earlier and locking the python bindings out?</div><div><br></div><div>Thanks, </div><div>Jay<br><br><div class="gmail_quote">
On Mon, Aug 6, 2012 at 10:50 AM, Tamas Szekeres <span dir="ltr"><<a href="mailto:szekerest@gmail.com" target="_blank">szekerest@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jay,<div><br></div><div>Add the directory of the GDAL installation to the beginning of the system PATH. </div><div>Or alternatively, you can run the GDAL console (to set the environment correctly) and then start python.exe from this command prompt.</div>

<div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><br><div class="gmail_quote">2012/8/6 Jay L. <span dir="ltr"><<a href="mailto:jzl5325@psu.edu" target="_blank">jzl5325@psu.edu</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">All, <br><br>I am trying to get the gdal python bindings working with an ArcGIS 10.1 installation.<br>
<br>I grabbed the core from <a href="http://gisinternals.com/sdk" target="_blank">gisinternals.com/sdk</a> (thanks Tamas!) and installed both the 1500 core files (MVS 2008) and the python 2.7 bindings.  I appended the path as necessary and added the GDAL_DATA directory.  The gdal installation appears to be working wonderfully with gdal_translate, gdalinfo, and ogr2ogr all functioning as expected.<br>


<br>Any of the python scripts and a straigh import of gdal or ogr are failing.  Stack trace below.  Any ideas?  This is a new import error for me.<br><br>I attempted the import both from the root directory and the directory gdal is in (thinking it still could have been a PATH issue).  I also tried both the stable and the nightly builds to see if that was the issue.  Nada.<br>


<br>Thanks, <br>Jay<br><br>Microsoft Windows [Version 6.1.7601]<br>Copyright (c) 2009 Microsoft Corporation.  All rights reserved.<br><br>C:\Users\arc_user>python<br>Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win<br>


32<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> import gdal<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>


  File "C:\Python27\ArcGIS10.1\lib\site-packages\gdal.py", line 2, in <module><br>    from osgeo.gdal import deprecation_warn<br>  File "C:\Python27\ArcGIS10.1\lib\site-packages\osgeo\__init__.py", line 21, in<br>


 <module><br>    _gdal = swig_import_helper()<br>  File "C:\Python27\ArcGIS10.1\lib\site-packages\osgeo\__init__.py", line 17, in<br> swig_import_helper<br>    _mod = imp.load_module('_gdal', fp, pathname, description)<br>


ImportError: DLL load failed: The device is not ready.<br>>>><br>
<br></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br>
</blockquote></div><br></div>