Opened 7 years ago

Closed 7 years ago

#3395 closed defect (duplicate)

t.rast.extract : encoding error

Reported by: mlennert Owned by: grass-dev@…
Priority: normal Milestone: 7.2.2
Component: Temporal Version: svn-trunk
Keywords: t.rast.extract encoding Cc:
CPU: Unspecified Platform: Unspecified


And here's the next (after #3392, #3393, and #3394). I'll stop after this as this seems to be a fundamental issue in the whole temporal modules suite:

t.rast.extract input=pluies_nc output=tempmean_2010 where="start_time >= '2010-01-01' and start_time < '2011-01-01'"
Traceback (most recent call last):
  File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/scripts/t.rast.extract", line 106, in <module>
  File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/scripts/t.rast.extract", line 100, in main
    base, time_suffix, nprocs, register_null)
  File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/", line 189, in extract_dataset
  File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/", line 174, in open_new_stds
  File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/", line 378, in insert
    statement += AbstractDataset.insert(self, dbif=dbif, execute=False)
  File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/", line 398, in insert
    statement += self.metadata.get_insert_statement_mogrified(dbif)
  File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/", line 401, in get_insert_statement_mogrified
  File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/", line 945, in mogrify_sql_statement
    return self.connections[mapset].mogrify_sql_statement(content)
  File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/", line 1215, in mogrify_sql_statement
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 2: ordinal not in range(128)

Change History (2)

comment:1 by huhabla, 7 years ago

This is horrible, who implemented this? It will need plenty of time to fix this. And i can not reproduce the translated error message UTF errors. Welcome to the UTF decode/encode error hell.

comment:2 by mlennert, 7 years ago

Resolution: duplicate
Status: newclosed

As this seems to be a general problem, all discussion should go on in #3392.

Note: See TracTickets for help on using tickets.