<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);">
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);">
https://download.osgeo.org/osgeo4w/osgeo4w-setup-x86-v1.exe</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="LPlnk224702">
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="LPlnk882367">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="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>Fra:</b> grass-user <grass-user-bounces@lists.osgeo.org> på vegne av Sajid Pareeth <spareeth@gmail.com><br>
<b>Sendt:</b> torsdag 29. juli 2021 16:48<br>
<b>Til:</b> GRASS user list <grass-user@lists.osgeo.org><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:0 0 0 40px; border:none; padding:0px">
<blockquote class="x_gmail_quote" 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 class="x_gmail_quote" 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" originalsrc="http://wingrass.fsv.cvut.cz/grass78/x86_64/addons/grass-7.8.6RC1/r.series.lwr.zip" shash="IKRtkkOTGNkLRCHhLEJfOD/wWa42+J9n4UvIxTVscp9WRnkxqNvKGdWStzxGINOYdsdhOYKQ4IzJZSW7NZ1oyGb+3A55dlSZCkC2vvFT2Bg8MXHkkGOypJ/IimpmwxgRFbaQ+/uKAWH/ebih+ylyrfOw3veUlcVggwE6ZbknUCw=" 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" originalsrc="http://wingrass.fsv.cvut.cz/grass78/x86_64/addons/grass-7.8.6RC1/r.series.lwr.zip" shash="Cr2FsC4NN2A0GM40vGuTdHOzj4LOvJV+0rL9JHa8FP/hwBGdoSNJD+DO8gyY6c+OilTrqgQBz2TuyJzgFSBIEttMyydfnzUXgr15/teF81Ljw2fPTdMRS3KNyeBXTTxodUdy6HB6FUtuf6Qxl1Hrvm0/1WhPy5+t1aNxUHGyID0=" 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>
</body>
</html>