[GRASS-dev] [GRASS GIS] #3883: GRASS master does not compile with Python 3 on Mac

GRASS GIS trac at osgeo.org
Fri Feb 28 14:12:10 PST 2020


#3883: GRASS master does not compile with Python 3 on Mac
--------------------------+-------------------------
  Reporter:  cmbarton     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  major        |  Milestone:  7.8.3
 Component:  Default      |    Version:  svn-trunk
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by cmbarton):

 I just tried Nila's fix and it does compile. Anna's does not.
 Unfortunately, even though the first fix compiles successfully, the GRASS
 GUI will not launch. Here is the error:

 {{{

 Launching <wxpython> GUI in the background, please wait...
 GRASS 7.9.dev (nc_spm_08_grass7):~ > Traceback (most recent call last):
   File
 "/Applications/GRASS-7.9.app/Contents/Resources/gui/wxpython/wxgui.py",
 line 105, in OnInit
     from lmgr.frame import GMFrame
   File
 "/Applications/GRASS-7.9.app/Contents/Resources/gui/wxpython/lmgr/frame.py",
 line 51, in <module>
     from lmgr.layertree import LayerTree, LMIcons
   File
 "/Applications/GRASS-7.9.app/Contents/Resources/gui/wxpython/lmgr/layertree.py",
 line 38, in <module>
     from mapdisp.frame import MapFrame
   File
 "/Applications/GRASS-7.9.app/Contents/Resources/gui/wxpython/mapdisp/frame.py",
 line 33, in <module>
     from mapdisp.toolbars import MapToolbar, NvizIcons
   File
 "/Applications/GRASS-7.9.app/Contents/Resources/gui/wxpython/mapdisp/toolbars.py",
 line 22, in <module>
     from nviz.main import haveNviz
   File
 "/Applications/GRASS-7.9.app/Contents/Resources/gui/wxpython/nviz/main.py",
 line 24, in <module>
     from nviz import mapwindow
   File
 "/Applications/GRASS-7.9.app/Contents/Resources/gui/wxpython/nviz/mapwindow.py",
 line 42, in <module>
     from nviz.workspace import NvizSettings
   File
 "/Applications/GRASS-7.9.app/Contents/Resources/gui/wxpython/nviz/workspace.py",
 line 23, in <module>
     from nviz import wxnviz
   File
 "/Applications/GRASS-7.9.app/Contents/Resources/gui/wxpython/nviz/wxnviz.py",
 line 32, in <module>
     from numpy import matrix
   File "/Applications/GRASS-7.9.app/Contents/Resources/lib/python3.7/site-
 packages/numpy/__init__.py", line 142, in <module>
     from . import core
   File "/Applications/GRASS-7.9.app/Contents/Resources/lib/python3.7/site-
 packages/numpy/core/__init__.py", line 107, in <module>
     from . import _internal
   File "/Applications/GRASS-7.9.app/Contents/Resources/lib/python3.7/site-
 packages/numpy/core/_internal.py", line 20, in <module>
     IS_PYPY = platform.python_implementation() == 'PyPy'
   File
 "/Applications/GRASS-7.9.app/Contents/Resources/lib/python3.7/platform.py",
 line 1264, in python_implementation
     return _sys_version()[0]
   File
 "/Applications/GRASS-7.9.app/Contents/Resources/lib/python3.7/platform.py",
 line 1225, in _sys_version
     repr(sys_version))
 ValueError: failed to parse CPython sys.version: '3.7.0 (default, Jun 28
 2018, 07:39:16) \n[Clang 4.0.1 (tags/RELEASE_401/final)]'
 OnInit returned false, exiting...
 }}}

 I'm using OSX Mojave 10.14.6 with python 3.7.6

 v.in.pdal also does not compile. But that is another issue.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3883#comment:18>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list