Hi!

I am new to the GDAL world and I'm struggling with installing OSGeo4W to a 
working state.

I have downloaded and installed the latest edition OSGeo4W. The install goes 
smoothly. I open the OSGeo4W Command shell and enter Python. I have seen that I 
can test the basic Python/GDAL binding(?) by entering

>>> from osgeo import gdal

This results in the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\OSGeo4W\apps\Python27\lib\site-packages\osgeo\__init__.py", line 21,
in <module>
    _gdal = swig_import_helper()
  File "C:\OSGeo4W\apps\Python27\lib\site-packages\osgeo\__init__.py", line 17,
in swig_import_helper
    _mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: DLL load failed: The operating system cannot run %1.

I have read that this error might indicate that the installed python/gdal 
libraries are incompatible, but I'm wondering if my OSGeo4W installation is 
obstructed by another installation? The following three lines are added to my 
path by the OSGeo4W Command shell:


C:\OSGeo4W\bin
C:\OSGeo4W\\apps\msys\bin
C:\OSGeo4W\\apps\Python27\Scripts

I have searched through my system looking for gdal*.dll, but I have found none 
located within any of the folders in my PATH.

What can I do to troubleshoot this problem?

Regards, Casper
_______________________________________________
osgeo4w-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev

Reply via email to