[GRASS-dev] RE: [GRASS-user] Question with Python-SWIG example
[SEC=UNCLASSIFIED]
Glynn Clements
glynn at gclements.plus.com
Mon May 24 17:23:34 EDT 2010
Martin Landa wrote:
> > G_find_raster2 is (or should be) defined in grass.py as:
> >
> > # /usr/local/src/grass/7.0/dist.i686-pc-linux-gnu/include/grass/gisdefs.h: 220
> > if hasattr(_libs['grass_gis'], 'G_find_raster2'):
> > G_find_raster2 = _libs['grass_gis'].G_find_raster2
> > G_find_raster2.restype = ReturnString
> > G_find_raster2.argtypes = [String, String]
>
> I have ...
> lib/python/ctypes/grass.py: G_find_raster2.errcheck = ReturnString
Ah. That would explain it.
It looks like I'm going to have to add a local copy of ctypesgen in
order to ensure consistent behaviour.
In the meantime, can you try with:
http://mirrors.kernel.org/gentoo/distfiles/ctypesgen-0_p72.tar.bz2
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list