#3899: g.gui.gmodeler: loading of modeller file broken with TypeError
-------------------------+-------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.8.0
Component: wxGUI | Version: unspecified
Keywords: python3 | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
Loading of the modeller file crashes with:
{{{
GRASS 7.8.dev (Dachbegruenung):~ > g.gui.gmodeler
/scratch/Meike/GM/model_Bonn.gxm
Traceback (most recent call last):
File "/home/mundialis/software/grass78_git/dist.x86_64-pc-linux-
gnu/scripts/g.gui.gmodeler", line 63, in <module>
main()
File "/home/mundialis/software/grass78_git/dist.x86_64-pc-linux-
gnu/scripts/g.gui.gmodeler", line 57, in main
frame.LoadModelFile(options['file'])
File "/home/mundialis/software/grass78_git/dist.x86_64-pc-linux-
gnu/gui/wxpython/gmodeler/frame.py", line 1050, in LoadModelFile
self.model.LoadModel(filename)
File "/home/mundialis/software/grass78_git/dist.x86_64-pc-linux-
gnu/gui/wxpython/gmodeler/model.py", line 332, in LoadModel
x=action['pos'][0],
TypeError: 'NoneType' object is not subscriptable
#3899: g.gui.gmodeler: loading of modeller file broken with TypeError
--------------------------+-------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.8.0
Component: wxGUI | Version: unspecified
Resolution: | Keywords: python3
CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Comment (by pesekon2):
Replying to [comment:2 neteler]:
> Only this msg clutter remained:
>
> {{{
> /home/mundialis/software/grass78_git/dist.x86_64-pc-linux-
gnu/gui/wxpython/gmodeler/dialogs.py:952: wxPyDeprecationWarning: Call to
deprecated item. Use InsertItem instead.
> index = self.InsertStringItem(i, str(i))
> /home/mundialis/software/grass78_git/dist.x86_64-pc-linux-
gnu/gui/wxpython/gmodeler/dialogs.py:953: wxPyDeprecationWarning: Call to
deprecated item. Use SetItem instead.
> self.SetStringItem(index, 0, name)
> /home/mundialis/software/grass78_git/dist.x86_64-pc-linux-
gnu/gui/wxpython/gmodeler/dialogs.py:954: wxPyDeprecationWarning: Call to
deprecated item. Use SetItem instead.
> self.SetStringItem(index, 1, inloop)
> /home/mundialis/software/grass78_git/dist.x86_64-pc-linux-
gnu/gui/wxpython/gmodeler/dialogs.py:955: wxPyDeprecationWarning: Call to
deprecated item. Use SetItem instead.
> self.SetStringItem(index, 2, param)
> /home/mundialis/software/grass78_git/dist.x86_64-pc-linux-
gnu/gui/wxpython/gmodeler/dialogs.py:956: wxPyDeprecationWarning: Call to
deprecated item. Use SetItem instead.
> self.SetStringItem(index, 3, desc)
> }}}
Yes, I know. Yesterday, I have created a pull request to get rid of these
messages (they appeared on more places after switching to wxPython4): https://github.com/OSGeo/grass/pull/120