[GRASS-dev] New attempt to update GRASS for Mac

Vaclav Petras wenzeslaus at gmail.com
Thu Jul 27 20:43:17 PDT 2017


On Thu, Jul 27, 2017 at 11:13 PM, Michael Barton <Michael.Barton at asu.edu>
wrote:

> I don't remember the exact wording. I had set up a conda virtual
> environment to force GRASS to compile and run with Anaconda Python and
> wxPython 4. When I launched GRASS (trunk), I got an error message that it
> would only run with a system Python. I thought that is weird.
>
> Anyway, I tried setting GRASS_PYTHON to no avail. See below:
>
>  g.gisenv get=GRASS_PYTHON
> "/Applications/anaconda/bin/python"GRASS 7.3.svn (nc_spm_08_grass7):~ >
> python
> Python 2.7.10 (default, Feb  7 2017, 00:08:15)
> [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>
> GRASS_PYTHON, is set, but it is still using system Python 2.7.10 instead
> of Anaconda Python 2.7.13
>
>

GRASS_PYTHON is actually an environmental variable (system driven, not by
GRASS) , so you need to use:

export GRASS_PYTHON=/.../python  # set value
echo $GRASS_PYTHON  # get value

g.setenv changes the GRASS (environment) variables (aka "GIS env" or "GRASS
variables").

https://grass.osgeo.org/grass72/manuals/variables.html
https://grass.osgeo.org/grass72/manuals/g.gisenv.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20170727/46bdd5fc/attachment.html>


More information about the grass-dev mailing list