{{{
Traceback (most recent call last):
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/scripts/t.rast.aggregate", line 219, in <module>
main()
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/scripts/t.rast.aggregate", line 196, in main
overwrite=gcore.overwrite(), file_limit=file_limit)
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/temporal/aggregation.py", line 230, in
aggregate_by_topology
topo_builder.build(mapsA=granularity_list, mapsB=map_list,
spatial=spatial)
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/temporal/spatio_temporal_relationships.py", line 569,
in build
self._build_internal_iteratable(mapsA, spatial)
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/temporal/spatio_temporal_relationships.py", line 411,
in _build_internal_iteratable
self._detect_first()
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/temporal/spatio_temporal_relationships.py", line 378,
in _detect_first
prev_ = self._store.values()[0]
TypeError: 'dict_values' object does not support indexing
WARNING:root:Needed to restart the libgis server, caller: Server check
thread
}}}
It works fine in 76 rel branch. I am using trunk r73904 in virtualenv with
python3.
For the record, all the temporal GUI tools: G7:g.gui.timeline,
G7:g.gui.animation and G7:g.gui.tplot also yield the same error (I can
create a new ticket if needed). Here's how to test following the previous
example:
This problem can be solved by wrapping list() around the dictionary value
type in "temporal/spatio_temporal_relationships.py", line 378, in
_detect_first:
Replying to [comment:3 huhabla]:
> This problem can be solved by wrapping list() around the dictionary
value type in "temporal/spatio_temporal_relationships.py", line 378, in
_detect_first:
>
> {{{
> prev_ = list(self._store.values())[0]
> }}}
I tested this as well via Vero's patch:
{{{
t.create output=A type=strds temporaltype=absolute title="test"
description="test"
Creates a space time dataset.
Parameters:
output Name of the output space time dataset
maps Type of the output space time dataset
type Type of the input map
options: raster,vector,raster_3d
default: raster
semantictype Semantic type of the space time dataset
options: min,max,sum,mean
default: mean
title Title of the new space time dataset
description Description of the new space time dataset
ERROR: t.create: Sorry, <temporaltype> is not a valid parameter
ERROR: Value <strds> out of range for parameter <type>
Legal range: raster,vector,raster_3d
ERROR: Required parameter <maps> not set:
(Type of the output space time dataset)
}}}
In [changeset:"74089" 74089]:
{{{
#!CommitTicketReference repository="" revision="74089"
temporal lib: wrap list() around dictionary as suggested by huhabla, fixes #3727
}}}
So, compilation problem was a different issue, i.e., i updated my system
and was using an old virtualenv. I trashed it, created a new one, compiled
grass there and the patch solved the reported error. Thanks, Soeren!
However, there are new errors now in G7:g.gui.animation, G7:g.gui.timeline
and G7:g.gui.tplot that I'll report in separate tickets.