[GRASS-dev] [GRASS GIS] #1150: Cannot open vector for editing in digitize toolbar in GRASS 7.0

#1150: Cannot open vector for editing in digitize toolbar in GRASS 7.0
--------------------+-------------------------------------------------------
Reporter: PvB | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Vector | Version: unspecified
Keywords: | Platform: Linux
      Cpu: x86-64 |
--------------------+-------------------------------------------------------
When opening the vector digitizing toolbar I can not select a vector layer
for editing. The vector layer is open (existing or just newly created) in
the layer manager, and is shown in the drop down box in the digitizing
toolbar, but selecting it doesn't do anything.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1150&gt;
GRASS GIS <http://grass.osgeo.org>

#1150: Cannot open vector for editing in digitize toolbar in GRASS 7.0
--------------------+-------------------------------------------------------
Reporter: PvB | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: wxGUI | Version: unspecified
Keywords: | Platform: Linux
      Cpu: x86-64 |
--------------------+-------------------------------------------------------
Changes (by marisn):

  * component: Vector => wxGUI

Comment:

Check out console output and You will see nice error message:

{{{
Traceback (most recent call last):
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
linux-gnu/etc/gui/wxpython/gui_modules/vdigit.py", line 230,
in __init__
     mapwindow)
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
linux-gnu/etc/gui/wxpython/vdigit/grass7_wxvdigit.py", line
330, in __init__
     this = _grass7_wxvdigit.new_Digit(*args)
TypeError: in method 'new_Digit', argument 2 of type
'wxWindow *'
Traceback (most recent call last):
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
linux-gnu/etc/gui/wxpython/gui_modules/mapdisp_window.py",
line 337, in CheckPseudoDC
self.pdc.SetBackground(wx.Brush(self.GetBackgroundColour()))
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
linux-gnu/etc/gui/wxpython/vdigit/grass7_wxvdigit.py", line
384, in SetBackground
     def SetBackground(self, *args): return
_grass7_wxvdigit.PseudoDC_SetBackground(self, *args)
TypeError: in method 'PseudoDC_SetBackground', argument 2 of
type 'wxBrush const &'
Traceback (most recent call last):
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
linux-gnu/etc/gui/wxpython/gui_modules/toolbars.py", line
1263, in OnSelectMap

self.StartEditing(self.layers[selection])
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
linux-gnu/etc/gui/wxpython/gui_modules/toolbars.py", line
1311, in StartEditing

GError(parent = self.parent,
NameError
:
global name 'GError' is not defined

}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1150#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1150: Cannot open vector for editing in digitize toolbar in GRASS 7.0
--------------------+-------------------------------------------------------
Reporter: PvB | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: wxGUI | Version: unspecified
Keywords: | Platform: Linux
      Cpu: x86-64 |
--------------------+-------------------------------------------------------

Comment(by PvB):

In my case there is no output whatsoever in the console. Is there another
way to get useful output?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1150#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1150: Cannot open vector for editing in digitize toolbar in GRASS 7.0
----------------------+-----------------------------------------------------
Reporter: PvB | Owner: martinl
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: unspecified
Keywords: wxVdigit | Platform: Linux
      Cpu: x86-64 |
----------------------+-----------------------------------------------------
Changes (by martinl):

* cc: grass-dev@… (added)
  * keywords: => wxVdigit
  * owner: grass-dev@… => martinl
  * milestone: => 6.5.0

Comment:

wxGUI vector digitizer waits for complete rewrite to Python (from C++),
please stay tuned.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1150#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1150: Cannot open vector for editing in digitize toolbar in GRASS 7.0
----------------------+-----------------------------------------------------
Reporter: PvB | Owner: martinl
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: unspecified
Keywords: wxVdigit | Platform: Linux
      Cpu: x86-64 |
----------------------+-----------------------------------------------------

Comment(by PvB):

OK, so this also is true for GRASS 7.0? I see that in 6.4 the whole module
is removed, but in GRASS 7.0 the module is there (well, one can open the
menu bar).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1150#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1150: Cannot open vector for editing in digitize toolbar in GRASS 7.0
----------------------+-----------------------------------------------------
Reporter: PvB | Owner: martinl
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: unspecified
Keywords: wxVdigit | Platform: Linux
      Cpu: x86-64 |
----------------------+-----------------------------------------------------

Comment(by martinl):

Replying to [comment:4 PvB]:
> OK, so this also is true for GRASS 7.0? I see that in 6.4 the whole
module is removed, but in GRASS 7.0 the module is there (well, one can
open the menu bar).

not removed, just disabled in GRASS 6.4. You can compile it manually

{{{
cd gui/wxpython/vdigit
make
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1150#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#1150: Cannot open vector for editing in digitize toolbar in GRASS 7.0
----------------------+-----------------------------------------------------
Reporter: PvB | Owner: martinl
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: unspecified
Keywords: wxVdigit | Platform: Linux
      Cpu: x86-64 |
----------------------+-----------------------------------------------------

Comment(by PvB):

Ah, ok, thanks. I am most concerned with getting it to work in GRASS 7
though. Just out of curiosity I tried your suggestion, but for grass 7.
The only output that it gives me is

"make: Nothing to be done for `first'".

This seems to be the same or similar as what was reported here: http
://osgeo-org.1803224.n2.nabble.com/No-module-named-grass7-wxvdigit-
td3102096.html.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1150#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#1150: Cannot open vector for editing in digitize toolbar in GRASS 7.0
----------------------+-----------------------------------------------------
Reporter: PvB | Owner: martinl
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: unspecified
Keywords: wxVdigit | Platform: Linux
      Cpu: x86-64 |
----------------------+-----------------------------------------------------

Comment(by martinl):

I think that the original bug has been fixed. Please could you try recent
version from SVN?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1150#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>

#1150: Cannot open vector for editing in digitize toolbar in GRASS 7.0
---------------------+------------------------------------------------------
  Reporter: PvB | Owner: martinl
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: unspecified
Resolution: fixed | Keywords: wxVdigit
  Platform: Linux | Cpu: x86-64
---------------------+------------------------------------------------------
Changes (by martinl):

  * status: new => closed
  * resolution: => fixed

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1150#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>