[gdal-dev] _gdal.FillNodata not Python function

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] _gdal.FillNodata not Python function

Gabriel Vatin-2
Hi all,

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 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 !


Gabriel
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: _gdal.FillNodata not Python function

Gabriel Vatin-2
Still no ideas about this bug ?...

Gabriel


Le 02/11/2017 à 16:00, Gabriel Vatin a écrit :

> Hi all,
>
> 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 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 !
>
>
> Gabriel


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: _gdal.FillNodata not Python function

Even Rouault-2

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


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev