[GRASS-dev] [GRASS GIS] #707: wxGUI: v.digit broken for new maps: "No vector map selected for editing." although selected

#707: wxGUI: v.digit broken for new maps: "No vector map selected for editing."
although selected
---------------------+------------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: | Platform: Linux
      Cpu: All |
---------------------+------------------------------------------------------
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.

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

#707: wxGUI: v.digit broken for new maps: "No vector map selected for editing."
although selected
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: assigned
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords: vector digitizer
  Platform: Linux | Cpu: All
----------------------+-----------------------------------------------------
Changes (by martinl):

* cc: grass-dev@lists.osgeo.org (added)
  * keywords: => vector digitizer
  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => martinl

Comment:

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.

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

#707: wxGUI: v.digit broken for new maps: "No vector map selected for editing."
although selected
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: assigned
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords: vector digitizer, vdigit
  Platform: Linux | Cpu: All
----------------------+-----------------------------------------------------
Changes (by hamish):

  * keywords: vector digitizer => vector digitizer, vdigit

Comment:

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

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

#707: wxGUI: v.digit broken for new maps: "No vector map selected for editing."
although selected
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: assigned
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords: vector digitizer, vdigit
  Platform: Linux | Cpu: All
----------------------+-----------------------------------------------------
Comment (by martinl):

Replying to [comment:1 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

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

#707: wxGUI: v.digit broken for new maps: "No vector map selected for editing."
although selected
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: assigned
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords: vector digitizer, vdigit
  Platform: Linux | Cpu: All
----------------------+-----------------------------------------------------
Comment (by hamish):

ping

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

#707: wxGUI: v.digit broken for new maps: "No vector map selected for editing."
although selected
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: assigned
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords: vector digitizer, vdigit
  Platform: Linux | Cpu: All
----------------------+-----------------------------------------------------
Comment (by cmbarton):

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

Michael

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

#707: wxGUI: v.digit broken for new maps: "No vector map selected for editing."
although selected
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: closed
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: fixed | Keywords: vector digitizer, vdigit
  Platform: Linux | Cpu: All
----------------------+-----------------------------------------------------
Changes (by cmbarton):

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

Comment:

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

Michael

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

#707: wxGUI: v.digit broken for new maps: "No vector map selected for editing."
although selected
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: reopened
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords: vector digitizer, vdigit
  Platform: Linux | Cpu: All
----------------------+-----------------------------------------------------
Changes (by micha):

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

Comment:

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

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

#707: wxGUI: v.digit broken for new maps: "No vector map selected for editing."
although selected
------------------------+---------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: closed
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: duplicate | Keywords: vector digitizer, vdigit
  Platform: Linux | Cpu: All
------------------------+---------------------------------------------------
Changes (by martinl):

  * status: reopened => closed
  * resolution: => duplicate

Comment:

Replying to [comment:7 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.

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

#707: wxGUI: v.digit broken for new maps: "No vector map selected for editing."
although selected
------------------------+---------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: closed
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: duplicate | Keywords: vector digitizer, vdigit
  Platform: Linux | Cpu: All
------------------------+---------------------------------------------------
Comment (by micha):

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

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