"Nagendra Singh" <[EMAIL PROTECTED]> wrote

> experimenting I found out that it works with Python 2.3 but not 2.4

>> > >>> 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

Note its complaining that gdal is importing _gdal which doesn't exist.
It seems likely that import _gdal is looking for a compiled library
(ie a .so)  file.

Do you have the 2.4 binary library installed as well as the .py file?

Just a guess...

Alan G. 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to