[GRASS-dev] [GRASS GIS] #3752: g.gui.animation: TypeError: 'zip' object is not subscriptable

#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&gt;
GRASS GIS <https://grass.osgeo.org>

#3752: g.gui.animation: TypeError: 'zip' object is not subscriptable
--------------------------+-------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.8.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: temporal, python3
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------------
Changes (by annakrat):

* status: new => closed
* resolution: => fixed

Comment:

In [changeset:"74094" 74094]:
{{{
#!CommitTicketReference repository="" revision="74094"
wxGUI/animation: fix #3752
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3752#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>