Hi Luis,<br><br>   I have encountered a similar issue on my machine (win xp sp3 too). I think what I saw was due to PyQt4 using a version of libmysql.dll, which gdal is also linked against (dll included in the binaries from Tamas), and it is crucial which version is found first by windows. Notice that windows will look in the "current directory" and the directory of the running application before using the PATH variable. So if ERIC is using a path, where the PyQt4 version of libmysql.dll is found first, that might cause the problem. Also it is possible that ERIC manipulates the PATH env. variable (try to type os.environ["PATH"]) in order to locate the right dll's in its own context.<br>
<br>  Cheers.<br>  Simon<br><br><br><div class="gmail_quote">On Mon, Dec 24, 2012 at 8:37 AM, Luis Solis <span dir="ltr"><<a href="mailto:solisgb@gmail.com" target="_blank">solisgb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hi<br><br>I've installed GDAL and python bindings (py 2.7) on win xp sp3 using Tamas Szekeres's binaries.<br><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>I'm using Eric IDE. Eric uses PyQt4. <span lang="en"><span>If</span> <span>I try to run</span> <span>the script from</span> <span>Eric</span><span>,</span> <span>the</span> <span>test</span> <span>throws</span> <span>the error message</span></span></div>

<br>ImportError: DLL load failed<br><div><br>I don't know what I can do<span class="HOEnZb"><font color="#888888"><br clear="all"><br>-- <br>Luis Solís
</font></span></div></div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">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>