[GRASS-dev] scripts don't launch GUI from the msys command line in winGRASS

Glynn Clements glynn at gclements.plus.com
Thu Feb 4 18:51:11 EST 2010


Helmut Kudrnovsky wrote:

> I've tried this from the msys-shell, for example g.region, r.blend,
> ..., and if I remember correctly, this worked by popping up the gui
> until a week ago or so. 
> 
> here is the error message:
> 
> "GRASS 6.4> r.blend
> 
> Fehler: Benötigter Parameter <first> ist nicht gesetzt:
>     (Name der ersten Rasterkarte für die Mischung.).
> 
> error: needed parameter <first> not set

Actually, the error is:

	_("\nERROR: Required parameter <%s> not set:\n    (%s).\n"),

If possible, run with LC_ALL=C when posting error messages, as this
will use the untranslated error message which can then be located with
"grep".

> 
> Fehler: Benötigter Parameter <second> ist nicht gesetzt:
>     (Name der zweiten Rasterkarte für die Mischung.).
> 
> error: needed parameter <second> not set
> 
> Fehler: Benötigter Parameter <output> ist nicht gesetzt:
>     (Präfix für die rote, grüne und blaue Ausgabekarte der erstellten Mischung.).
> 
> error: needed parameter <output> not set"
> 
> 
> but it's working from the wx-gui-command-line, from the
> tcltk-command-line (by the buttons "run in background","run GUI", and
> "run in DOS-box").

>From the command line, the GUI is only used if the --ui flag is given
or if no arguments are given, stdin is a terminal (according to
isatty()), and interactivity hasn't been disabled by the module.

Note that MSys' rxvt *isn't* considered a terminal by Windows'
isatty() function, so programs run from rxvt won't display a GUI
unless you use the --ui switch.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list