[GRASS-dev] [GRASS GIS] #3338: UnicodeDecodeError when registering maps in a STRDS using a translated version of GRASS

GRASS GIS trac at osgeo.org
Tue Apr 25 15:11:39 PDT 2017


#3338: UnicodeDecodeError when registering maps in a STRDS using a translated
version of GRASS
--------------------------------------------+-------------------------
 Reporter:  lrntct                          |      Owner:  grass-dev@…
     Type:  defect                          |     Status:  new
 Priority:  normal                          |  Milestone:  7.2.2
Component:  Temporal                        |    Version:  7.2.0
 Keywords:  translation UnicodeDecodeError  |        CPU:  x86-64
 Platform:  Linux                           |
--------------------------------------------+-------------------------
 Using a Spanish locale, the following error appears when trying to
 register maps in a STRDS using the python interface:

 {{{
 Registrando mapas en conjunto de datos espacio temporales...
 Actualizando conjunto de datos temporales...
 Traceback (most recent call last):
   File "Documentos/tarea_6_5_Roberta.py", line 131, in <module>
     sys.exit(main())
   File "Documentos/tarea_6_5_Roberta.py", line 79, in main
     register_maps_in_strds(TITULO_STRDS, ID_STRDS, DESC_STRDS,
 list_nombre_fecha)
   File "Documentos/tarea_6_5_Roberta.py", line 98, in
 register_maps_in_strds
     tgis.register.register_map_object_list('raster', map_dts_lst, stds,
 delete_empty=True, unit=None)
   File "/usr/lib/grass72/etc/python/grass/temporal/register.py", line 499,
 in register_map_object_list
     file=filename, dbif=dbif)
   File "/usr/lib/grass72/etc/python/grass/temporal/register.py", line 341,
 in register_maps_in_space_time_dataset
     sp.update_from_registered_maps(dbif)
   File
 "/usr/lib/grass72/etc/python/grass/temporal/abstract_space_time_dataset.py",
 line 2282, in update_from_registered_maps
     " all registered maps of <%s>") % (self.get_id()))
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 28:
 ordinal not in range(128)
 }}}

 Changing the system settings to English fix the issue.

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



More information about the grass-dev mailing list