[osgeo4w-dev] ImportError: OSGeo4W problems with Python/GDAL
Casper Børgesen (CABO)
CABO at NIRAS.DK
Tue May 8 02:40:26 EDT 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/osgeo4w-dev/attachments/20120508/48facd68/attachment.html
More information about the osgeo4w-dev
mailing list