Opened 6 years ago
Closed 6 years ago
#3752 closed defect (fixed)
g.gui.animation: TypeError: 'zip' object is not subscriptable
Reported by: | veroandreo | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.8.0 |
Component: | wxGUI | Version: | svn-trunk |
Keywords: | temporal, python3 | Cc: | |
CPU: | Unspecified | Platform: | Linux |
Description
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
Note:
See TracTickets
for help on using tickets.
In 74094: