[GRASS-user] I.class empty Xmonitor

Greetings
I’m using GRASS6.4 on a Linux machine.

If I Select i.class from wxpython GUI, I get an empty x0 monitor but, If i insert i.class in command line it opens a Wxpython Form.

Is this an error or a normal thing?
(as far as I remember something similar happened in i.ortho.photo).

Thank you
Luisa
S.Paulo, Brazil

On Wed, Feb 3, 2010 at 4:07 PM, Luisa Peña <luisapena1979@gmail.com> wrote:

Greetings
I'm using GRASS6.4 on a Linux machine.
If I Select i.class from wxpython GUI, I get an empty x0 monitor but, If i
insert i.class in command line it opens a Wxpython Form.
Is this an error or a normal thing?
(as far as I remember something similar happened in i.ortho.photo).

You need to have "xterm" installed. Please check.
Perhaps we need to add more error testing in the wxGUI?

Markus

Greetings

You need to have “xterm” installed. Please check.
Perhaps we need to add more error testing in the wxGUI?

I do have installed. I’m running in Ubuntu and with xterm version 243.
Is it required other packages such as xtermcontrol or xtermset? Or more packages? or in the ./configure to include something?

By the way, I decided to run it not from wxpython but from command line and I got this:

(Thu Feb 4 12:45:01 2010)
i.class map=lsat7_2002_20@PERMANENT group=lsat7_2002@PERMANENT subgroup=lsa7_2002 outsig=out
(Thu Feb 4 12:45:01 2010) Command finished (0 sec)
And nothing happened. Am i suppose to open a monitor before or is it suppose to open by itself?

Thank you

Best regards
Luisa

Luisa wrote:

I do have installed. I'm running in Ubuntu
and with xterm version 243.

hmmm. The ubuntu package asks for "x-terminal-emulator". Where does that
symlink lead to? (there's a debian-specific patch in the package)

Is it required other packages such as xtermcontrol or
xtermset? Or more packages? or in the ./configure to include
something?

no, probably not.

what version of ubuntu is this again? UbuntuGIS package version?

By the way, I decided to run it not from
wxpython but from command line and I got this:
(Thu Feb 4 12:45:01 2010)
                                     
i.class map=lsat7_2002_20@PERMANENT
group=lsat7_2002@PERMANENT subgroup=lsa7_2002
outsig=out(Thu Feb 4 12:45:01 2010) Command
finished (0 sec)

can you try from the actual terminal command line, not from the GUI
Cmd> prompt?

you will have to run "d.mon x0" first.

And nothing happened. Am i suppose to open a monitor
before or is it suppose to open by itself?

It only opens the monitor for you if you select it from the GUI menu.

Hamish

Hello Hamish
I’m running Ubuntu 9.10 and GRASSsvn6.4.0 updated with an early January snapshot.
UbuntuGIS package? I don’t have an UbuntuGIS package… I installed the packages that are listed in http://grass.itc.it/grass64/source/REQUIREMENTS.html (more or less those).

It only opens the monitor for you if you select it from the GUI menu.
It opens an empty/blank monitor but nothing else. no Interactive menu or what so ever.

Is is required that UbuntuGIS package?

2010/2/8 Hamish <hamish_b@yahoo.com>

Luisa wrote:

I do have installed. I’m running in Ubuntu
and with xterm version 243.

hmmm. The ubuntu package asks for “x-terminal-emulator”. Where does that
symlink lead to? (there’s a debian-specific patch in the package)

what version of ubuntu is this again? UbuntuGIS package version?

By the way, I decided to run it not from
wxpython but from command line and I got this:
(Thu Feb 4 12:45:01 2010)

i.class map=lsat7_2002_20@PERMANENT
group=lsat7_2002@PERMANENT subgroup=lsa7_2002
outsig=out(Thu Feb 4 12:45:01 2010) Command
finished (0 sec)

can you try from the actual terminal command line, not from the GUI
Cmd> prompt?

you will have to run “d.mon x0” first.

And nothing happened. Am i suppose to open a monitor
before or is it suppose to open by itself?

It only opens the monitor for you if you select it from the GUI menu.

Luisa Peña wrote:

I'm running Ubuntu 9.10 and GRASSsvn6.4.0 updated with an
early January snapshot.

ok, it should be fine.

UbuntuGIS package? I don't have an UbuntuGIS package..

ok

I installed the packages that are listed
in http://grass.itc.it/grass64/source/REQUIREMENTS.html (more
or less those).

Hamish:

> It only opens the monitor for you if you select it from the GUI menu.

It opens an empty/blank monitor but nothing else. no Interactive
menu or what so ever.

ok.

how do you start GRASS? by clicking on an icon or menu item, or with
"grass64" typed at the command line in a terminal?

please try starting from the command line, and then also from the GRASS>
prompt running 'd.mon x0' and i.class. --not from the GUI--.
The interactive menus should be in text in the terminal, not in the
Xmonitor.

?? where does the x-terminal-emulator symlink in /etc/alternatives/
point to ??

does that work?

Is is required that UbuntuGIS package?

No, that is not required, I was trying to figure out what you are using.

Hamish

how do you start GRASS? by clicking on an icon or menu item, or with
“grass64” typed at the command line in a terminal?

By typing “grass64 -wxpython” in my terminal.

please try starting from the command line, and then also from the GRASS>
prompt running ‘d.mon x0’ and i.class. --not from the GUI–.
The interactive menus should be in text in the terminal, not in the
Xmonitor.

After d.on x0 it printed

using default visual which is TrueColor
ncolors: 16777216
Graphics driver [x0] started

Ok it asks for input raster map, group, sub-group and output file and existing files.
Then, it opens 2 monitors:

  • 1 to visualize image (zoomed, signatures etc)
  • other divided in two stating “use mouse now”
    I suppose this is what it’s suppose to be expecting from i.class module right?

(I tried to save a file but it saved only # ==> But for now I just want to fix this, before understanding what am I doing wrong regarding i.class use)

How can I do this inside a wxpython? :slight_smile:

?? where does the x-terminal-emulator symlink in /etc/alternatives/
point to ?

The file x-terminal-emulation at etc/alternatives is not a link but an executable file.

doing nm x-terminal emulator I get:
nm: x-terminal-emulator: File format not recognized

x-terminal-emulator has the following code:
#! /usr/bin/perl -w

my $login=0;

while ($opt = shift(@ARGV))
{
if ($opt eq ‘-display’)
{
$ENV{‘DISPLAY’} = shift(@ARGV);
}
elsif ($opt eq ‘-name’)
{
$arg = shift(@ARGV);
push(@args, “–window-with-profile=$arg”);
}
elsif ($opt eq ‘-n’)
{

Accept but ignore

print STDERR “$0: to set an icon, please use -name and set a profile icon\n”
}
elsif ($opt eq ‘-T’ || $opt eq ‘-title’)
{
push(@args, ‘-t’, shift(@ARGV));
}
elsif ($opt eq ‘-ls’)
{
$login = 1;
}
elsif ($opt eq ‘+ls’)
{
$login = 0;
}
elsif ($opt eq ‘-geometry’)
{
$arg = shift(@ARGV);
push(@args, “–geometry=$arg”);
}
elsif ($opt eq ‘-fn’)
{
$arg = shift(@ARGV);
push(@args, “–font=$arg”);
}
elsif ($opt eq ‘-fg’)
{
$arg = shift(@ARGV);
push(@args, “–foreground=$arg”);
}
elsif ($opt eq ‘-bg’)
{
$arg = shift(@ARGV);
push(@args, “–background=$arg”);
}
elsif ($opt eq ‘-tn’)
{
$arg = shift(@ARGV);
push(@args, “–termname=$arg”);
}
elsif ($opt eq ‘-e’)
{
$arg = shift(@ARGV);
if (@ARGV)
{
push(@args, ‘-x’, $arg, @ARGV);
last;
}
else
{
push(@args, ‘-e’, $arg);
}
last;
}
elsif ($opt eq ‘-h’ || $opt eq ‘–help’)
{
push(@args, ‘–help’);
}
}
if ($login == 1)
{
@args = (‘–login’, @args);
}
exec(‘gnome-terminal’,@args);

Does this help???

Thank you Hamish for all your help