[GRASS-dev] [GRASS GIS] #4015: ctypes: TypeError: item 1 in _argtypes_ passes a union by value, which is unsupported
GRASS GIS
trac at osgeo.org
Tue Jan 21 23:12:27 PST 2020
#4015: ctypes: TypeError: item 1 in _argtypes_ passes a union by value, which is
unsupported
----------------------------+---------------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.8.3
Component: Python ctypes | Version: git-releasebranch78
Resolution: | Keywords: ctypes, python3
CPU: Unspecified | Platform: Unspecified
----------------------------+---------------------------------
Comment (by Sylvain POULAIN):
Hi,
Don't know if it's related but seems to have same error in archlinux.
Build is fine but launching g.gui wxpython gives errors : All argtypes in
gis.py return error.
Using python 3.8.0 launch grass wxpython succesfully
{{{
$ pacman -Q python-wxpython
python-wxpython 4.0.7-1
$ pacman -Q python
python 3.8.1-3
}}}
{{{
$ grass78
Default locale not found, using UTF-8
Default locale settings are missing. GRASS running with C locale.
Starting GRASS GIS...
Cleaning up temporary files...
__________ ___ __________ _______________
/ ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
/ / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
/ /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
\____/_/ |_/_/ |_/____/____/ \____/___//____/
Welcome to GRASS GIS 7.8.2
GRASS GIS homepage: https://grass.osgeo.org
This version running through: Bash Shell (/bin/bash)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
See citation options with: g.version -x
If required, restart the GUI with: g.gui wxpython
When ready to quit enter: exit
Launching <wxpython> GUI in the background, please wait...
GRASS 7.8.2 (newLocation):~ > Traceback (most recent call last):
File "/usr/lib/python3.8/ctypes/__init__.py", line 99, 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 "/opt/grass/gui/wxpython/wxgui.py", line 105, in OnInit
from lmgr.frame import GMFrame
File "/opt/grass/gui/wxpython/lmgr/frame.py", line 51, in <module>
from lmgr.layertree import LayerTree, LMIcons
File "/opt/grass/gui/wxpython/lmgr/layertree.py", line 38, in <module>
from mapdisp.frame import MapFrame
File "/opt/grass/gui/wxpython/mapdisp/frame.py", line 33, in <module>
from mapdisp.toolbars import MapToolbar, NvizIcons
File "/opt/grass/gui/wxpython/mapdisp/toolbars.py", line 22, in <module>
from nviz.main import haveNviz
File "/opt/grass/gui/wxpython/nviz/main.py", line 24, in <module>
from nviz import mapwindow
File "/opt/grass/gui/wxpython/nviz/mapwindow.py", line 42, in <module>
from nviz.workspace import NvizSettings
File "/opt/grass/gui/wxpython/nviz/workspace.py", line 23, in <module>
from nviz import wxnviz
File "/opt/grass/gui/wxpython/nviz/wxnviz.py", line 51, in <module>
from grass.lib.gis import *
File "/opt/grass/etc/python/grass/lib/gis.py", line 552, in <module>
('checker', CFUNCTYPE(UNCHECKED(c_int), String)),
File "/usr/lib/python3.8/ctypes/__init__.py", line 101, in CFUNCTYPE
class CFunctionType(_CFuncPtr):
TypeError: item 1 in _argtypes_ passes a union by value, which is
unsupported.
OnInit returned false, exiting...
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/4015#comment:1>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list