[gdal-dev] Python documentation help

Howard Butler hobu.inc at gmail.com
Wed Dec 5 13:55:59 EST 2007


On Dec 5, 2007, at 11:55 AM, Christopher Barker wrote:

> Lucena, Ivan wrote:
>> Note: I tried the old import and the new one just to make sure.
>> >>> import gdal
>> Traceback (most recent call last):
>>  File "<interactive input>", line 1, in ?
>>  File "C:\Progra~1\Python24\Lib\site-packages\gdal.py", line 6, in ?
>>    import _gdal
>> ImportError: No module named _gdal
>
> umm, isn't that a bug? I thought we were keeping it backward  
> compatible (with a deprecation warning) for this release.


Ivan,

I suspect that C:\Progra~1\Python24\Lib\site-packages\gdal.py is and  
old-generation gdal.py in the way.  If you open it up and it is more  
than 10 lines of code, this is probably the case.  Did you install the  
old-generation stuff *after* installing the next-generation?

Howard




More information about the gdal-dev mailing list