[GRASS-dev] [GRASS GIS] #3720: temporal modules fail with python 3

GRASS GIS trac at osgeo.org
Thu Dec 27 15:06:12 PST 2018


#3720: temporal modules fail with python 3
-------------------------------+-------------------------
 Reporter:  veroandreo         |      Owner:  grass-dev@…
     Type:  defect             |     Status:  new
 Priority:  critical           |  Milestone:  7.8.0
Component:  Temporal           |    Version:  svn-trunk
 Keywords:  temporal, python3  |        CPU:  x86-64
 Platform:  Linux              |
-------------------------------+-------------------------
 Temporal modules do not work with python3 in virtualenv. In a mapset where
 I have strds, I run `t.list` and I get:

 {{{
 Process Process-2:
 Traceback (most recent call last):
   File "/usr/lib64/python3.6/multiprocessing/process.py", line 258, in
 _bootstrap
     self.run()
   File "/usr/lib64/python3.6/multiprocessing/process.py", line 93, in run
     self._target(*self._args, **self._kwargs)
   File "/home/veroandreo/software/grass7_trunk/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/veroandreo/software/grass7_trunk/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/veroandreo/software/grass7_trunk/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.6/multiprocessing/connection.py", line 250, in
 recv
     buf = self._recv_bytes()
   File "/usr/lib64/python3.6/multiprocessing/connection.py", line 407, in
 _recv_bytes
     buf = self._recv(4)
   File "/usr/lib64/python3.6/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/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
 gnu/scripts/t.list", line 186, in <module>
     main()
   File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
 gnu/scripts/t.list", line 112, in main
     tgis.init()
   File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
 gnu/etc/python/grass/temporal/core.py", line 571, in init
     driver_string = ciface.get_driver_name()
   File "/home/veroandreo/software/grass7_trunk/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/veroandreo/software/grass7_trunk/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
 }}}

 Same if I try to create a stds with `t.create`, ask info with `t.info` and
 so on...

 All temporal functionality is up and running in 76 release branch though.

 See also #3682

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3720>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list