[GRASS-user] disappearing gis.m
Glynn Clements
glynn at gclements.plus.com
Sat Mar 3 20:25:29 EST 2007
Stuart Edwards wrote:
> Just updated to 6.2 using Lorenzo's binaries and now have the
> disappearing gis.m manager syndrome -- saw some correspondence about
> this in January, but not for OSX. Everything works fine when the
> startup is X11, but in OSX or X11 OSX, the following errors occur:
>
> GRASS 6.2.1 (tinatown):~ > Error in startup script: bad variable name
> "coords(1)": upvar won't create a scalar variable that looks like an
> array element
> while executing
> "global coords($mon)"
> (procedure "MapCanvas::pointer" line 5)
> invoked from within
> "MapCanvas::pointer $mon"
> (procedure "MapCanvas::create" line 226)
> invoked from within
> "MapCanvas::create"
> (procedure "Gm::startmon" line 11)
> invoked from within
> "Gm::startmon"
> (procedure "Gm::create" line 69)
> invoked from within
> "Gm::create"
> (procedure "main" line 30)
> invoked from within
> "main $argc $argv"
> (file "/Applications/GrassGIS/Grass6.app/Contents/Resources/
> grass-6.2.1/etc/gm/gm.tcl" line 521)
>
> Also tried the 6.3 cvs with the same result.
>
> OSX 10.4.8 on Intel Xeon 2x2.66
>
> Any suggestions much appreciated.
In the file $GISBASE/etc/gm/mapcanvas.tcl, in the procedure
MapCanvas::pointer, change the line:
global coords($mon)
to:
global coords
I'm guessing that the issue must be specific to certain versions of
Tcl/Tk, as this code has been there since 2006-06-06, and exists in
all 6.x releases, as far back as 6.0.0-beta1.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list