<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Here is the error and its cause
<div class=""><br class="">
</div>
<div class="">From the GRASS terminal, I set the environment so that it defaults to Anaconda Python and wxPython (the environment of compilation). </div>
<div class=""><br class="">
</div>
<div class="">GRASS 7.3.svn (nc_spm_08_grass7):~ > export PATH="/Applications/anaconda/bin:$PATH"</div>
<div class=""><br class="">
</div>
<div class="">Test the environment. </div>
<div class=""><br class="">
GRASS 7.3.svn (nc_spm_08_grass7):~ > python<br class="">
Python 2.7.13 |Anaconda custom (x86_64)| (default, Dec 20 2016, 23:05:08) <br class="">
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin<br class="">
Type "help", "copyright", "credits" or "license" for more information.<br class="">
Anaconda is brought to you by Continuum Analytics.<br class="">
Please check out: <a href="http://continuum.io/thanks" class="">http://continuum.io/thanks</a> and
<a href="https://anaconda.org" class="">https://anaconda.org</a><br class="">
>>> import wx<br class="">
>>> wx.VERSION_STRING<br class="">
'4.0.0b1'<br class="">
>>> </div>
<div class=""><br class="">
</div>
<div class="">Yes. Defaulting to Anaconda Python and wxPython 4.</div>
<div class=""><br class="">
</div>
<div class="">Relaunch the GUI. Note the Mac specific error message.</div>
<div class=""><br class="">
GRASS 7.3.svn (nc_spm_08_grass7):~ > g.gui<br class="">
Launching <wxpython> GUI in the background, please wait...<br class="">
This program needs access to the screen.<br class="">
Please run with a Framework build of python, and only when you are<br class="">
logged in on the main display of your Mac.</div>
<div class=""><br class="">
</div>
<div class="">Tried setting GRASS_PYTHON</div>
<div class=""><br class="">
</div>
<div class="">GRASS 7.3.svn (nc_spm_08_grass7):~ > export GRASS_PYTHON="/Applications/anaconda/bin/pythonw"</div>
<div class="">GRASS 7.3.svn (nc_spm_08_grass7):~ > g.gui</div>
<div class="">Launching <wxpython> GUI in the background, please wait...<br class="">
<br class="">
</div>
<div class="">This works (note that export GRASS_PYTHON="/Applications/anaconda/bin/python" does NOT work).</div>
<div class="">AFAICT, it is running with wxPython 4 beta 1 now. At least that is what comes up if I launch python from the GRASS terminal, import wx, and then run wx.VERSION_STRING. If so, it looks just like wxPython 3, and has all the same issues--and no new
ones that I can see.</div>
<div class=""><br class="">
</div>
<div class="">Also, I eliminated the '--with_wxwidgets=' argument and trunk compiles the same as with it. </div>
<div class=""><br class="">
</div>
<div class="">So far so good. I still need to make sure that when I create the app bundle with Python and wxPython, GRASS Mac will use those versions and now what is on the system.</div>
<div class=""><br class="">
</div>
<div class="">Michael</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;" class="">
____________________</div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal;" class="">
<font face="Helvetica" size="3" class="">C. Michael Barton</font></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal;" class="">
<font face="Helvetica" size="3" class="">Director, Center for Social Dynamics & Complexity </font></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal;" class="">
<font face="Helvetica" size="3" class="">Professor of Anthropology, School of Human Evolution & Social Change</font></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">Head, Graduate Faculty in Complex Adaptive Systems Science</font></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal;" class="">
<font face="Helvetica" size="3" class="">Arizona State University</font></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; line-height: normal; -webkit-text-decorations-in-effect: none;" class="">
<br class="">
</div>
<font face="Helvetica" size="3" style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><font class="">voice: </font><font class="">480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)</font><br class="">
<font class="">fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)</font><br class="">
</font>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal;" class="">
<font face="Helvetica" size="3" class="">www: <a href="http://www.public.asu.edu/~cmbarton" class="">
http://www.public.asu.edu/~cmbarton</a>, <a href="http://csdc.asu.edu" class="">http://csdc.asu.edu</a></font></div>
<br class="">
</div>
<br class="">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jul 27, 2017, at 6:34 PM, Anna Petrášová <<a href="mailto:kratochanna@gmail.com" class="">kratochanna@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">On Thu, Jul 27, 2017 at 8:13 PM, Michael Barton <<a href="mailto:Michael.Barton@asu.edu" class="">Michael.Barton@asu.edu</a>> wrote:<br class="">
<blockquote type="cite" class="">It seems that GRASS (at least GRASS for Mac) will only use the system<br class="">
Python. If I set up an environment in which Anaconda python is default,<br class="">
GRASS will not start and gives an error message that it will only run with<br class="">
the system Python. I don't know where this is coming from. It doesn't seem<br class="">
to be from the python_wrapper script. This will need to be changed if I am<br class="">
to package Python with GRASS.<br class="">
</blockquote>
<br class="">
What exactly is the error? I know I was able to use GRASS_PYTHON<br class="">
variable previously to set the python I needed.<br class="">
<br class="">
Anna<br class="">
<br class="">
<blockquote type="cite" class=""><br class="">
Michael<br class="">
____________________<br class="">
C. Michael Barton<br class="">
Director, Center for Social Dynamics & Complexity<br class="">
Professor of Anthropology, School of Human Evolution & Social Change<br class="">
Head, Graduate Faculty in Complex Adaptive Systems Science<br class="">
Arizona State University<br class="">
<br class="">
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)<br class="">
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)<br class="">
www: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ejnQRWolrucufjW07P5RKvDkaAo__J6-niGuF5D7eNg&s=97LlCjf7C4a6iG9wGSVOYu1lQuVXSps_-yEnDAGKWIE&e=" class="">
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ejnQRWolrucufjW07P5RKvDkaAo__J6-niGuF5D7eNg&s=97LlCjf7C4a6iG9wGSVOYu1lQuVXSps_-yEnDAGKWIE&e=</a>
, <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ejnQRWolrucufjW07P5RKvDkaAo__J6-niGuF5D7eNg&s=-IglMTXE4z0Ek6alARnfLbHdyXb7iyo7bg3-Gf0Uyb8&e=" class="">
https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ejnQRWolrucufjW07P5RKvDkaAo__J6-niGuF5D7eNg&s=-IglMTXE4z0Ek6alARnfLbHdyXb7iyo7bg3-Gf0Uyb8&e=</a>
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
On Jul 27, 2017, at 1:33 PM, Anna Petrášová <<a href="mailto:kratochanna@gmail.com" class="">kratochanna@gmail.com</a>> wrote:<br class="">
<br class="">
On Thu, Jul 27, 2017 at 3:03 PM, Michael Barton <<a href="mailto:Michael.Barton@asu.edu" class="">Michael.Barton@asu.edu</a>><br class="">
wrote:<br class="">
<br class="">
<br class="">
<br class="">
On Jul 27, 2017, at 12:46 PM, Anna Petrášová <<a href="mailto:kratochanna@gmail.com" class="">kratochanna@gmail.com</a>> wrote:<br class="">
<br class="">
I think you can use pip to install it with whatever Python you use, at<br class="">
least that's what works on Linux.<br class="">
<br class="">
<br class="">
How do you specify which Python in pip?<br class="">
<br class="">
<br class="">
It uses whichever Python is first on the path, you can find out with<br class="">
<br class="">
which python<br class="">
<br class="">
probably you can use also something like this:<br class="">
<br class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__stackoverflow.com_a_4910393_1058453&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=MCkZA0y-uOGAo8gOeYPoP_uqc1lzXM6XCXuCQayAyS0&s=_vBpVdLmTTjrHrftXdNANYEvTAotd9_enwM-I1H_YFQ&e=" class="">https://urldefense.proofpoint.com/v2/url?u=https-3A__stackoverflow.com_a_4910393_1058453&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=MCkZA0y-uOGAo8gOeYPoP_uqc1lzXM6XCXuCQayAyS0&s=_vBpVdLmTTjrHrftXdNANYEvTAotd9_enwM-I1H_YFQ&e=</a><br class="">
<br class="">
<br class="">
Michael<br class="">
<br class="">
____________________<br class="">
C. Michael Barton<br class="">
Director, Center for Social Dynamics & Complexity<br class="">
Professor of Anthropology, School of Human Evolution & Social Change<br class="">
Head, Graduate Faculty in Complex Adaptive Systems Science<br class="">
Arizona State University<br class="">
<br class="">
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)<br class="">
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)<br class="">
www:<br class="">
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=MCkZA0y-uOGAo8gOeYPoP_uqc1lzXM6XCXuCQayAyS0&s=9rsZ1tUV9snbiCH4rN8yrhhd4hDrfvamcPxF7y3cvRE&e=<br class="">
,<br class="">
https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=MCkZA0y-uOGAo8gOeYPoP_uqc1lzXM6XCXuCQayAyS0&s=8dy6hAPGI8vce9HOn68hYqtyg7hzPG5nT_Nt0fQIGCk&e=<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>