[GRASS-dev] [GRASS GIS] #628: wingrass native: vdigit error on new map

#628: wingrass native: vdigit error on new map
------------------------------+---------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: wingrass, vdigit | Platform: MSWindows XP
      Cpu: x86-32 |
------------------------------+---------------------------------------------
Hi,

with the latest wingrass native stand-alone installer (6.4.0rc.svn.37703),
if you start the wxGui, in the map display window pull down 2D view to be
Digitize (hey, it built!), then on the left pull down the empty box to
select New vector map, add a name like "testmap" and press Ok you get an
error in the Output tab:

{{{
New vector map <testmap@user1> created
Traceback (most recent call last):
   File
"C:\GRASS-6-SVN\etc\wxpython\gui_modules\toolbars.py", line
1071, in OnSelectMap

self.StartEditing(self.layers[selection])
   File
"C:\GRASS-6-SVN\etc\wxpython\gui_modules\toolbars.py", line
1103, in StartEditing

self.parent.digit = Digit(mapwindow=self.parent.MapWindow)
   File "C:\GRASS-6-SVN\etc\wxpython\gui_modules\vdigit.py",
line 685, in __init__

VDigit.__init__(self, mapwindow)
   File "C:\GRASS-6-SVN\etc\wxpython\gui_modules\vdigit.py",
line 223, in __init__

mapwindow)
   File
"C:/GRASS-6-SVN\etc\wxpython\vdigit\grass6_wxvdigit.py",
line 327, in __init__

this = _grass6_wxvdigit.new_Digit(*args)
TypeError
:
in method 'new_Digit', argument 2 of type 'wxWindow *'
Traceback (most recent call last):
   File
"C:\GRASS-6-SVN\etc\wxpython\gui_modules\toolbars.py", line
1063, in OnSelectMap

if self.layers[selection] == self.mapLayer:
IndexError
:
list index out of range

}}}

?,
Hamish

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

#628: wingrass native: vdigit error on new map
------------------------------+---------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: wingrass, vdigit | Platform: MSWindows XP
      Cpu: x86-32 |
------------------------------+---------------------------------------------

Comment(by hellik):

Replying to [ticket:628 hamish]:
> Hi,
>
> with the latest wingrass native stand-alone installer
(6.4.0rc.svn.37703), if you start the wxGui, in the map display window
pull down 2D view to be Digitize (hey, it built!), then on the left pull
down the empty box to select New vector map, add a name like "testmap" and
press Ok you get an error in the Output tab:
>
> {{{
> New vector map <testmap@user1> created
> Traceback (most recent call last):
> File
> "C:\GRASS-6-SVN\etc\wxpython\gui_modules\toolbars.py", line
> 1071, in OnSelectMap
>
> self.StartEditing(self.layers[selection])
> File
> "C:\GRASS-6-SVN\etc\wxpython\gui_modules\toolbars.py", line
> 1103, in StartEditing
>
> self.parent.digit = Digit(mapwindow=self.parent.MapWindow)
> File "C:\GRASS-6-SVN\etc\wxpython\gui_modules\vdigit.py",
> line 685, in __init__
>
> VDigit.__init__(self, mapwindow)
> File "C:\GRASS-6-SVN\etc\wxpython\gui_modules\vdigit.py",
> line 223, in __init__
>
> mapwindow)
> File
> "C:/GRASS-6-SVN\etc\wxpython\vdigit\grass6_wxvdigit.py",
> line 327, in __init__
>
> this = _grass6_wxvdigit.new_Digit(*args)
> TypeError
> :
> in method 'new_Digit', argument 2 of type 'wxWindow *'
> Traceback (most recent call last):
> File
> "C:\GRASS-6-SVN\etc\wxpython\gui_modules\toolbars.py", line
> 1063, in OnSelectMap
>
> if self.layers[selection] == self.mapLayer:
> IndexError
> :
> list index out of range
>
> }}}
>
>
> ?,
> Hamish

see comment in
https://trac.osgeo.org/grass/ticket/627#comment:5

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

#628: wingrass native: vdigit error on new map
------------------------------+---------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: wingrass, vdigit | Platform: MSWindows XP
      Cpu: x86-32 |
------------------------------+---------------------------------------------

Comment(by hamish):

I think the original report must have been in error. Anyway now you get a
nice message that the wxDigitizer module is missing instead of a nasty
traceback log.

If you start WinGrass with a MSys terminal, you get a message on the
terminal at startup that explains why the vector digitizer is not there.

Something pointing the user to Vector -> Develop -> Digitize using Tcl/Tk
would be nice. ... either a message or immediate launch of the Tcl/Tk
version.

replace no module named grass_wxvdigit [OK]
with "no module... Start Tcl/Tk {digitizer|NVIZ} instead?" [Yes] [no]
?

Hamish

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

#628: wingrass native: vdigit error on new map
------------------------------+---------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: wingrass, vdigit | Platform: MSWindows XP
      Cpu: x86-32 |
------------------------------+---------------------------------------------

Comment(by hellik):

Replying to [comment:2 hamish]:
> I think the original report must have been in error. Anyway now you get
a nice message that the wxDigitizer module is missing instead of a nasty
traceback log.
>
> If you start WinGrass with a MSys terminal, you get a message on the
terminal at startup that explains why the vector digitizer is not there.
>
> Something pointing the user to Vector -> Develop -> Digitize using
Tcl/Tk would be nice. ... either a message or immediate launch of the
Tcl/Tk version.
>
> replace no module named grass_wxvdigit [OK]
> with "no module... Start Tcl/Tk {digitizer|NVIZ} instead?" [Yes] [no]
> ?
>
>
> Hamish

+1

Helmut

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

#628: wingrass native: vdigit error on new map
------------------------------+---------------------------------------------
Reporter: hamish | Owner: martinl
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: wingrass, vdigit | Platform: MSWindows XP
      Cpu: x86-32 |
------------------------------+---------------------------------------------
Changes (by martinl):

* cc: grass-dev@… (added)
  * owner: grass-dev@… => martinl

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

#628: wingrass native: vdigit error on new map
------------------------------+---------------------------------------------
Reporter: hamish | Owner: martinl
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: wingrass, vdigit | Platform: MSWindows XP
      Cpu: x86-32 |
------------------------------+---------------------------------------------

Comment(by hellik):

Replying to [comment:2 hamish]:
> I think the original report must have been in error. Anyway now you get
a nice message that the wxDigitizer module is missing instead of a nasty
traceback log.
>
> If you start WinGrass with a MSys terminal, you get a message on the
terminal at startup that explains why the vector digitizer is not there.
>
> Something pointing the user to Vector -> Develop -> Digitize using
Tcl/Tk would be nice. ... either a message or immediate launch of the
Tcl/Tk version.
>
> replace no module named grass_wxvdigit [OK]
> with "no module... Start Tcl/Tk {digitizer|NVIZ} instead?" [Yes] [no]
> ?
>
>
> Hamish

with r42872 for Grass65, see attached picture for information about
missing 3d-view mode and wxdigitizer in wingrass.

thanks for adding this.

Helmut

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

#628: wingrass native: vdigit error on new map
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: martinl
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: fixed | Keywords: wingrass, vdigit
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Changes (by hellik):

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

Comment:

fixed also in grass64. closing the ticket.

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