Hi William, That would indeed be useful, especially to make sure a specific version of Python and wxPython are used. But it doesn't seem to do anything. Does anyone know if this is used anywhere?
Related to this, is there a way to set the Python used at launch? Michael ____________________ C. Michael Barton Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Head, Graduate Faculty in Complex Adaptive Systems Science Arizona State University voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC) fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC) www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu On Jul 28, 2017, at 2:19 PM, William Kyngesburye <[email protected]<mailto:[email protected]>> wrote: I think the intent was to be able to customize python and pythonw separately, if only to have that possibility, I don't remember if there was a specific reason. On Jul 28, 2017, at 3:13 PM, Michael Barton <[email protected]<mailto:[email protected]>> wrote: I had to hack python_wrapper to the following: if [ -z "$GISBASE" ] ; then echo "You must be in GRASS GIS to run this program." >&2 exit 1 fi SYSARCH=`uname -p` SYSVER=`uname -r | cut -d . -f 1` if [ ! "$GRASS_PYTHONWX" ] ; then GRASS_PYTHONWX="pythonw" fi exec "$GRASS_PYTHONWX" "$@" I don't know what GRASS_PYTHONWX does that GRASS_PYTHON does not do. Michael ____________________ C. Michael Barton Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Head, Graduate Faculty in Complex Adaptive Systems Science Arizona State University voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC) fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC) www: http://www.public.asu.edu/~cmbarton<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=DwMFAg&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=GCnyti8uk-7KIT4lKgrY2n16zBETeva4bJ9j5qVCvNo&s=rLzmaVSxnzw6taZIYalKUqSQN0E4kIO5svmzhRwYtus&e=>, http://csdc.asu.edu<https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu_&d=DwMFAg&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=GCnyti8uk-7KIT4lKgrY2n16zBETeva4bJ9j5qVCvNo&s=_WoWrv3cSoEKQ8wiOSaNoHJ52PZ2OAFX2P7JVLUbAZg&e=> On Jul 28, 2017, at 2:06 PM, William Kyngesburye <[email protected]<mailto:[email protected]>> wrote: Maybe it's the python wrapper - it does 2 things: force python to run 32bit if wxpython is 32bit, and run pythonw that wxpython needs. There is a 2nd env var to set pythonw (I think it's only used here): GRASS_PYTHONWX. On Jul 28, 2017, at 2:49 PM, Michael Barton <[email protected]<mailto:[email protected]>> wrote: ARGGH! Set up and activated virtual environment in conda Ensured that Anaconda Python is default Ensured that Anaconda wxPython 4 is default Compiled GRASS trunk in this environment Launched the app created and... Launching <wxpython> GUI in the background, please wait... 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. >>> import wx >>> import wxversion >>> wx.VERSION_STRING '3.0.2.0' >>> Using my system Python and system wxPython Michael ____________________ C. Michael Barton Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Head, Graduate Faculty in Complex Adaptive Systems Science Arizona State University voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC) fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC) www: http://www.public.asu.edu/~cmbarton<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=DwMFAg&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=BePmQvHoak5xlL1EvjF6leyzps0b-NaCbBHQvvipy0o&s=_csIynda46fLrto5tgTY45hzaeR_3subkBE0NlQ6dJM&e=>, http://csdc.asu.edu<https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu_&d=DwMFAg&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=BePmQvHoak5xlL1EvjF6leyzps0b-NaCbBHQvvipy0o&s=eb_Wwy_PkOFHe76953UsBPByTCPfg5EYVkgipGiQ76A&e=> On Jul 28, 2017, at 12:09 PM, Michael Barton <[email protected]<mailto:[email protected]>> wrote: Previously, we needed to set this path to compile GRASS so that it worked with wxPython wrappers for wxWidgets. I will do a new compile without this argument and see what happens. In any case, I need to be able to make sure that GRASS uses the wxPython that is bundled with it by default to avoid differences in versions and SIP issues. Michael ____________________ C. Michael Barton Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Head, Graduate Faculty in Complex Adaptive Systems Science Arizona State University voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC) fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC) www: http://www.public.asu.edu/~cmbarton<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=DwMFAg&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=BePmQvHoak5xlL1EvjF6leyzps0b-NaCbBHQvvipy0o&s=_csIynda46fLrto5tgTY45hzaeR_3subkBE0NlQ6dJM&e=>, http://csdc.asu.edu<https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu_&d=DwMFAg&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=BePmQvHoak5xlL1EvjF6leyzps0b-NaCbBHQvvipy0o&s=eb_Wwy_PkOFHe76953UsBPByTCPfg5EYVkgipGiQ76A&e=> On Jul 28, 2017, at 7:56 AM, Vaclav Petras <[email protected]<mailto:[email protected]>> wrote: On Thu, Jul 27, 2017 at 11:52 PM, Michael Barton <[email protected]<mailto:[email protected]>> wrote: > > The other issue I'm hitting is that the configure argument to enable > wxPython, '-with-wxwidgets=' expects a path to a wx_config file. AFAICT, > wxPython 4 does not have such a file. And I can't yet find anything that > seems to serve the same function. I can put in a path to the folder/directory > where the wxPython 4 files live. While this compiles without error, I don't > think it is using wxPython 4. > --with-wxwidgets= is for wxWidgets (C++ library), not wxPython (its Python wrapper), so you don't need to use at all. wxPython must be part of the Python installation you are using. _______________________________________________ grass-dev mailing list [email protected]<mailto:[email protected]> https://lists.osgeo.org/mailman/listinfo/grass-dev<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.osgeo.org_mailman_listinfo_grass-2Ddev&d=DwMFAg&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=GCnyti8uk-7KIT4lKgrY2n16zBETeva4bJ9j5qVCvNo&s=9xs3bs-NPx6QpMIrXrpvCRUbgTelio8gEbXYFKZnn5k&e=> ----- William Kyngesburye <kyngchaos*at*kyngchaos*dot*com> http://www.kyngchaos.com/<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kyngchaos.com_&d=DwMFAg&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=BePmQvHoak5xlL1EvjF6leyzps0b-NaCbBHQvvipy0o&s=qAnOvZ4T7HOA1oyBToDaz0s0eA2rDtnmkwrlfjx05DM&e=> "We can die but once, and that once we must die. To be always fearing, then, would not avert it, and would make life miserable." - Tarzan, on death _______________________________________________ grass-dev mailing list [email protected]<mailto:[email protected]> https://lists.osgeo.org/mailman/listinfo/grass-dev ----- William Kyngesburye <kyngchaos*at*kyngchaos*dot*com> http://www.kyngchaos.com/<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kyngchaos.com_&d=DwMFAg&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=GCnyti8uk-7KIT4lKgrY2n16zBETeva4bJ9j5qVCvNo&s=wSXlV0cx2PDF7K0wu43KHliqtHTeJEDhqk2gA1JrUCw&e=> "We can die but once, and that once we must die. To be always fearing, then, would not avert it, and would make life miserable." - Tarzan, on death
_______________________________________________ grass-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/grass-dev
