Opened 12 years ago

Closed 10 years ago

#1150 closed defect (fixed)

Cannot open vector for editing in digitize toolbar in GRASS 7.0

Reported by: PvB Owned by: martinl
Priority: normal Milestone: 6.5.0
Component: wxGUI Version: unspecified
Keywords: wxVdigit Cc: grass-dev@…
CPU: x86-64 Platform: Linux

Description

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.

Change History (8)

comment:1 by marisn, 12 years ago

Component: VectorwxGUI

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

comment:2 by PvB, 12 years ago

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

comment:3 by martinl, 12 years ago

Cc: grass-dev@… added
Keywords: wxVdigit added
Milestone: 6.5.0
Owner: changed from grass-dev@… to martinl

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

comment:4 by PvB, 12 years ago

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).

in reply to:  4 comment:5 by martinl, 12 years ago

Replying to 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

comment:6 by PvB, 12 years ago

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.

comment:7 by martinl, 11 years ago

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

comment:8 by martinl, 10 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.