#3682: t.rast.algebra: Error wrong type of input --------------------------+------------------------------------- Reporter: veroandreo | Owner: grass-dev@… Type: defect | Status: new Priority: major | Milestone: 7.8.0 Component: Temporal | Version: svn-trunk Resolution: | Keywords: t.rast.algebra, python3 CPU: Unspecified | Platform: Unspecified --------------------------+-------------------------------------
Comment (by neteler): I tested this again in a virtualenv-3 (see [https://trac.osgeo.org/grass/wiki/Python3Support#Howtotest here]) and got stuck with {{{ ctypes.ArgumentError: argument 1: <class 'TypeError'>: expected LP_c_char instance, got bytes }}} .. an encoding issue? Full test: {{{ GRASS 7.7.svn (nc_spm_08_grass7):~ > t.create output=A type=strds temporaltype=absolute title="test" description="test" Process Process-2: Traceback (most recent call last): File "/usr/lib64/python3.7/multiprocessing/process.py", line 297, in _bootstrap self.run() File "/usr/lib64/python3.7/multiprocessing/process.py", line 99, in run self._target(*self._args, **self._kwargs) File "/home/mneteler/software/grass77/dist.x86_64-pc-linux- gnu/etc/python/grass/temporal/c_libraries_interface.py", line 959, in c_library_server functions[data[0]](lock, conn, data) File "/home/mneteler/software/grass77/dist.x86_64-pc-linux- gnu/etc/python/grass/temporal/c_libraries_interface.py", line 241, in _get_driver_name drstring = libtgis.tgis_get_mapset_driver_name(mapset) ctypes.ArgumentError: argument 1: <class 'TypeError'>: expected LP_c_char instance, got bytes WARNING:root:Needed to restart the libgis server, caller: Server check thread Traceback (most recent call last): File "/home/mneteler/software/grass77/dist.x86_64-pc-linux- gnu/etc/python/grass/pygrass/rpc/base.py", line 161, in safe_receive ret = self.client_conn.recv() File "/usr/lib64/python3.7/multiprocessing/connection.py", line 250, in recv buf = self._recv_bytes() File "/usr/lib64/python3.7/multiprocessing/connection.py", line 407, in _recv_bytes buf = self._recv(4) File "/usr/lib64/python3.7/multiprocessing/connection.py", line 383, in _recv raise EOFError EOFError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/mneteler/software/grass77/dist.x86_64-pc-linux- gnu/scripts/t.create", line 92, in <module> main() File "/home/mneteler/software/grass77/dist.x86_64-pc-linux- gnu/scripts/t.create", line 85, in main tgis.init() File "/home/mneteler/software/grass77/dist.x86_64-pc-linux- gnu/etc/python/grass/temporal/core.py", line 571, in init driver_string = ciface.get_driver_name() File "/home/mneteler/software/grass77/dist.x86_64-pc-linux- gnu/etc/python/grass/temporal/c_libraries_interface.py", line 1487, in get_driver_name return self.safe_receive("get_driver_name") File "/home/mneteler/software/grass77/dist.x86_64-pc-linux- gnu/etc/python/grass/pygrass/rpc/base.py", line 168, in safe_receive raise FatalError("Exception raised: " + str(e) + " Message: " + message) grass.exceptions.FatalError: Exception raised: Message: get_driver_name WARNING:root:Needed to restart the libgis server, caller: Server check thread }}} -- Ticket URL: <https://trac.osgeo.org/grass/ticket/3682#comment:5> GRASS GIS <https://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev