[gdal-dev] _gdal.FillNodata not Python function

Even Rouault even.rouault at spatialys.com
Wed Nov 8 02:35:23 PST 2017


Gabriel,

> > 
> > I'm working with Python 3.6 32bits, GDAL package
> > (GDAL‑2.2.2‑cp36‑cp36m‑win32.whl) i've installed from here :
> > https://www.lfd.uci.edu/~gohlke/pythonlibs/

I don't have experience regarding those binaries.

> > 
> > I also installed the gdal-202-1800-core.msi from here :
> > http://www.gisinternals.com/query.html?content=filelist&file=release-1800-
> > gdal-2-2-1-mapserver-7-0-6.zip
> > 
> > Here is the error I get when I try the fillnodata python utility :
> > gdal_fillnodata -md 2 myImage.tif myImage_correction.tif
> > Traceback (most recent call last):
> >   File "C:\Python36\Scripts\gdal_fillnodata.py", line 197, in <module>
> >     callback = prog_func )
> >   File "C:\Python36\lib\site-packages\osgeo\gdal.py", line 2742, in
> > FillNodata
> >     return _gdal.FillNodata(*args, **kwargs)
> > RuntimeError: Object given is not a Python function
> > 
> > Do you have any idea how to fix it ? Maybe wrong installation ?...
> > Thanks !

For what is worth, I've downloaded and installed:
http://download.gisinternals.com/sdk/downloads/release-1800-gdal-2-2-1-mapserver-7-0-6.zip
http://download.gisinternals.com/sdk/downloads/release-1800-gdal-2-2-1-mapserver-7-0-6/GDAL-2.2.1.win32-py3.4.msi
https://www.python.org/ftp/python/3.4.3/python-3.4.3.msi

and a common line similar to yours work fine.

So I suspect the issue is with the Python stuff from GDAL‑2.2.2‑cp36‑cp36m‑win32.whl , and using it
with the native lib provided by gisinternals will not help. But as shown above, if you use
the Python package provided by gisinternals, that should work.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171108/ccab025b/attachment.html>


More information about the gdal-dev mailing list