Bug#953152: grass GUI fails to start with python traceback

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Thu Mar 5 09:56:00 GMT 2020


Package: grass
Version: 7.8.2-1
Severity: important

Hello,

trying to start grass with the GUI results in the following traceback

--8<-----------

Launching <wxpython> GUI in the background, please wait...
GRASS 7.8.2 (Etna):~ > Traceback (most recent call last):
  File "/usr/lib/python3.7/ctypes/__init__.py", line 97, in CFUNCTYPE
    return _c_functype_cache[(restype, argtypes, flags)]
KeyError: (<class 'ctypes.c_int'>, (<class 'grass.lib.ctypes_preamble.String'>,), 1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/grass78/gui/wxpython/wxgui.py", line 105, in OnInit
    from lmgr.frame import GMFrame
  File "/usr/lib/grass78/gui/wxpython/lmgr/frame.py", line 51, in <module>
    from lmgr.layertree import LayerTree, LMIcons
  File "/usr/lib/grass78/gui/wxpython/lmgr/layertree.py", line 38, in <module>
    from mapdisp.frame import MapFrame
  File "/usr/lib/grass78/gui/wxpython/mapdisp/frame.py", line 33, in <module>
    from mapdisp.toolbars import MapToolbar, NvizIcons
  File "/usr/lib/grass78/gui/wxpython/mapdisp/toolbars.py", line 22, in <module>
    from nviz.main import haveNviz
  File "/usr/lib/grass78/gui/wxpython/nviz/main.py", line 24, in <module>
    from nviz import mapwindow
  File "/usr/lib/grass78/gui/wxpython/nviz/mapwindow.py", line 42, in <module>
    from nviz.workspace import NvizSettings
  File "/usr/lib/grass78/gui/wxpython/nviz/workspace.py", line 23, in <module>
    from nviz import wxnviz
  File "/usr/lib/grass78/gui/wxpython/nviz/wxnviz.py", line 51, in <module>
    from grass.lib.gis import *
  File "/usr/lib/grass78/etc/python/grass/lib/gis.py", line 552, in <module>
    ('checker', CFUNCTYPE(UNCHECKED(c_int), String)),
  File "/usr/lib/python3.7/ctypes/__init__.py", line 99, in CFUNCTYPE
    class CFunctionType(_CFuncPtr):
TypeError: item 1 in _argtypes_ passes a union by value, which is unsupported.
OnInit returned false, exiting...

--8<-----------

and the GUI not starting.

I have found an issue on the osgeo trac

https://trac.osgeo.org/grass/ticket/4015

that seems to indicate the issue is actually in the Python 3
interpreter.

Best regards,

GB



-- System Information:
Debian Release: bullseye/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-4-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages grass depends on:
ii  grass-core  7.8.2-1+b2
ii  grass-gui   7.8.2-1+b2

Versions of packages grass recommends:
ii  grass-doc  7.8.2-1

Versions of packages grass suggests:
pn  grass-dev  <none>

-- no debconf information



More information about the Pkg-grass-devel mailing list