Opened 8 years ago
Last modified 5 years ago
#3294 reopened defect
g.gui.tplot: error when trying to plot a STVDS
Reported by: | lrntct | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.8.3 |
Component: | wxGUI | Version: | svn-trunk |
Keywords: | Cc: | ||
CPU: | x86-64 | Platform: | Linux |
Description
When using g.gui.tplot to plot a time-series of a point in a STVDS, I encounter the following issue:
When selecting the stvds in the GUI, a GUI message appears, saying:
Invalid input temporal dataset
And the console displays a message from t.vect.list:
ERROR: t.vect.list: Sorry, <s> is not a valid flag
If nonetheless trying to plot a value, the following error message appears in the console, and nothing is plotted:
Traceback (most recent call last): File "/usr/lib/grass72/gui/wxpython/tplot/frame.py", line 759, in OnRedraw self._redraw() File "/usr/lib/grass72/gui/wxpython/tplot/frame.py", line 770, in _redraw self._getSTVDData(self.datasetsV) File "/usr/lib/grass72/gui/wxpython/tplot/frame.py", line 480, in _getSTVDData cats = self._getExistingCategories(rows[0]['name'], cats) File "/usr/lib/grass72/gui/wxpython/tplot/frame.py", line 384, in _getExistingCategories for cat in cats: TypeError: 'NoneType' object is not iterable
Change History (15)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 8 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
After applying the patch, I get another error when trying to plot the STVDS:
Traceback (most recent call last): File "/usr/lib/grass72/gui/wxpython/tplot/frame.py", line 759, in OnRedraw self._redraw() File "/usr/lib/grass72/gui/wxpython/tplot/frame.py", line 770, in _redraw self._getSTVDData(self.datasetsV) File "/usr/lib/grass72/gui/wxpython/tplot/frame.py", line 499, in _getSTVDData lay = int(row['layer']) TypeError: int() argument must be a string or a number, not 'NoneType'
The maps inside the STVDS have two layers.
t.vect.db.select is working correctly with that STVDS.
comment:4 by , 8 years ago
Milestone: | 7.2.1 → 7.2.2 |
---|
comment:10 by , 7 years ago
Milestone: | → 7.2.4 |
---|
comment:11 by , 6 years ago
Milestone: | 7.2.4 → 7.8.0 |
---|---|
Version: | 7.2.0 → svn-trunk |
Changing milestone. I get the last error reported:
Traceback (most recent call last): File "/home/veroandreo/software/grass7_trunk/dist.x86_64 -pc-linux-gnu/gui/wxpython/tplot/frame.py", line 882, in OnRedraw self._redraw() File "/home/veroandreo/software/grass7_trunk/dist.x86_64 -pc-linux-gnu/gui/wxpython/tplot/frame.py", line 893, in _redraw self._getSTVDData(self.datasetsV) File "/home/veroandreo/software/grass7_trunk/dist.x86_64 -pc-linux-gnu/gui/wxpython/tplot/frame.py", line 566, in _getSTVDData lay = int(row['layer']) TypeError : int() argument must be a string or a number, not 'NoneType' Traceback (most recent call last): File "/home/veroandreo/software/grass7_trunk/dist.x86_64 -pc-linux-gnu/gui/wxpython/tplot/frame.py", line 882, in OnRedraw self._redraw() File "/home/veroandreo/software/grass7_trunk/dist.x86_64 -pc-linux-gnu/gui/wxpython/tplot/frame.py", line 893, in _redraw self._getSTVDData(self.datasetsV) File "/home/veroandreo/software/grass7_trunk/dist.x86_64 -pc-linux-gnu/gui/wxpython/tplot/frame.py", line 566, in _getSTVDData lay = int(row['layer']) TypeError : int() argument must be a string or a number, not 'NoneType'
comment:15 by , 5 years ago
Milestone: | → 7.8.3 |
---|
Might be related to [69686]