[GRASS-dev] r.diversity.py for GRASS 7
Luca Delucchi
lucadeluge at gmail.com
Mon Jan 6 16:39:47 PST 2014
On 6 January 2014 11:13, Paulo van Breugel <p.vanbreugel at gmail.com> wrote:
> Hi Markus,
>
Hi
> Thanks, I was able to install it. Running it gave me the error :
>
> Traceback (most recent call last):
> File "/home/paulo/.grass7/addons/scripts/r.diversity",
> line 284, in <module>
> sys.exit(main())
> File "/home/paulo/.grass7/addons/scripts/r.diversity",
> line 139, in main
> checkAlpha(methods,alpha_value)
> UnboundLocalError: local variable 'alpha_value' referenced
> before assignment
>
thanks, you discovered a bug ;-)
Fixed
> After filling in an alpha value (1) it runs but I get the next error message
> (but the alpha value should be optional, right?):
>
it is not optional if you use the renyi and by default all methods are
used (before it was not specify, now yes ;-)
> ERROR: Cannot find configuration file
> </home/paulo/.grass7/r.li/conf_diversity_3.0>
> [1.0]
> All works are terminated
>
> Indeed, in the given folder there is not such conf file.
>
yes, because the directory change from grass6 to grass7, fixed.
Now it should work, please try 58632
> Cheers,
>
> Paulo
>
--
ciao
Luca
http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
More information about the grass-dev
mailing list