[GRASS-user] Problem installing grass7 AddOn

Hi all,

I have just installed r.sun.daily grass addon following the instructions described in https://grasswiki.osgeo.org/wiki/AddOns.
As you can see in the console message the installation was successful:

(Thu Feb 09 12:56:20 2017)
g.extension extension=r.sun.daily operation=add
Downloading precompiled GRASS Addons <r.sun.daily>…

Updating addons metadata file…
Installation of <r.sun.daily> successfully finished
(Thu Feb 09 12:56:22 2017) Command finished (2 sec)

Also, if I check the list of extensions installed I get this result:

C:> g.extension -a

List of installed extensions :
r.sun.daily

But, when I try to execute r.sun.daily inside a python script it seems like the addon was not installed.
As a example, this is the command that I have been using …

gscript.run_command(“r.sun.daily”, flags = “t”, elevation = “dsm”, aspect = “aspect”, slope = “slope”, … )

And this is the error message:
OSError: Cannot find the executable r.sun.daily

should i have to do anything more to finish the installation properly ?

Many thanks in advance,

A.

Hi Anna,

Anna Muñoz wrote

Hi all,

I have just installed r.sun.daily grass addon following the instructions
described in https://grasswiki.osgeo.org/wiki/AddOns.
As you can see in the console message the installation was successful:

(Thu Feb 09 12:56:20 2017)

g.extension extension=r.sun.daily operation=add

Downloading precompiled GRASS Addons
<r.sun.daily>
...
Updating addons metadata file...
Installation of
<r.sun.daily>
successfully finished
(Thu Feb 09 12:56:22 2017) Command finished (2 sec)

Also, if I check the list of extensions installed I get this result:

C:\> g.extension -a
List of installed extensions
<modules>
:
r.sun.daily

But, when I try to execute r.sun.daily inside a python script it seems
like
the addon was not installed.
As a example, this is the command that I have been using ...

gscript.run_command("r.sun.daily", flags = "t", elevation = "dsm", aspect

"aspect", slope = "slope", ... )

And this is the error message:
OSError: Cannot find the executable r.sun.daily

should i have to do anything more to finish the installation properly ?

just tested here with

System Info
GRASS version: 7.3.svn
GRASS SVN revision: r70508
Build date: 2017-01-09
Build platform: x86_64-w64-mingw32
GDAL: 2.1.2
PROJ.4: 4.9.3
GEOS: 3.5.0
SQLite: 3.14.1
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-8-6.2.9200 (OSGeo4W)

I've installed r.sun.daily by g.extension, g.extension -a showed the
installed addon,

but a look in C:\Users\your_user_name\AppData\Roaming\GRASS7\addons\scripts,
where the addon are stored, there was no installed r.sun.daily addon.

check in your addon folder if the addon is installed.

my next steps were:

g.gisenv set=DEBUG=3
g.extension extension=r.sun.daily operation=add

have a look in the debug output if there is some warning/error message
during installation.

here on my side, with DEBUG=3 the addon was installed then.

then I've done g.gisenv set=DEBUG=0
deinstalled the addon and installed r.sun.daily again, checked it in
C:\Users\your_user_name\AppData\Roaming\GRASS7\addons\scripts

the addon was installed correctly.

please try the steps above and report back.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-installing-grass7-AddOn-tp5307176p5307268.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Many thanks for your answer Helmut !

I have been following the steps that you describe but unfortunately without
success.
In my case, the solution was to set GRASS_ADDON_BASE and GRASS_PYTHON
environment variables inside my python code.

Best regards,
Anna

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-installing-grass7-AddOn-tp5307176p5325703.html
Sent from the Grass - Users mailing list archive at Nabble.com.