-
-
Notifications
You must be signed in to change notification settings - Fork 369
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
Ctypes failure appears with Python 3.7. Not reproduceable with Python 3.6
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 "/opt/src/grass/dist.x86_64-pc-linux-gnu/scripts/t.create", line 92, in <module>
main()
File "/opt/src/grass/dist.x86_64-pc-linux-gnu/scripts/t.create", line 74, in main
import grass.temporal as tgis
File "/opt/src/grass/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/__init__.py", line 3, in <module>
from .core import *
File "/opt/src/grass/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/core.py", line 39, in <module>
from .c_libraries_interface import *
File "/opt/src/grass/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/c_libraries_interface.py", line 20, in <module>
import grass.lib.gis as libgis
File "/opt/src/grass/dist.x86_64-pc-linux-gnu/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.
To Reproduce
./bin.x86_64-pc-linux-gnu/grass79 -c /tmp/test
t.create test tit=x desc=y
System description (please complete the following information):
- Operating System: Linux
- GRASS GIS version 7.9
- Python 3.7.6
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working