[gdal-dev] Python documentation help
Lucena, Ivan
ivan.lucena at pmldnet.com
Wed Dec 5 13:50:42 EST 2007
Chris,
I guess that Howard will be one to answer that. I had intentionally
generated the package for NG Python.
If you look at the GDAL Python scripts utilities (ex.: "pct2rgb.py") it
literally 'tries' how do import gdal:
#######################
try:
from osgeo import gdal
gdal.TermProgress = gdal.TermProgress_nocb
except ImportError:
import gdal
#######################
Best regards,
Ivan
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.
>
> -Chris
>
>
More information about the gdal-dev
mailing list