<div dir="ltr">Hi Stefan<div><br></div><div>Thanks for the reply. Sorry for the delay in response.</div><div><br></div><div>I solved it temporarily by asking the participants to install GRASS 7.8.5 into the OSGeo4W/apps folder and update the environment accordingly, and it worked.</div><div>But your solution of downloading the addon and extracting it to "<span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">C:\Users\%USER%\AppData\</span><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">Roaming\GRASS7\addons\</span>", is more elegant and it works.<br></div><div><br></div><div>I also support the additional feature of installing the addon in Windows.</div><div><br></div><div>Thanks again for pointing out "find_program", it is the perfect solution to check if an addon is installed or not.</div><div><br></div><div>Best regards,</div><div><br></div><div>Sajid</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 2, 2021 at 1:56 AM Stefan Blumentrath <<a href="mailto:Stefan.Blumentrath@nina.no">Stefan.Blumentrath@nina.no</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi Sajid,</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)">
On Windows, addons are distributed as precompiled binaries for a specific version.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
7.8.6 is just a release candidate, so there are no pre-compiled addons yet.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
With OSGeo4W Version 1, which you can get here:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<a href="https://download.osgeo.org/osgeo4w/osgeo4w-setup-x86-v1.exe" target="_blank">https://download.osgeo.org/osgeo4w/osgeo4w-setup-x86-v1.exe</a></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
you can get GRASS 7.8.5 where installation of addons works fine.</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)">
In order to make addons work for GRASS 7.8.6 we would first need a release and then packaging of addons for that version. So no quick fix.</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)">
As a workaround you could download the required addons for GRASS 7.8.5 and ask your students to extract them into their user profile, which is typically:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
C:\Users\%USER%\AppData\Roaming\GRASS7\addons\<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
That is a hack of course but should work (though I have not tested)...</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)">
As for your related questions:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
1) Might be a good idea to support installation of addons from local zip files. At least for Python scripts that should generally work. There is already a similar feature request in here:
<a href="https://github.com/OSGeo/grass/issues/625#issuecomment-797414504" id="gmail-m_-2467839229845317377LPlnk224702" target="_blank">
https://github.com/OSGeo/grass/issues/625#issuecomment-797414504</a>...</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
2) Not sure I understand the question correctly, but you could check if an addon is present (e.g. with <a href="https://grass.osgeo.org/grass79/manuals/libpython/script.html?highlight=find_#script.core.find_program" id="gmail-m_-2467839229845317377LPlnk882367" target="_blank">https://grass.osgeo.org/grass79/manuals/libpython/script.html?highlight=find_#script.core.find_program</a>)</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)">
Hope that helps a bit (though it may be late for your course).</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)">
Cheers</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Stefan</div>
<div id="gmail-m_-2467839229845317377appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-2467839229845317377divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Fra:</b> grass-user <<a href="mailto:grass-user-bounces@lists.osgeo.org" target="_blank">grass-user-bounces@lists.osgeo.org</a>> på vegne av Sajid Pareeth <<a href="mailto:spareeth@gmail.com" target="_blank">spareeth@gmail.com</a>><br>
<b>Sendt:</b> torsdag 29. juli 2021 16:48<br>
<b>Til:</b> GRASS user list <<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a>><br>
<b>Emne:</b> [GRASS-user] Error with installing addons in Windows</font>
<div> </div>
</div>
<div>
<div dir="ltr"><font style="vertical-align:inherit"><font style="vertical-align:inherit">Dear all</font></font>
<div><br>
</div>
<div><font style="vertical-align:inherit"><font style="vertical-align:inherit">While installing an addon using g.extension in Windows 10, gives the following error.</font></font></div>
<div><br>
</div>
<div>
<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<font style="vertical-align:inherit"><font style="vertical-align:inherit">"ERROR: Cannot open URL:</font></font></blockquote>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
       <a href="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwingrass.fsv.cvut.cz%2Fgrass78%2Fx86_64%2Faddons%2Fgrass-7.8.6RC1%2Fr.series.lwr.zip&data=04%7C01%7C%7C63bfed4d4eea4b708e4d08d9529fffdb%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637631669417533127%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=7Z5m4E2VcKIdpehXbq%2F8b6prPQkB%2FLx2428jwRt7NsE%3D&reserved=0" target="_blank"><font style="vertical-align:inherit"><font style="vertical-align:inherit">http://wingrass.fsv.cvut.cz/</font></font><font style="vertical-align:inherit"><font style="vertical-align:inherit">grass78/x86_64/addons/grass-7.</font></font><font style="vertical-align:inherit"><font style="vertical-align:inherit">8.6RC1/r.series.lwr.zip</font></font></a><font style="vertical-align:inherit"><font style="vertical-align:inherit">" </font></font></blockquote>
</blockquote>
<div><br>
</div>
I see that the addons for 7.8.5 are accessible:   <a href="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwingrass.fsv.cvut.cz%2Fgrass78%2Fx86_64%2Faddons%2Fgrass-7.8.6RC1%2Fr.series.lwr.zip&data=04%7C01%7C%7C63bfed4d4eea4b708e4d08d9529fffdb%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637631669417543124%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=5pmClXaSPsn4ZmHKboj0P78vmoFkfDgR0ZoH8irx%2B5g%3D&reserved=0" target="_blank">
http://wingrass.fsv.cvut.cz/grass78/x86_64/addons/grass-7.8.5RC1/r.series.lwr.zip</a> ; But not accessible for 7.8.6RC1. </div>
<div><br>
</div>
<div>The latest OSGeo4W setup gives two GRASS GIS versions: 7.8.6RC1-4 and 7.8.6RC1-5.</div>
<div><br>
</div>
<div>So there is no option to install 7.8.5 using OSGeo4W.</div>
<div><br>
</div>
<div>Any quick work around for this issue? I am in the middle of providing training, and it would be great if there is a quick fix.</div>
<div><br>
</div>
<div><b>Related questions: </b></div>
<div>1) Is there any way to install an addon from a local zip package or url in Windows? In the manual it says it works only for Linux and Mac.</div>
<div><br>
</div>
<div>2) Is there any way to skip installation of an addon, if it is already installed? Useful within a python script.</div>
<div><br>
</div>
<div>Many thanks in advance</div>
<div><br>
</div>
<div>Best</div>
<div><br>
</div>
<div>Sajid</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>

</blockquote></div>