Hi Luis,

   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.

  Cheers.
  Simon


On Mon, Dec 24, 2012 at 8:37 AM, Luis Solis <[email protected]> wrote:

> Hi
>
> I've installed GDAL and python bindings (py 2.7) on win xp sp3 using Tamas
> Szekeres's binaries.
>
> All the environmental variables are ok (path, gdal_data and pythonpath).
>
> path2gdal is the first in the list of directories in the 
> PATH(PATH=c:\gdal;...)
>
> I've tried with a simple test
>
>     try:
>        from osgeo import ogr
>     except:
>        import ogr
>
> If I run the script from command line all is ok
>
> I'm using Eric IDE. Eric uses PyQt4. If I try to run the script from Eric,
> the test throws the error message
>
> ImportError: DLL load failed
>
> I don't know what I can do
>
> --
> Luis SolĂ­s
>
> _______________________________________________
> gdal-dev mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to