<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="">Here's what I'm seeing in the GRASS that I just installed from the same installer.  The commands at the terminal show me:<div class=""><br class=""></div><div class="">1. The location of the python being executed</div><div class="">2. The location of the pip being executed</div><div class="">3. Which error happens when I try to install pandas</div><div class="">4. Changing the shell to zsh</div><div class="">5. Checking whether that changed the python available</div><div class="">6. Error when I try to install pandas</div><div class=""><br class=""></div><div class="">As I suspected, the application Python is not able to use pip install to install pandas.  The next step is to determine how to </div><div class=""><br class=""></div><div class="">1) change the Python that builds with GRASS</div><div class="">2) give that Python access to the system framework libraries that allow things to build</div><div class=""><br class=""></div><div class="">If it's feasible, the easiest way to use OSGEO things on Mac is with Docker containers. Does that help at all?</div><div class=""><br class=""></div><div class="">Dheeraj</div><div class=""><br class=""><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">GRASS 7.8.6 (test):~ > which python</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Applications/GRASS-7.8.app/Contents/Resources/bin/python</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">GRASS 7.8.6 (test):~ > which pip</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Applications/GRASS-7.8.app/Contents/Resources/bin/pip</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">GRASS 7.8.6 (test):~ > pip install pandas</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Applications/GRASS-7.8.app/Contents/Resources/bin/pip: line 4: import: command not found</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Applications/GRASS-7.8.app/Contents/Resources/bin/pip: line 5: import: command not found</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">from: can't read /var/mail/pip._internal.cli.main</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Applications/GRASS-7.8.app/Contents/Resources/bin/pip: line 10: syntax error near unexpected token `('</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Applications/GRASS-7.8.app/Contents/Resources/bin/pip: line 10: `    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])'</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">GRASS 7.8.6 (test):~ > echo $SHELL</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/bin/bash</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">GRASS 7.8.6 (test):~ > chsh -s /usr/local/bin/zsh</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Changing shell for dheerajchand.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Password for dheerajchand: </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">chsh: Credentials could not be verified, username or password is invalid.  Credentials could not be verified, username or password is invalid.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">GRASS 7.8.6 (test):~ > chsh -s /usr/local/bin/zsh</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Changing shell for dheerajchand.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Password for dheerajchand: </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">chsh: /usr/local/bin/zsh: non-standard shell</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">GRASS 7.8.6 (test):~ > which python</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Applications/GRASS-7.8.app/Contents/Resources/bin/python</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">GRASS 7.8.6 (test):~ > pip install pandas</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Applications/GRASS-7.8.app/Contents/Resources/bin/pip: line 4: import: command not found</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Applications/GRASS-7.8.app/Contents/Resources/bin/pip: line 5: import: command not found</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">from: can't read /var/mail/pip._internal.cli.main</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Applications/GRASS-7.8.app/Contents/Resources/bin/pip: line 10: syntax error near unexpected token `('</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Applications/GRASS-7.8.app/Contents/Resources/bin/pip: line 10: `    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])'</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Roboto Mono for Powerline"; background-color: rgba(128, 128, 128, 0.5);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">GRASS 7.8.6 (test):~ > </span></div><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 20, 2021, at 8:20 AM, Dheeraj Chand <<a href="mailto:dheeraj@dheerajchand.com" class="">dheeraj@dheerajchand.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class="">Let me try this when I get to my desk. My suspicion is that the Python that GRASS is using does not have Pandas and that the path inside the self-contained binary’s terminal does not easily give you access to the foundation libraries you’ll need to install it. <div class=""><br class=""></div><div class="">Let me check and let you know. <br class=""><br class=""><div dir="ltr" class="">Sent from my iPhone</div><div dir="ltr" class=""><br class=""><blockquote type="cite" class="">On Dec 20, 2021, at 7:57 AM, Gioia Blayer <<a href="mailto:gioia.blayer@mail.huji.ac.il" class="">gioia.blayer@mail.huji.ac.il</a>> wrote:<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class=""><div dir="ltr" class="">Thank you all for the reply and help,<div class=""><br class=""></div><div class="">Veronica - I tried according to the link sent but unfortunately it still doesn't work.</div><div class=""><br class=""></div><div class="">Dheeraj - I downloaded GRASS GIS 7.8.6 from the link on the website <a href="https://grass.osgeo.org/download/mac/" class="">https://grass.osgeo.org/download/mac/</a> and followed the instructions given. Is this what you meant?</div><div class=""><br class=""></div><div class="">Overall I am able to install Add-ons, it's just with the add-ons that depend on python packages (like r.area.createweight that depends on pandas and scikit-learn) that I have difficulty in installing the relevant packages in GRASS GIS python environment. Maybe I'm missing something - I will try to remove and re-install the program from scratch.</div><div class=""><br class=""></div><div class="">Thanks again!</div><div class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 20, 2021 at 3:19 PM Dheeraj Chand <<a href="mailto:dheeraj@dheerajchand.com" class="">dheeraj@dheerajchand.com</a>> wrote:<br class=""></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="auto" class="">This may also depend on how you have built GRASS on Mac. There are a few ways to do it, all of which are a big pain! Which technique did you use?<br class=""><br class=""><div dir="ltr" class="">Sent from my iPhone</div><div dir="ltr" class=""><br class=""><blockquote type="cite" class="">On Dec 20, 2021, at 5:42 AM, Veronica Andreo <<a href="mailto:veroandreo@gmail.com" target="_blank" class="">veroandreo@gmail.com</a>> wrote:<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">Hi Gioia,</div><div class=""><br class=""></div><div class="">Have you tried with `pip3 install pandas` in the terminal? I guess the pandas you use within pycharm is in a virtualenv or so, and grass might not have access to it. I do not use Mac but I found this: <a href="https://www.geeksforgeeks.org/how-to-install-python-pandas-on-macos/" target="_blank" class="">https://www.geeksforgeeks.org/how-to-install-python-pandas-on-macos/</a></div><div class=""><br class=""></div><div class="">hope that helps</div><div class="">Vero<br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El dom, 19 dic 2021 a las 15:33, Gioia Blayer (<<a href="mailto:gioia.blayer@mail.huji.ac.il" target="_blank" class="">gioia.blayer@mail.huji.ac.il</a>>) escribió:<br class=""></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" class="">Hello everyone, <div class=""><br class=""></div><div class="">I am trying to install the module r.area.createweight in <span class="">GRASS</span> GIS version 7.8.6 on macOS Monterey 12.1. When I run the command g.extension r.area.createweight from the console in <span class="">GRASS</span> GIS I get the following error:<br class=""><br class=""></div><div class="">Fetching <r.area.createweight> from <span class="">GRASS</span> GIS Addons repository (be patient)...<br class="">ERROR: Pandas is not installed<br class="">Compiling...<br class="">[make: *** [r.area.createweight.tmp.html] Error 1<br class="">ERROR: Compilation failed, sorry. Please check the above error messages.<br class=""></div><div class=""><br class=""></div><div class=""><span style="color:rgb(34,35,31);font-family:"Source Sans Pro",Helvetica,sans-serif;font-size:15.12px;white-space:pre-wrap" class="">I do have Pandas because I use it for python in pycharm, but I do not understand how to install Pandas in the <span class="">GRASS</span> GIS environment. </span><br class=""></div><div class="">Hope someone can help me with this, I feel it's something quick and technical but I'm new to <span class="">grass</span> gis, so it takes me some time to learn it.</div><div class=""><br class="">Thank you in advance for the time and help!</div></div>
_______________________________________________<br class="">
grass-user mailing list<br class="">
<a href="mailto:grass-user@lists.osgeo.org" target="_blank" class="">grass-user@lists.osgeo.org</a><br class="">
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br class="">
</blockquote></div>
<span class="">_______________________________________________</span><br class=""><span class="">grass-user mailing list</span><br class=""><span class=""><a href="mailto:grass-user@lists.osgeo.org" target="_blank" class="">grass-user@lists.osgeo.org</a></span><br class=""><span class=""><a href="https://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank" class="">https://lists.osgeo.org/mailman/listinfo/grass-user</a></span><br class=""></div></blockquote></div></blockquote></div>
</div></blockquote></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></div></body></html>