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

Yann Chemin yann.chemin at gmail.com
Tue Jan 22 19:06:14 EST 2008


Yes Frank,

gdal-config --version
1.4.4

This is indeed an old version,
shall upgrade now,

thank you
Yann

On 22/01/2008, Frank Warmerdam <warmerdam at pobox.com> wrote:
> 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