<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear GRASS Community,
<div class=""><br class="">
</div>
<div class="">I did find this previous exchange, that someone has asked the same question before.</div>
<div class=""><br class="">
</div>
<div class=""><a href="https://www.mail-archive.com/grass-user@lists.osgeo.org/msg36682.html" class="">https://www.mail-archive.com/grass-user@lists.osgeo.org/msg36682.html</a></div>
<div class=""><br class="">
</div>
<div class="">The sudo easy install pip doesn’t really work since since there is no Python version 2.7</div>
<div class=""><br class="">
</div>
<div class="">I did the remaining steps as shown below and this is the message I received.</div>
<div class=""><img apple-inline="yes" id="0043409F-B601-49DA-9324-414B455E814D" width="788" height="159" src="cid:EBE80624-E03D-4FF0-804A-474436BDFB5F" class=""></div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<br class="">
</div>
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class="">3) Please note there is an updated python script, that doesn’t have a name but I name it to a.py.  The updated is displayed using the following link.  I updated the print command by adding ()</div>
<div class=""><a href="https://www.mail-archive.com/grass-user@lists.osgeo.org/msg36683.html" class="">https://www.mail-archive.com/grass-user@lists.osgeo.org/msg36683.html</a></div>
<div class=""><br class="">
</div>
<div class="">Now I am not sure where to go next.</div>
<div class=""><br class="">
</div>
<div class="">Any help you can provide would greatly be appreciated.  Thanks.</div>
<div class=""><br class="">
</div>
<div class="">Kind Regards,</div>
<div class=""><br class="">
</div>
<div class="">Shaffiq</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Nov 21, 2021, at 5:48 PM, Shaffiq Somani <<a href="mailto:ssomani@msn.com" class="">ssomani@msn.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear GRASS Community,
<div class=""><br class="">
</div>
<div class="">I am trying to run grass as a Python script  for the gapfilling component of PySEBAL where the GitHub directory is shown below.   I have already imported the grass-session using the pip3 command.</div>
<div class=""><br class="">
</div>
<div class="">PySEBAL GitHub Directory GapFilling </div>
<div class=""><a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspareeth%2FPySEBAL_dev%2Ftree%2Fversion3.7.3%2Fgapfilling&data=04%7C01%7C%7Cb3e3347ca584491da59308d9ad495f77%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637731352914490210%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Eit62SvS5vmUmmO5rn3Y7PyAs1lEZcFINetngvrNIAw%3D&reserved=0" originalsrc="https://github.com/spareeth/PySEBAL_dev/tree/version3.7.3/gapfilling" shash="TrzxJORilEUj82wKHziQ+b0j4HcwjeBy+xpqjTMCZkMSudY3QCGvR5EBwHeHXLzH0AJ/i4kZcaL8j8f2mLGTnPh6jOucJYifsxBFJzjNMm+wdyJIaCSzMkDTweQF+bUUawBiKWjkM725tXesz1w8Luf3qofK6/snlTubcdTQbJ0=" class="">https://github.com/spareeth/PySEBAL_dev/tree/version3.7.3/gapfilling</a></div>
<div class=""><br class="">
</div>
<div class="">The Windows Environmental Variable setup file is shown below which I tried to follow in the  Jupyter Notebook and  see if I can import GRASS.  Unfortunately, I had no luck as shown in the screenshot.</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">set GRASSBIN=C:\OSGeo4W64\bin\grass78</div>
<div class="">set GISRC=C:\OSGeo4W64\apps\grass\grass78\demolocation\.grassrc78</div>
<div class="">set PATH=%PATH%;C:\OSGeo4W64\apps\grass\grass78\lib;C:\OSGeo4W64\apps\grass\grass78\bin;C:\OSGeo4W64\apps\grass\grass78\scripts</div>
</div>
<div class=""><br class="">
</div>
<div class="">Does anyone have ideas or suggestions on how to make GRASS GIS run on  the MacOS so I can make the gap fill_v3.py work with minimum alteration for the file.   I have seen a few suggestions, on trying to make grass run via python, but I have not
 had any luck.  .  Any help you can provide or point me too in the right direction would be greatly appreciated.</div>
<div class=""><br class="">
</div>
<div class="">Thanks.</div>
<div class=""><br class="">
</div>
<div class="">Kind Regards,</div>
<div class=""><br class="">
</div>
<div class="">Shaffiq</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><span id="cid:DCB271FD-70FB-4D2B-85FA-38EA7AADF8E2"><Screen Shot 2021-11-21 at 5.07.03 PM.png></span></div>
</div>
_______________________________________________<br class="">
grass-user mailing list<br class="">
<a href="mailto:grass-user@lists.osgeo.org" class="">grass-user@lists.osgeo.org</a><br class="">
https://lists.osgeo.org/mailman/listinfo/grass-user<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>