<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear Moritz,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span title="" class="">Thank you</span><span id="" title="" class="" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;"> for your response since its greatly appreciated. </span><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">Sorry,
I just saw your message since it went into the spam folder. I have a couple of questions for you if you have a moment free. I looked at the Linux environmental variables which is </span><span class="pl-k" style="caret-color: rgb(0, 0, 0); color: rgb(12, 100, 192); box-sizing: border-box; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);">export</span><span style="caret-color: rgb(201, 209, 217); color: rgb(12, 100, 192); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255); display: inline !important;"> GRASS_BIN=/usr/bin/grass78, </span><span style="caret-color: rgb(201, 209, 217); color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255); display: inline !important;">but
changed it to GRASSBASE and opened up the unix file as shown in the screenshot below. I still get the following errors. Is there anything else that I am missing or should I be doing this another way. Thanks.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(201, 209, 217); color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255); display: inline !important;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(201, 209, 217); color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255); display: inline !important;">Kind Regards,</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(201, 209, 217); color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255); display: inline !important;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(201, 209, 217); color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255); display: inline !important;">Shaffiq</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<img style="max-width: 100%;" size="507264" contenttype="image/png" data-outlook-trace="F:1|T:1" src="cid:2c15f0d4-fbb2-4c60-9c09-8a606f896c85"><br>
</div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Moritz Lennert <mlennert@club.worldonline.be><br>
<b>Sent:</b> Monday, November 22, 2021 2:16 AM<br>
<b>To:</b> grass-user@lists.osgeo.org <grass-user@lists.osgeo.org>; Shaffiq Somani <ssomani@msn.com><br>
<b>Subject:</b> Re: [GRASS-user] Running a python script using GRASS GIS on a Mac</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Hi Shaffiq,<br>
<br>
<br>
Le 22 novembre 2021 00:48:04 GMT+01:00, Shaffiq Somani <ssomani@msn.com> a écrit :<br>
>Dear GRASS Community,<br>
><br>
>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.<br>
><br>
>PySEBAL GitHub Directory GapFilling<br>
><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%7Cf535d63b09244ba1e6fa08d9ad881614%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637731622263517024%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=zPp%2BeqagyPPRsG%2BWpZ0%2B3YrPXhsD5hCYEixbfAX3zhA%3D&reserved=0">https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspareeth%2FPySEBAL_dev%2Ftree%2Fversion3.7.3%2Fgapfilling&data=04%7C01%7C%7Cf535d63b09244ba1e6fa08d9ad881614%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637731622263517024%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=zPp%2BeqagyPPRsG%2BWpZ0%2B3YrPXhsD5hCYEixbfAX3zhA%3D&reserved=0</a><br>
><br>
>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.<br>
><br>
>set GRASSBIN=C:\OSGeo4W64\bin\grass78<br>
<br>
<br>
As you can see here, GRASSBIN points to the actual 'binary' file that contains the GRASS GIS launch script (grass78). In your example it seems to me that you only point to the directory that contains it, not the actual file. Try adding the name of the file
to your path.<br>
<br>
Moritz<br>
<br>
</div>
</span></font></div>
</body>
</html>