<div dir="ltr"><div><div>Hi<br><br>I've installed GDAL (<a href="http://pypi.python.org/pypi/GDAL">http://pypi.python.org/pypi/GDAL</a>) and python bindings (py 2.7) on win xp sp3 using Tamas Szekeres's binaries (<a href="http://www.gisinternals.com/sdk">http://www.gisinternals.com/sdk</a>).<br>
<br>I've download python 2.7 from <a href="http://python.org">python.org</a> [MSC v.1500 32 bit (Intel)]<br></div><div>and I've use gdal-19-1500-core.msi & GDAL-1.9.2.win32-py2.7.msi<br></div><div><br>All the environmental variables are ok (path, gdal_data and pythonpath). <br>
<br>
<span lang="en"><span>path2gdal</span> <span>is</span> <span>the</span> <span>first in the list</span> <span>of directories in</span> <span>the PATH</span></span> (PATH=c:\gdal;...)<br>
<br></div><span lang="en"><span>I</span><span>'ve tried</span> <span>with a</span> <span>simple test</span></span><div><br> try:<br> from osgeo import ogr<br>
except:<br> import ogr<br><br></div><div>If I run the script from command line all is ok<br><br></div><div><span lang="en"><span>If</span> <span>I try to run</span> <span>the script from</span> <span>Eric</span><span>,</span> both imports <span>throws</span> an <span>error message</span></span></div>
<br>ImportError: DLL load failed (detailed below)<br><br><span id="result_box" class="" lang="en"><span class=""></span></span>I don't know what I can do<br clear="all"><span id="result_box" class="" lang="en"><span class=""></span></span><br>
-- <br>Luis<br><br></div>Error message<br><br>Error in sys.excepthook:<br>Traceback (most recent call last):<br> File "c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugClientBase.py", line 1109, in __unhandled_exception<br>
self.mainThread.user_exception(None, (exctype,excval,exctb), 1)<br> File "c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugBase.py", line 617, in user_exception<br> unicode(excval).encode(self._dbgClient.getCoding())]<br>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 30: ordinal not in range(128)<br><br>Original exception was:<br>Traceback (most recent call last):<br> File "c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugClient.py", line 38, in <module><br>
debugClient.main()<br> File "c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugClientBase.py", line 1961, in main<br> self.__interact()<br> File "c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugClientBase.py", line 981, in __interact<br>
self.eventLoop()<br> File "c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugClientBase.py", line 1009, in eventLoop<br> self.readReady(self.readstream.fileno())<br> File "c:\python27\Lib\site-packages\eric4\DebugClients\Python\AsyncIO.py", line 67, in readReady<br>
self.handleLine(s)<br> File "c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugClientBase.py", line 544, in handleLine<br> execfile(sys.argv[0], self.debugMod.__dict__)<br> File "C:\Doc\dev\python\gis\gdalogrtest\x_gdalogrtest.py", line 21, in <module><br>
import ogr<br> File "c:\python27\lib\site-packages\ogr.py", line 2, in <module><br> from osgeo.gdal import deprecation_warn<br> File "c:\python27\lib\site-packages\osgeo\__init__.py", line 21, in <module><br>
_gdal = swig_import_helper()<br> File "c:\python27\lib\site-packages\osgeo\__init__.py", line 17, in swig_import_helper<br> _mod = imp.load_module('_gdal', fp, pathname, description)<br>ImportError: DLL load failed: No se encontró el proceso especificado. (<span id="result_box" class="" lang="en"><span class="">translation, </span></span><span id="result_box" class="" lang="en"><span class="">specified process not found)<br>
</span></span></div>