[GRASS-user] GRASS can't fetch interface description for Python script

Hamish hamish_b at yahoo.com
Mon May 23 06:24:50 EDT 2011


Daniel wrote:
> I'm having a lot of trouble starting this script in GRASS.
> As I'm more than a newbie in programming, this is probably
> some really basic mistake, but my other scripts all work
> consistently in GRASS and I've been working on this
> for quite a while with no success, so here goes :)
> 
> I quickly put together a script, copied it into
> /opt/grass/scripts, and when I try to call it from within
> GRASS it returns the following error:
...
> 'exceptions.OSError' object has no attribute 'value'


Is /opt/grass/scripts set up in GRASS_ADDON_PATH, and
  export GRASS_ADDON_PATH=/opt/grass/scripts
set up in ~/.bashrc ?

(Scripts run in two passes, the first will start from the pwd,
but if that's not in the $PATH then the second g.parser pass
won't be able to find itself, and you get a not-very-helpful
error message.)


just a guess,
Hamish



More information about the grass-user mailing list