check your python path<br><br><div><span class="gmail_quote">On 2/28/07, <b class="gmail_sendername">Nagendra Singh</b> <<a href="mailto:singh01@gmail.com">singh01@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br><br>I am running python on Cygwin and I have also installed gdal which is a raster translator library. When I run the command import gdal, Python gives me an error :<br><br>Python 2.4.3 (#1, May 18 2006, 07:40:45)
<br>[GCC 3.3.3 (cygwin special)] on cygwin<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> import gdal<br>Traceback (most recent call last):
<br> File "<stdin>", line 1, in ?<br> File "/usr/lib/python2.4/site-packages/gdal.py", line 191, in ?<br> import _gdal<br>ImportError: No module named _gdal<br><br>The file gdal.py and gdal.pyc
are in : /usr/lib/python2.4/site-packages, but still it gives this error.<br><br>Thanks<br><span class="sg"><br>Singh<br><br>
</span><br>_______________________________________________<br>Tutor maillist - <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Tutor@python.org">Tutor@python.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">
http://mail.python.org/mailman/listinfo/tutor</a><br><br></blockquote></div><br>