[GRASS-dev] [GRASS GIS] #3392: t.register: encoding error
GRASS GIS
trac at osgeo.org
Sun Aug 20 14:28:28 PDT 2017
#3392: t.register: encoding error
--------------------------+---------------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.2.2
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: t.register encoding
CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------
Comment (by annakrat):
Does t.unregister work for you if you don't specify mapset in the strds
name? This is what I got:
{{{
Unregister maps
Traceback (most recent call last):
File "/home/anna/dev/grass/trunk2/dist.x86_64-pc-linux-
gnu/scripts/t.unregister", line 183, in <module>
tgis.profile_function(main)
File "/home/anna/dev/grass/trunk2/dist.x86_64-pc-linux-
gnu/etc/python/grass/temporal/core.py", line 84, in profile_function
func()
File "/home/anna/dev/grass/trunk2/dist.x86_64-pc-linux-
gnu/scripts/t.unregister", line 142, in main
statement += map.delete(dbif=dbif, update=False, execute=False)
File "/home/anna/dev/grass/trunk2/dist.x86_64-pc-linux-
gnu/etc/python/grass/temporal/abstract_map_dataset.py", line 860, in
delete
"database") % (self.get_type(), self.get_id()))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 24:
ordinal not in range(128)
}}}
I committed the fix above.
I think this should go to the release. But we will need to come back to
this and rethink it to enable Python3. I unfortunately don't know yet what
needs to be done for that, I will look at Pietro's changes.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3392#comment:27>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list