[Gdal-dev] Import Gdal Error in Python 2.4

Stéphane COLZY stephane.colzy at magellium.fr
Fri Mar 2 06:47:04 EST 2007



I just ran into the same problem a few days ago.

Python is just looking for a binary library called “_gdal” that comes along
with the python wrappers (in the gdal/pymod dir)





De : gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] De la part de Nagendra Singh
Envoyé : jeudi 1 mars 2007 18:53
À : gdal-dev at lists.maptools.org
Objet : [Gdal-dev] Import Gdal Error in Python 2.4


Hi All,

I am running python on Cygwin and I have also installed gdal 1.4.0 (build
from source). When I run the command import gdal, Python gives me an error.
Any suggestions? I have double checked all the paths and everything seems

Python 2.4.3 (#1, May 18 2006, 07:40:45) 
[GCC 3.3.3 (cygwin special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gdal
Traceback (most recent call last): 
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/gdal.py", line 191, in ?
    import _gdal
ImportError: No module named _gdal

thanks in advance. 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070302/796f249e/attachment.html

More information about the Gdal-dev mailing list