[GRASS-dev] [GRASS GIS] #3752: g.gui.animation: TypeError: 'zip' object is not subscriptable
GRASS GIS
trac at osgeo.org
Fri Feb 15 11:39:25 PST 2019
#3752: g.gui.animation: TypeError: 'zip' object is not subscriptable
-------------------------------+-------------------------
Reporter: veroandreo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.8.0
Component: wxGUI | Version: svn-trunk
Keywords: temporal, python3 | CPU: Unspecified
Platform: Linux |
-------------------------------+-------------------------
I encountered the error in the subject when running under python3
virtualenv:
{{{
g.gui.animation strds=A
Traceback (most recent call last):
File "/usr/lib64/python3.7/site-packages/wx/core.py", line 3190, in
<lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/animation/frame.py", line 196, in SetAnimations
self.controller.SetAnimations(layerLists)
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/animation/controller.py", line 305, in SetAnimations
self._setAnimations()
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/animation/controller.py", line 326, in _setAnimations
mapNamesDict=mapNamesDict)
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/animation/controller.py", line 375, in _updateAnimations
anim.firstStdsNameType[0]], regions)
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/animation/utils.py", line 358, in
sampleCmdMatrixAndCreateNames
namesList.append(HashCmds(cmdMatrix[j], regions[j]))
TypeError: 'zip' object is not subscriptable
WARNING:root:Needed to restart the libgis server, caller: Server check
thread
}}}
To reproduce in NC location:
{{{
g.region raster=elevation
for map in `seq 1 10` ; do r.mapcalc "prueba_${map} = ${map}" ; done
t.create output=A type=strds temporaltype=absolute title="test"
description="test"
t.register input=A maps=`g.list rast pat=prueba* sep=, map=.`
start="2000-01-01" increment="1 months" -i
g.gui.animation strds=A
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3752>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list