[GRASS-dev] [GRASS GIS] #3777: vector digitizer crashes with python 3

GRASS GIS trac at osgeo.org
Thu Apr 18 14:18:51 PDT 2019


#3777: vector digitizer crashes with python 3
--------------------------+---------------------------------------
  Reporter:  veroandreo   |      Owner:  martinl
      Type:  defect       |     Status:  assigned
  Priority:  normal       |  Milestone:  7.8.0
 Component:  wxGUI        |    Version:  svn-trunk
Resolution:               |   Keywords:  vector digitizer, python3
       CPU:  Unspecified  |   Platform:  Linux
--------------------------+---------------------------------------

Comment (by veroandreo):

 Just re-compiled and tested. Now, it does not crash, but the dialog to
 submit each new feature does not appear and cat is not written.
 v.db.select of new vector digitized is empty.

 This is what I get in the GUI console when digitizing polygons:

 {{{
 Traceback (most recent call last):
   File
 "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-
 linux-gnu/gui/wxpython/mapwin/buffered.py", line 1397, in
 MouseActions

 self.OnRightUp(event)
   File
 "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-
 linux-gnu/gui/wxpython/mapwin/buffered.py", line 1644, in
 OnRightUp

 self._onRightUp(event)
   File
 "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-
 linux-gnu/gui/wxpython/vdigit/mapwindow.py", line 1001, in
 _onRightUp

 action="add", ignoreError=True)
   File
 "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-
 linux-gnu/gui/wxpython/dbmgr/dialogs.py", line 119, in
 __init__

 self.UpdateDialog(query=query, cats=cats)
   File
 "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-
 linux-gnu/gui/wxpython/dbmgr/dialogs.py", line 442, in
 UpdateDialog

 self.fid = self.cats.keys()[0]
 TypeError
 :
 'dict_keys' object is not subscriptable
 Traceback (most recent call last):
   File
 "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-
 linux-gnu/gui/wxpython/mapwin/buffered.py", line 1397, in
 MouseActions

 self.OnRightUp(event)
   File
 "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-
 linux-gnu/gui/wxpython/mapwin/buffered.py", line 1644, in
 OnRightUp

 self._onRightUp(event)
   File
 "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-
 linux-gnu/gui/wxpython/vdigit/mapwindow.py", line 1001, in
 _onRightUp

 action="add", ignoreError=True)
   File
 "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-
 linux-gnu/gui/wxpython/dbmgr/dialogs.py", line 119, in
 __init__

 self.UpdateDialog(query=query, cats=cats)
   File
 "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-
 linux-gnu/gui/wxpython/dbmgr/dialogs.py", line 442, in
 UpdateDialog

 self.fid = self.cats.keys()[0]
 TypeError
 :
 'dict_keys' object is not subscriptable
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3777#comment:6>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list