[GRASS-user] Feedback g.extension module on grass7.0

Markus Neteler neteler at osgeo.org
Sat Nov 27 08:10:41 EST 2010


Hi Patrick,

On Wed, Nov 24, 2010 at 9:54 AM, Patrick_schirmer <patrick_GIS at gmx.ch> wrote:
> Dear list,
>
> After some disappointing experience concerning the installation of existing
> add-ons (for 65 and 70) under Grass6.4,

What did not work here? Maybe we can fix it.

> I decided to give Grass7.0 a try.
>
> After the installation process I tried to use g.extension. It will did not
> work for me and with the help of a college I found the reason. For module
> g.extension  "def check()" in the python skript has to be changed in line
> "if not grass.find_program". Otherwise the reply when calling g.extension
> will always be grass.fatal ('2svn client requiered...'). My college updated
> the wikipage on this issue already but eventually you might want to
> countercheck as well.
>
> Installation is on Ubuntu10.04 (lucid lynx)
>
> def check():
>     # check if we have the svn client
>     if not grass.find_program('svn', ['help']):
>         grass.fatal(_('svn client required. Please install subversion
> first.'))
>     # probably test here if we have "make" and "install" programs as well.
> how about gcc?

I have tested it and added the ['help'] from above in GRASS 7.svn.

thanks for the fix
Markus


More information about the grass-user mailing list