[GRASS-dev] [GRASS GIS] #3753: g.gui.tplot and g.gui.timeline: AttributeError: 'itertools.cycle' object has no attribute 'next'
GRASS GIS
trac at osgeo.org
Fri Feb 15 11:43:50 PST 2019
#3753: g.gui.tplot and g.gui.timeline: AttributeError: 'itertools.cycle' object
has no attribute 'next'
-------------------------------+-------------------------
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 this error when running G7:g.gui.tplot and G7:g.gui.timeline
under python 3 in a viartualenv:
{{{
g.gui.tplot strds=A coordinates=634816.901408,225066.901408
20:15:54: Debug: Adding duplicate image handler for 'Windows bitmap file'
Traceback (most recent call last):
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/scripts/g.gui.tplot", line 175, in <module>
main()
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/scripts/g.gui.tplot", line 162, in main
ylabel, csvfile, flags['h'], gscript .overwrite)
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/tplot/frame.py", line 1020, in SetDatasets
self._redraw()
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/tplot/frame.py", line 900, in _redraw
self._drawFigure()
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/tplot/frame.py", line 623, in _drawFigure
self.drawR()
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/tplot/frame.py", line 689, in drawR
color = self.colors.next()
AttributeError: 'itertools.cycle' object has no attribute 'next'
WARNING:root:Needed to restart the libgis server, caller: Server check
thread
}}}
and
{{{
g.gui.timeline inputs=A
Traceback (most recent call last):
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/scripts/g.gui.timeline", line 68, in <module>
main()
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/scripts/g.gui.timeline", line 61, in main
frame.SetDatasets(datasets)
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/timeline/frame.py", line 519, in SetDatasets
self._redraw()
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/timeline/frame.py", line 418, in _redraw
self._draw2dFigure()
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/timeline/frame.py", line 351, in _draw2dFigure
color = colors.next()
AttributeError: 'itertools.cycle' object has no attribute 'next'
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.timeline inputs=A
g.gui.tplot strds=A coordinates=634816.901408,225066.901408
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3753>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list