On Fri, Jul 28, 2017 at 3:49 PM, Michael Barton <[email protected]>
wrote:

>
> 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
>

These commands my be useful for debugging this:

$ python --version
$ grass72 /your/test/mapset --exec python --version

$ evn
$ grass72 /your/test/mapset --exec env

You can use -c to pass code to Python, so for example:

$ python -c "import wx; import wxversion; print(wx.VERSION_STRING)"
$ grass72 /your/test/mapset --exec python -c "import wx; import wxversion;
print(wx.VERSION_STRING)"

$ python -c "import sys; print(sys.executable)"
$ grass72 /your/test/mapset --exec python -c "import sys;
print(sys.executable)"

$ python -c "import os; print(os.environ['PATH'])"
$ grass72 /your/test/mapset --exec python -c "import os;
print(os.environ['PATH'])"

$ python -c "import os; print(os.environ['GRASS_PYTHON'])"
$ grass72 /your/test/mapset --exec python -c "import os;
print(os.environ['GRASS_PYTHON'])"

$ python -c "import os; print(os.environ['GRASS_PYTHONWX'])"
$ grass72 /your/test/mapset --exec python -c "import os;
print(os.environ['GRASS_PYTHONWX'])"
_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to