Opened 5 years ago

Closed 5 years ago

#3752 closed defect (fixed)

g.gui.animation: TypeError: 'zip' object is not subscriptable

Reported by: veroandreo Owned by: grass-dev@…
Priority: normal Milestone: 7.8.0
Component: wxGUI Version: svn-trunk
Keywords: temporal, python3 Cc:
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/", line 3190, in <lambda>
    lambda event: event.callable(*event.args, ** )
  File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/wxpython/animation/", line 196, in SetAnimations
  File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/wxpython/animation/", line 305, in SetAnimations
  File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/wxpython/animation/", line 326, in _setAnimations
  File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/wxpython/animation/", line 375, in _updateAnimations
    anim.firstStdsNameType[0]], regions)
  File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/wxpython/animation/", 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

Change History (1)

comment:1 by annakrat, 5 years ago

Resolution: fixed
Status: newclosed

In 74094:

wxGUI/animation: fix #3752

Note: See TracTickets for help on using tickets.