[gdal-dev] _gdal.py: cannot find _gdal.GDALGetFileList

Frank Warmerdam warmerdam at pobox.com
Tue Jan 22 10:15:06 EST 2008


Yann Chemin wrote:
> Hello,
> While doing this:
> 
>  papszFileList = _gdal.GDALGetFileList( hDataset )
> 
> it gave this error:
> 
>      papszFileList = _gdal.GDALGetFileList( hDataset )
>  AttributeError: 'module' object has no attribute 'GDALGetFileList'
> 
> The imported modules are:
> 
>  import _gdal
>  import gdal
>  from gdalconst import *
> 
> Am I missing something?
> thank you for any suggestion...

Yann,

GDALGetFileList() is new to GDAL 1.5.0, and likely only exists in the
modern Python bindings (not the antique bindings distributed in FWTools
or built using --with-ogpython).

Is it possible that you are using an older GDAL or a new GDAL with old
bindings (ie. FWTools)?

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list