Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#707 closed defect (duplicate)

wxGUI: v.digit broken for new maps: "No vector map selected for editing." although selected

Reported by: neteler Owned by: martinl
Priority: blocker Milestone: 6.4.0
Component: wxGUI Version: 6.4.0 RCs
Keywords: vector digitizer, vdigit Cc: grass-dev@…
CPU: All Platform: Linux

Description

When trying to create a new vector map from scratch, there is a selection bug (6.4. and 6.5):

Map display -> digitize -> New vector map -> "ciao" as name [map is listed in layer manager ok] -> select map in Map display [could be automated since I just created it] -> "ciao" map is correctly listed in vector map selector -> digitize point -> ERROR: No vector map selected for editing.

See screenshot attached.

Attachments (1)

vdigit_broken64_65.jpg (96.8 KB ) - added by neteler 15 years ago.
v.digit broken for new maps in 6.4 and 6.5 (7 untested)

Download all attachments as: .zip

Change History (10)

by neteler, 15 years ago

Attachment: vdigit_broken64_65.jpg added

v.digit broken for new maps in 6.4 and 6.5 (7 untested)

comment:1 by martinl, 15 years ago

Cc: grass-dev@… added
Keywords: vector digitizer added
Owner: changed from grass-dev@… to martinl
Status: newassigned

Works for me.

'...' in 'command output' tab indicates that some messages have been printed out. Or set GRASS_WX_DEBUG=1 to redirect error messages to the xterm.

comment:2 by hamish, 15 years ago

Keywords: vdigit added

Works for me with latest 6.5svn on debian/stable amd64.

in reply to:  1 comment:3 by martinl, 15 years ago

Replying to martinl:

Works for me.

'...' in 'command output' tab indicates that some messages have been printed out. Or set GRASS_WX_DEBUG=1 to redirect error messages to the xterm.

Can you send traceback message from the command output?

Martin

comment:4 by hamish, 15 years ago

ping

comment:5 by cmbarton, 15 years ago

Works for me on Mac in 6.4, 6.5, and 7. Can we close this?

Michael

comment:6 by cmbarton, 15 years ago

Resolution: fixed
Status: assignedclosed

Closing. No response for continued problems. Tests by Martin and me show no problems now. Can reopen if needed.

Michael

comment:7 by micha, 14 years ago

Resolution: fixed
Status: closedreopened

Even tho' this ticket was closed, I seem to have stumbled over the same problem on a new install. I'm setting up a Fedora 12 machine (i686). Finished compiling GRASS 6.4R5 successfully. I haven't done any real work yet, but everything looks OK, except for the digitizer in wxGUI. (v.digit in the tck/tk interface works fine). Here's the backtrace when I try to select a vector map for digitizing:

Traceback (most recent call last):

File "/usr/local/grass-6.4/grass-6.4.0RC5/etc/wxpython/gui_modules/toolbars.py", line 1071, in OnSelectMap

self.StartEditing(self.layers[selection])

File "/usr/local/grass-6.4/grass-6.4.0RC5/etc/wxpython/gui_modules/toolbars.py", line 1103, in StartEditing

self.parent.digit = Digit(mapwindow=self.parent.MapWindow)

File "/usr/local/grass-6.4/grass-6.4.0RC5/etc/wxpython/gui_modules/vdigit.py", line 685, in init

VDigit.init(self, mapwindow)

File "/usr/local/grass-6.4/grass-6.4.0RC5/etc/wxpython/gui_modules/vdigit.py", line 223, in init

mapwindow)

File "/usr/local/grass-6.4/grass-6.4.0RC5/etc/wxpython/vdigit/grass6_wxvdigit.py", line 333, in init

this = _grass6_wxvdigit.new_Digit(*args)

TypeError: in method 'new_Digit', argument 2 of type 'wxWindow *'

wxxPython version is: wxPython-devel-2.8.9.2-3.fc12.i686 wxPython-2.8.9.2-3.fc12.i686

Regards and thanks for any tips, Micha

in reply to:  7 comment:8 by martinl, 14 years ago

Resolution: duplicate
Status: reopenedclosed

Replying to micha:

this = _grass6_wxvdigit.new_Digit(*args)

TypeError: in method 'new_Digit', argument 2 of type 'wxWindow *'

this is know problem, see #782. Downgrade your version of swig e.g. to 1.3.36.

comment:9 by micha, 14 years ago

Hi Martin: Yes that seems to fix the prob. I removed the swig rpm (1.3.40) and compiled swig-1.4.36, then in grass I did: make clean, make, make install, and now the python vector digitizer works. Many thanks, Micha

Note: See TracTickets for help on using tickets.