Opened 15 years ago

Closed 13 years ago

#628 closed defect (fixed)

wingrass native: vdigit error on new map

Reported by: hamish Owned by: martinl
Priority: normal Milestone: 6.4.0
Component: wxGUI Version: 6.4.0 RCs
Keywords: wingrass, vdigit Cc: grass-dev@…
CPU: x86-32 Platform: MSWindows XP

Description

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

Attachments (1)

WinGrass_21072010_181919.png (53.2 KB ) - added by hellik 14 years ago.
Info about 3d view mode and wx-digitize

Download all attachments as: .zip

Change History (7)

in reply to:  description comment:1 by hellik, 14 years ago

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

comment:2 by hamish, 14 years ago

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

in reply to:  2 comment:3 by hellik, 14 years ago

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

comment:4 by martinl, 14 years ago

Cc: grass-dev@… added
Owner: changed from grass-dev@… to martinl

by hellik, 14 years ago

Info about 3d view mode and wx-digitize

in reply to:  2 comment:5 by hellik, 14 years ago

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

comment:6 by hellik, 13 years ago

Resolution: fixed
Status: newclosed

fixed also in grass64. closing the ticket.

Note: See TracTickets for help on using tickets.