<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear Annamarie,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
sorry for the delay, finally yesterday I did have time to test the installation process on my machine and I got a similar error highlight by Markus regarding the libgreen/libhydro it seems that the makefile as it is is not any more able to handle some internal
 library.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
To get the module installed and working you could <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Download the source code with:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">$ g.extension extension=r.green -d</span><span></span><br>
<span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span></span><br>
<span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>you will get a message similar to the follow:</span></div>
<span></span><br>
<span></span>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">Fetching <r.green> from GRASS GIS Addons repository (be patient)...</span><br>
</div>
<div><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">To compile run:</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">make MODULE_TOPDIR=/usr/lib64/grass78 \</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">     RUN_GISRC=/tmp/grass7-pietro-65803/gisrc \</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">     BIN=/tmp/grass7-pietro-65803/tmpixl0y9dg/r.green/bin\</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">     HTMLDIR=/tmp/grass7-pietro-65803/tmpixl0y9dg/r.green/docs/html \</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">     RESTDIR=/tmp/grass7-pietro-65803/tmpixl0y9dg/r.green/docs/rest \</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">     MANBASEDIR=/tmp/grass7-pietro-65803/tmpixl0y9dg/r.green/docs/man \</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">     SCRIPTDIR=/tmp/grass7-pietro-65803/tmpixl0y9dg/r.green/scripts \</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">     STRINGDIR=/tmp/grass7-pietro-65803/tmpixl0y9dg/r.green \</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">     ETC=/tmp/grass7-pietro-65803/tmpixl0y9dg/r.green/etc\</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">     SOURCE_URL=https://trac.osgeo.org/grass/browser/grass-addons/grass7/</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">To install run:</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">make MODULE_TOPDIR=/usr/lib64/grass78 \</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">     ARCH_DISTDIR=/tmp/grass7-pietro-65803/tmpixl0y9dg/r.green \</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">INST_DIR=/home/pietro/.grass7/addons install</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;"><br>
</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;"></span><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">Path to the source code:</span><span><br>
</span><b><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal; color: rgb(12, 136, 42);">/tmp/grass7-pietro-65803/tmpixl0y9dg/r.green</span></b><br>
</div>
<blockquote style="margin-top: 0px; margin-bottom: 0px;"><br>
</blockquote>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Before executing the command suggested by g.extension module you have to set the <span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">
PYTHONPATH</span> variable as follow:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">export PYTHONPATH=<your r.green path>:<your r.green path>/r.green.hydro:$PYTHONPATH</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
So in my case is:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
<span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">export PYTHONPATH=</span><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal">/tmp/grass7-pietro-65803/tmpixl0y9dg/r.green</span><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">:</span><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal">/tmp/grass7-pietro-65803/tmpixl0y9dg/r.green</span><span style="font-family: Consolas, Courier, monospace; font-size: 10pt; line-height: normal;">/r.green.hydro:$PYTHONPATH</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
Please let me know if the above command fix your issue, if not please provide more details regarding your OS/configuration and your errors.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
Best regards</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt">
Pietro<br>
</div>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div></div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="PlainText">---<span lang="en-US">
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font color="#D04D2A"><b>Pietro Zambelli</b></font></span></font></div>
</span><span lang="en-US">
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font color="#D04D2A"><b>Eurac Research</b></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font color="#D04D2A"><b> </b></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font color="#D04D2A">Institute for Renewable Energy </font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font color="#D04D2A"><span lang="it"><b>Tel</b></span></font><font color="#D04D2A"><span lang="it">
<span> +39 0471 055 684</span></span></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font color="#D04D2A"><span lang="it"><b>Fax
</b></span></font><font color="#D04D2A"><span lang="it">+39 0471 055 699</span></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><a href="mailto:laura.scafidi@eurac.edu" target="_blank"><font color="#D04D2A"><span lang="it">pietro.zambelli@eurac.edu</span></font></a></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font color="#D04D2A"><span lang="it"> </span></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font color="#D04D2A"><span lang="it"></span></font></span></font></div>
<p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0"><span style="color:#D04D2A" lang="it">Via A.Volta 13/A</span></p>
<p style="font-size:11pt; font-family:Calibri,sans-serif; margin:0"><span style="color:#D04D2A" lang="it">39100 Bozen/Bolzano</span></p>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font color="#D04D2A"><span lang="it"></span></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font color="#D04D2A"><span lang="it"><b> </b></span></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font color="#D04D2A"><span lang="it">Legal Seat</span></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font color="#D04D2A"><span lang="it">Drususallee/Viale Druso 1</span></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font color="#D04D2A"><span lang="it">I-39100 Bozen/Bolzano</span></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><a href="http://www.eurac.edu" target="_blank"><span lang="it"><b><font color="#D04D2A">www.eurac.edu</font></b></span></a></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><span lang="it"> </span></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><a href="https://facebook.com/eurac.research" target="_blank"><font color="#D04D2A">Facebook</font></a><font color="#D04D2A"> l
</font><a href="https://www.youtube.com/EURACtv" target="_blank"><font color="#D04D2A">Youtube</font></a><font color="#D04D2A"> l
</font><a href="https://twitter.com/eurac" target="_blank"><font color="#D04D2A">Twitter</font></a><font color="#D04D2A"> l
</font><a href="https://www.linkedin.com/company/euracresearch" target="_blank"><font color="#D04D2A">LinkedIn</font></a></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Trebuchet MS,sans-serif"><span style="font-size:10pt"> </span></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"></span></font></div>
</span><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="1" color="black"><span style="font-size:8pt">
<div>According to regulation (EU) 2016/679 this transmission is intended only for the use of the addressee and may contain confidential information. If you receive this transmission in error, please notify the sender immediately by email and delete all copies
 of this message and any attachments.</div>
</span></font></span></font><span lang="en-US"></span><span lang="en-US">
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="1" color="black"><span style="font-size:8pt"></span></font></span></font></div>
</span><br>
</div>
</span></font></div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Markus Neteler <neteler@osgeo.org><br>
<b>Sent:</b> 11 November 2019 18:46<br>
<b>To:</b> Annemarie Pfeiffer <Annemarie.Pfeiffer@umwelt.uni-giessen.de><br>
<b>Cc:</b> GRASS-web <grass-web@lists.osgeo.org>; andre grosse-stoltenberg <Andre.Grosse-Stoltenberg@umwelt.uni-giessen.de><br>
<b>Subject:</b> Re: [GRASS-web] Installing r.green is not possible</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Dear Annemarie,<br>
<br>
Which GRASS GIS version do you use, and on which operating system?<br>
I have tried to install it myself, on a Linux system:<br>
<br>
<br>
GRASS 7.8.2dev (nc_spm_08):~ > g.extension r.green<br>
Fetching <r.green> from GRASS GIS Addons repository (be patient)...<br>
Compiling...<br>
Traceback (most recent call last):<br>
  File "/home/mneteler/tmp/grass7-mneteler-20201/tmpfggv6w9y/r.green/scripts/r.green.hydro.structure",<br>
line 139, in <module><br>
    from libgreen.checkparameter import check_required_columns, exception2error<br>
ModuleNotFoundError: No module named 'libgreen'<br>
make[2]: *** [/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-gnu/include/Make/Html.make:14:<br>
r.green.hydro.structure.tmp.html] Error 1<br>
/home/mneteler/tmp/grass7-mneteler-20201/tmpfggv6w9y/r.green/scripts/r.green.install:35:<br>
DeprecationWarning: the imp module is deprecated in favour of<br>
importlib; see the module's documentation for alternative uses<br>
  import imp<br>
Installing...<br>
/usr/bin/install: cannot stat<br>
'/home/mneteler/tmp/grass7-mneteler-20201/tmpfggv6w9y/r.green/docs/html/r.green.hydro.structure.html':<br>
No such file or directory<br>
make[2]: *** [/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-gnu/include/Make/Script.make:36:<br>
install] Error 1<br>
Updating addons metadata file...<br>
Updating private addons metadata file...<br>
WARNING: No addons metadata available. Addons metadata file not updated.<br>
Installation of <r.green> successfully finished<br>
<br>
GRASS 7.8.2dev (nc_spm_08):~ > r.green.<br>
r.green.biomassfor.co2          r.green.biomassfor.recommended<br>
r.green.gshp.theoretical        r.green.hydro.financial<br>
r.green.hydro.technical<br>
r.green.biomassfor.financial    r.green.biomassfor.technical<br>
r.green.hydro.closest           r.green.hydro.optimal<br>
r.green.hydro.theoretical<br>
r.green.biomassfor.impact       r.green.biomassfor.theoretical<br>
r.green.hydro.delplants         r.green.hydro.planning<br>
r.green.install<br>
r.green.biomassfor.legal        r.green.gshp.technical<br>
r.green.hydro.discharge         r.green.hydro.structure<br>
<br>
Some issue seems to be there with "libgreen".<br>
<br>
Do you see the same error?<br>
<br>
Best regards,<br>
<br>
Markus<br>
<br>
On Wed, Nov 6, 2019 at 11:38 AM Annemarie Pfeiffer<br>
<Annemarie.Pfeiffer@umwelt.uni-giessen.de> wrote:<br>
><br>
> Dear Sir or Madam,<br>
><br>
> as part of my master's thesis I would like to use the tool<br>
> r.green.hydro with all its functions. After I've completed all the<br>
> steps of your detailed online installation guide, Grass-Gis will<br>
> create a field called "Energy." The functions of this field are grayed<br>
> out and can not be executed. After entering the r.green.install -x<br>
> command, you also receive the message that the python libraries<br>
> numexpr and scipy are not available. After I installed these manually,<br>
> the message did not occur anymore, but the functions in "Energy" were<br>
> also not executable and still written in gray.<br>
> Additionally, when you load Grass-GIS into the black console, you see<br>
> the following message:<br>
><br>
> Details: Can not find the executable r.green.hydro ....<br>
> r.green.hydro ...: Unable to fetch interface description for command<br>
> 'r.green.hydro ....' "<br>
><br>
> Since I would benefit greatly from the use of the tool for my<br>
> explorations, I would be very grateful if you could help me with my<br>
> problem.<br>
><br>
> With best regards<br>
> Annemarie Pfeiffer<br>
><br>
><br>
><br>
> Mit freundlichen Grüßen<br>
> Annemarie Pfeiffer<br>
><br>
> _______________________________________________<br>
> grass-web mailing list<br>
> grass-web@lists.osgeo.org<br>
> <a href="https://lists.osgeo.org/mailman/listinfo/grass-web">https://lists.osgeo.org/mailman/listinfo/grass-web</a><br>
<br>
<br>
<br>
-- <br>
Markus Neteler, PhD<br>
<a href="https://www.mundialis.de">https://www.mundialis.de</a> - free data with free software<br>
<a href="https://grass.osgeo.org">https://grass.osgeo.org</a><br>
<a href="https://courses.neteler.org/blog">https://courses.neteler.org/blog</a><br>
</div>
</span></font></div>
</body>
</html>