[Tutor] Problem with Import
Alan Gauld
alan.gauld at btinternet.com
Fri Mar 2 01:09:09 CET 2007
"Nagendra Singh" <singh01 at gmail.com> 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.
More information about the Tutor
mailing list