#3896: d.legend: error when displaying raster legend -------------------------+--------------------------------- Reporter: veroandreo | Owner: grass-dev@… Type: defect | Status: new Priority: normal | Milestone: 7.8.0 Component: Display | Version: git-releasebranch78 Keywords: d.legend | CPU: Unspecified Platform: Unspecified | -------------------------+--------------------------------- When calling G7:d.legend from terminal for a wx monitor, the legend is not displayed and I get the following error in the terminal:
{{{ Traceback (most recent call last): File "/usr/lib64/python3.7/site-packages/wx/core.py", line 2228, in Notify self.notify() File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux- gnu/gui/wxpython/mapdisp/main.py", line 592, in watcher self.mapFrm.GetMap().GetLayersFromCmdFile() File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux- gnu/gui/wxpython/mapdisp/main.py", line 203, in GetLayersFromCmdFile self._giface.GetMapDisplay().AddLegendRast(cmd=cmd) File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux- gnu/gui/wxpython/mapdisp/frame.py", line 1244, in AddLegendRast cmd, completed=(self.GetOptData, None, None)) File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/forms.py", line 2925, in ParseCommand get_dcmd=get_dcmd, layer=layer) File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/forms.py", line 550, in __init__ frame=self) File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/forms.py", line 1454, in __init__ for layer in layers: TypeError: iter() returned non-iterator of type 'LayerList' }}} If I use the main GUI though, all seems to work fine, no errors in the console tab. -- Ticket URL: <https://trac.osgeo.org/grass/ticket/3896> GRASS GIS <https://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev