[GRASS-dev] [GRASS GIS] #2781: gmodeler loops fail with wxpython3

GRASS GIS trac at osgeo.org
Tue Oct 27 07:42:12 PDT 2015


#2781: gmodeler loops fail with wxpython3
--------------------------------+-------------------------
 Reporter:  lucadelu            |      Owner:  grass-dev@…
     Type:  defect              |     Status:  new
 Priority:  major               |  Milestone:  7.0.2
Component:  wxGUI               |    Version:
 Keywords:  modeler, wxpython3  |        CPU:  Unspecified
 Platform:  Unspecified         |
--------------------------------+-------------------------
 It is not possible to open the dialog for loops in the gmodeler using
 wxpython3. The error is the following


 {{{
 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-
 packages/wx-3.0-gtk2/wx/lib/ogl/_canvas.py", line 224, in OnMouseEvent
     nearest_object.GetEventHandler().OnLeftDoubleClick(x, y, keys,
 attachment)
   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-unknown-linux-
 gnu/gui/wxpython/gmodeler/frame.py", line 1176, in OnLeftDoubleClick
     self.OnProperties()
   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-unknown-linux-
 gnu/gui/wxpython/gmodeler/frame.py", line 1195, in OnProperties
     dlg = ModelLoopDialog(parent = self.frame, shape = shape)
   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-unknown-linux-
 gnu/gui/wxpython/gmodeler/dialogs.py", line 460, in __init__
     style = style, **kwargs)
   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-unknown-linux-
 gnu/gui/wxpython/gmodeler/dialogs.py", line 439, in __init__
     frame = parent)
   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-unknown-linux-
 gnu/gui/wxpython/gmodeler/dialogs.py", line 976, in __init__
     disablePopup = True, **kwargs)
   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-unknown-linux-
 gnu/gui/wxpython/gmodeler/dialogs.py", line 792, in __init__
     self.SetColumnWidth(2, 65)
   File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_controls.py",
 line 4474, in SetColumnWidth
     return _controls_.ListCtrl_SetColumnWidth(*args, **kwargs)
 wx._core.PyAssertionError: C++ assertion "col >= 0 && col <
 GetColumnCount()" failed at ../src/generic/listctrl.cpp(3192) in
 SetColumnWidth(): invalid column index
 }}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2781>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list