[GRASS-user] problems starting wxPython gui using wingrass

On Jan 16, 2008, at 1:30 PM, grass-user-request@lists.osgeo.org wrote:

Date: Wed, 16 Jan 2008 13:17:17 -0600
From: "Gerald Nelson" <gnelson@uiuc.edu>
Subject: [GRASS-user] problems starting wxPython gui using wingrass
To: "'grass list'" <grassuser@grass.itc.it>
Message-ID: <00df01c85874$68fa1690$3e40ae80@ace.uiuc.edu>
Content-Type: text/plain; charset="us-ascii"

I thought I'd try the wxPython gui with wingrass. I downloaded
wingrass63RC4.zip and installed it. Also python 2.4 and
wxPython2.8-win32-unicode-2.8.7.1-py24.exe.

The README file at
http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README says

Go to directory:

$ cd gui/wxpython

I assume that means c:/grass63RC4/grass-6.3.0RC4/etc/gui. But there is no
wxpython folder there, just folders for icons and scripts. Either I'm
looking in the wrong gui directory or the wxpython directory doesn't come
with wingrass, or I'm doing something else wrong.

Jerry,

The old readme is out of date with the move to the new SVN.

the wxPython GUI is installed by default in GRASS 6.3 when you compile (unless you got a version for the few days prior to yesterday).

Once you have Python (I'd recommend going with the current 2.5 rather than the legacy 2.4 version) and wxPython installed, all you *should* have to do is type wxgrass from the command line to launch the new GUI in Linux and Mac.

From Windows, there is no command line, so you'll need to change your .grassrc6 file a bit. Change the line that says...

GRASS_GUI: tcltk

...to read

GRASS_GUI: wx

...and save the file.

By default, the .grassrc6 file is in your Windows home directory (I think that's the directory where My Documents is found).
Please let us know how it works for you.

Michael

______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

So, I updated recently through svn the source and now I got GRASS
6.3.0RC4 running.

Why isn't wxgrass there by default?

Cheers,

Nikos.

On Wed, 2008-01-16 at 13:42 -0700, Michael Barton wrote:

On Jan 16, 2008, at 1:30 PM, grass-user-request@lists.osgeo.org wrote:

> Date: Wed, 16 Jan 2008 13:17:17 -0600
> From: "Gerald Nelson" <gnelson@uiuc.edu>
> Subject: [GRASS-user] problems starting wxPython gui using wingrass
> To: "'grass list'" <grassuser@grass.itc.it>
> Message-ID: <00df01c85874$68fa1690$3e40ae80@ace.uiuc.edu>
> Content-Type: text/plain; charset="us-ascii"
>
> I thought I'd try the wxPython gui with wingrass. I downloaded
> wingrass63RC4.zip and installed it. Also python 2.4 and
> wxPython2.8-win32-unicode-2.8.7.1-py24.exe.
>
>
>
> The README file at
> http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README says
>
>
>
> Go to directory:
>
> $ cd gui/wxpython
>
>
>
> I assume that means c:/grass63RC4/grass-6.3.0RC4/etc/gui. But there
> is no
> wxpython folder there, just folders for icons and scripts. Either I'm
> looking in the wrong gui directory or the wxpython directory doesn't
> come
> with wingrass, or I'm doing something else wrong.

Jerry,

The old readme is out of date with the move to the new SVN.

the wxPython GUI is installed by default in GRASS 6.3 when you compile
(unless you got a version for the few days prior to yesterday).

Once you have Python (I'd recommend going with the current 2.5 rather
than the legacy 2.4 version) and wxPython installed, all you *should*
have to do is type wxgrass from the command line to launch the new GUI
in Linux and Mac.

From Windows, there is no command line, so you'll need to change
your .grassrc6 file a bit. Change the line that says...

GRASS_GUI: tcltk

...to read

GRASS_GUI: wx

...and save the file.

By default, the .grassrc6 file is in your Windows home directory (I
think that's the directory where My Documents is found).
Please let us know how it works for you.

Michael

______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Nikos Alexandris
.
Department of Remote Sensing & Landscape Information Systems
Faculty of Forestry & Environmental Sciences, Albert-Ludwigs-University Freiburg
.
Tel. +49 (0) 761 203 3697 / Fax. +49 (0) 761 203 3701 / Skype: Nikos.Alexandris
.
Address: Tennenbacher str. 4, D-79106 Freiburg i. Br., Germany

Hi,

just small notes...

2008/1/16, Michael Barton <michael.barton@asu.edu>:

[snip]

> The README file at
> http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README says

Michael:

The old readme is out of date with the move to the new SVN.

this file should be up-to-date... I hope:-)

the wxPython GUI is installed by default in GRASS 6.3 when you compile
(unless you got a version for the few days prior to yesterday).

releasebranch_6_3 contains completely out-dated code, see

http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_3/gui/wxpython

Martin

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

Hi,

hm, maybe we should remove old wxpython code from 6_3 branch or to
copy the code from trunk before 6.3.0 will be released. To avoid
confusion...

Anyway for testing GUI use trunk (or in the future 6_4 branch).

Martin

2008/1/16, Martin Landa <landa.martin@gmail.com>:

Hi,

just small notes...

2008/1/16, Michael Barton <michael.barton@asu.edu>:

[snip]

> > The README file at
> > http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README says

Michael:
> The old readme is out of date with the move to the new SVN.

this file should be up-to-date... I hope:-)

> the wxPython GUI is installed by default in GRASS 6.3 when you compile
> (unless you got a version for the few days prior to yesterday).

releasebranch_6_3 contains completely out-dated code, see

http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_3/gui/wxpython

Martin

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

Michael, I just downloaded the binary for wingrass. No compilation attempts
in windows yet.

In the meantime I downloaded the latest source from svn (using tortoiseSVN),
copied the wxpython folder to the gui folder, copied the wxgrass file to the
scripts folder. I want to use msys so I can run scripts so I launch msys, cd
to the bin directory of grass63 and type grass63 -wx. No good. Then I type
wxgrass. Still no good. But I think the main problem is that the grass
scripts can't find python. The $PATH variable in msys is
/c/grass63RC4/grass-6.3.0RC4/lib:/c/grass63RC4/grass-6.3.0RC4/bin:/c/grass63
RC4/grass-6.3.0RC4/scripts:.:/usr/local/bin:/mingw/bin:/bin:/c/Program: No
such file or directory

Which is a bit bizarre, but in particular contains no reference to python in
it.

The following is what happens when I do
$ grass63 -wx
Cleaning up temporary files.....
Starting GRASS ...
/c/grass63RC4/grass-6.3.0RC4/etc/Init.sh: python: command not found
ERROR: Invalid return code from gis_set.tcl.
Please advise GRASS developers of this error.

I haven't yet figured out how msys gets its path value.

Jerry

-----Original Message-----
From: grass-user-bounces@lists.osgeo.org
[mailto:grass-user-bounces@lists.osgeo.org] On Behalf Of Michael Barton
Sent: Wednesday, January 16, 2008 2:42 PM
To: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] problems starting wxPython gui using wingrass

On Jan 16, 2008, at 1:30 PM, grass-user-request@lists.osgeo.org wrote:

Date: Wed, 16 Jan 2008 13:17:17 -0600
From: "Gerald Nelson" <gnelson@uiuc.edu>
Subject: [GRASS-user] problems starting wxPython gui using wingrass
To: "'grass list'" <grassuser@grass.itc.it>
Message-ID: <00df01c85874$68fa1690$3e40ae80@ace.uiuc.edu>
Content-Type: text/plain; charset="us-ascii"

I thought I'd try the wxPython gui with wingrass. I downloaded
wingrass63RC4.zip and installed it. Also python 2.4 and
wxPython2.8-win32-unicode-2.8.7.1-py24.exe.

The README file at
http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README says

Go to directory:

$ cd gui/wxpython

I assume that means c:/grass63RC4/grass-6.3.0RC4/etc/gui. But there
is no
wxpython folder there, just folders for icons and scripts. Either I'm
looking in the wrong gui directory or the wxpython directory doesn't
come
with wingrass, or I'm doing something else wrong.

Jerry,

The old readme is out of date with the move to the new SVN.

the wxPython GUI is installed by default in GRASS 6.3 when you compile
(unless you got a version for the few days prior to yesterday).

Once you have Python (I'd recommend going with the current 2.5 rather
than the legacy 2.4 version) and wxPython installed, all you *should*
have to do is type wxgrass from the command line to launch the new GUI
in Linux and Mac.

From Windows, there is no command line, so you'll need to change
your .grassrc6 file a bit. Change the line that says...

GRASS_GUI: tcltk

...to read

GRASS_GUI: wx

...and save the file.

By default, the .grassrc6 file is in your Windows home directory (I
think that's the directory where My Documents is found).
Please let us know how it works for you.

Michael

______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

"wxgrass" is a shell script (in $GISBASE/scripts/) that launches the wxPython GUI. You can call it from the terminal in Linux and on the Mac. There is no terminal for WinGRASS and I don't know what happens if you try to call it from the TclTk command console.

So, to launch the wxPython GUI in Windows, you have to start it from the beginning by altering the .grassrc6 file.

Michael
______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Jan 16, 2008, at 1:57 PM, Nikos Alexandris wrote:

So, I updated recently through svn the source and now I got GRASS
6.3.0RC4 running.

Why isn't wxgrass there by default?

Cheers,

Nikos.

On Wed, 2008-01-16 at 13:42 -0700, Michael Barton wrote:

On Jan 16, 2008, at 1:30 PM, grass-user-request@lists.osgeo.org wrote:

Date: Wed, 16 Jan 2008 13:17:17 -0600
From: "Gerald Nelson" <gnelson@uiuc.edu>
Subject: [GRASS-user] problems starting wxPython gui using wingrass
To: "'grass list'" <grassuser@grass.itc.it>
Message-ID: <00df01c85874$68fa1690$3e40ae80@ace.uiuc.edu>
Content-Type: text/plain; charset="us-ascii"

I thought I'd try the wxPython gui with wingrass. I downloaded
wingrass63RC4.zip and installed it. Also python 2.4 and
wxPython2.8-win32-unicode-2.8.7.1-py24.exe.

The README file at
http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README says

Go to directory:

$ cd gui/wxpython

I assume that means c:/grass63RC4/grass-6.3.0RC4/etc/gui. But there
is no
wxpython folder there, just folders for icons and scripts. Either I'm
looking in the wrong gui directory or the wxpython directory doesn't
come
with wingrass, or I'm doing something else wrong.

Jerry,

The old readme is out of date with the move to the new SVN.

the wxPython GUI is installed by default in GRASS 6.3 when you compile
(unless you got a version for the few days prior to yesterday).

Once you have Python (I'd recommend going with the current 2.5 rather
than the legacy 2.4 version) and wxPython installed, all you *should*
have to do is type wxgrass from the command line to launch the new GUI
in Linux and Mac.

From Windows, there is no command line, so you'll need to change
your .grassrc6 file a bit. Change the line that says...

GRASS_GUI: tcltk

...to read

GRASS_GUI: wx

...and save the file.

By default, the .grassrc6 file is in your Windows home directory (I
think that's the directory where My Documents is found).
Please let us know how it works for you.

Michael

______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Nikos Alexandris
.
Department of Remote Sensing & Landscape Information Systems
Faculty of Forestry & Environmental Sciences, Albert-Ludwigs-University Freiburg
.
Tel. +49 (0) 761 203 3697 / Fax. +49 (0) 761 203 3701 / Skype: Nikos.Alexandris
.
Address: Tennenbacher str. 4, D-79106 Freiburg i. Br., Germany

I guess I don't understand the branches well enough in the SVN to make sense of this. Perhaps that is what the problem is.

To get it, people need to update from the 6.3 trunk.

Michael
______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Jan 16, 2008, at 1:59 PM, Martin Landa wrote:

Hi,

just small notes...

2008/1/16, Michael Barton <michael.barton@asu.edu>:

[snip]

The README file at
http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README says

Michael:

The old readme is out of date with the move to the new SVN.

this file should be up-to-date... I hope:-)

the wxPython GUI is installed by default in GRASS 6.3 when you compile
(unless you got a version for the few days prior to yesterday).

releasebranch_6_3 contains completely out-dated code, see

http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_3/gui/wxpython

Martin

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

Right.

Michael
______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Jan 16, 2008, at 2:03 PM, Martin Landa wrote:

Hi,

hm, maybe we should remove old wxpython code from 6_3 branch or to
copy the code from trunk before 6.3.0 will be released. To avoid
confusion...

Anyway for testing GUI use trunk (or in the future 6_4 branch).

Martin

2008/1/16, Martin Landa <landa.martin@gmail.com>:

Hi,

just small notes...

2008/1/16, Michael Barton <michael.barton@asu.edu>:

[snip]

The README file at
http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README says

Michael:

The old readme is out of date with the move to the new SVN.

this file should be up-to-date... I hope:-)

the wxPython GUI is installed by default in GRASS 6.3 when you compile
(unless you got a version for the few days prior to yesterday).

releasebranch_6_3 contains completely out-dated code, see

http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_3/gui/wxpython

Martin

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

As Martin explained better than I, there is old code in the release branch. But if you update from the SVN trunk, you don't need to copy the wxPython GUI code anywhere. It is already where it is supposed to go.

I just looked at the WinGRASS binary code and see the problem. For some reason, it is not in this binary. It is in the Mac binaries, which is why this has seemed so odd to me.

If you want to put it in manually, the gui code goes into $GISBASE/etc/wx (you'll have to make the directory). You need to also get the wxgrass bash script and put it into $GISBASE/scripts.

Michael
______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Jan 16, 2008, at 2:08 PM, Gerald Nelson wrote:

Michael, I just downloaded the binary for wingrass. No compilation attempts
in windows yet.

In the meantime I downloaded the latest source from svn (using tortoiseSVN),
copied the wxpython folder to the gui folder, copied the wxgrass file to the
scripts folder. I want to use msys so I can run scripts so I launch msys, cd
to the bin directory of grass63 and type grass63 -wx. No good. Then I type
wxgrass. Still no good. But I think the main problem is that the grass
scripts can't find python. The $PATH variable in msys is
/c/grass63RC4/grass-6.3.0RC4/lib:/c/grass63RC4/grass-6.3.0RC4/bin:/c/grass63
RC4/grass-6.3.0RC4/scripts:.:/usr/local/bin:/mingw/bin:/bin:/c/Program: No
such file or directory

Which is a bit bizarre, but in particular contains no reference to python in
it.

The following is what happens when I do
$ grass63 -wx
Cleaning up temporary files.....
Starting GRASS ...
/c/grass63RC4/grass-6.3.0RC4/etc/Init.sh: python: command not found
ERROR: Invalid return code from gis_set.tcl.
Please advise GRASS developers of this error.

I haven't yet figured out how msys gets its path value.

Jerry

-----Original Message-----
From: grass-user-bounces@lists.osgeo.org
[mailto:grass-user-bounces@lists.osgeo.org] On Behalf Of Michael Barton
Sent: Wednesday, January 16, 2008 2:42 PM
To: grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] problems starting wxPython gui using wingrass

On Jan 16, 2008, at 1:30 PM, grass-user-request@lists.osgeo.org wrote:

Date: Wed, 16 Jan 2008 13:17:17 -0600
From: "Gerald Nelson" <gnelson@uiuc.edu>
Subject: [GRASS-user] problems starting wxPython gui using wingrass
To: "'grass list'" <grassuser@grass.itc.it>
Message-ID: <00df01c85874$68fa1690$3e40ae80@ace.uiuc.edu>
Content-Type: text/plain; charset="us-ascii"

I thought I'd try the wxPython gui with wingrass. I downloaded
wingrass63RC4.zip and installed it. Also python 2.4 and
wxPython2.8-win32-unicode-2.8.7.1-py24.exe.

The README file at
http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README says

Go to directory:

$ cd gui/wxpython

I assume that means c:/grass63RC4/grass-6.3.0RC4/etc/gui. But there
is no
wxpython folder there, just folders for icons and scripts. Either I'm
looking in the wrong gui directory or the wxpython directory doesn't
come
with wingrass, or I'm doing something else wrong.

Jerry,

The old readme is out of date with the move to the new SVN.

the wxPython GUI is installed by default in GRASS 6.3 when you compile
(unless you got a version for the few days prior to yesterday).

Once you have Python (I'd recommend going with the current 2.5 rather
than the legacy 2.4 version) and wxPython installed, all you *should*
have to do is type wxgrass from the command line to launch the new GUI
in Linux and Mac.

From Windows, there is no command line, so you'll need to change
your .grassrc6 file a bit. Change the line that says...

GRASS_GUI: tcltk

...to read

GRASS_GUI: wx

...and save the file.

By default, the .grassrc6 file is in your Windows home directory (I
think that's the directory where My Documents is found).
Please let us know how it works for you.

Michael

______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi,

2008/1/16, Martin Landa <landa.martin@gmail.com>:

hm, maybe we should remove old wxpython code from 6_3 branch or to
copy the code from trunk before 6.3.0 will be released. To avoid
confusion...

so if there are no objections I will remove old wxpython code from
releasebranch_6_3...

Martin

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

Good idea.

Michael
______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Jan 16, 2008, at 3:35 PM, Martin Landa wrote:

Hi,

2008/1/16, Martin Landa <landa.martin@gmail.com>:

hm, maybe we should remove old wxpython code from 6_3 branch or to
copy the code from trunk before 6.3.0 will be released. To avoid
confusion...

so if there are no objections I will remove old wxpython code from
releasebranch_6_3...

Martin

-- Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

I am sorry for bothering again.

I am on ubuntu.

I updated (sudo svn up) from within
the /usr/local/src/MyGRASSsourceDirectory
Configured-compilled-installed.

No wxgrass anywhere.. only a few irrelevant scripts under... :

GRASS 6.3.0RC4 (Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui >
ls
icons scripts

So... I go in /usr/loca/src/MyGRASSsrcDir/gui

directory and I only find "wxpython" as a folder which does not contain
any "wxgrass" script.

GRASS 6.3.0RC4
(Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/gui/wxpython > ls
archive gm.wxp grass-interface.dtd mapdisp.py scripts
gism.py grassgui.py Makefile render.py

So I can't copy or create links!

On Wed, 2008-01-16 at 15:42 -0700, Michael Barton wrote:

Good idea.

Michael
______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Jan 16, 2008, at 3:35 PM, Martin Landa wrote:

> Hi,
>
> 2008/1/16, Martin Landa <landa.martin@gmail.com>:
>> hm, maybe we should remove old wxpython code from 6_3 branch or to
>> copy the code from trunk before 6.3.0 will be released. To avoid
>> confusion...
>
> so if there are no objections I will remove old wxpython code from
> releasebranch_6_3...
>
> Martin
>
> --
> Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/
> ~landa *

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Nikos Alexandris
.
Department of Remote Sensing & Landscape Information Systems
Faculty of Forestry & Environmental Sciences, Albert-Ludwigs-University Freiburg
.
Tel. +49 (0) 761 203 3697 / Fax. +49 (0) 761 203 3701 / Skype: Nikos.Alexandris
.
Address: Tennenbacher str. 4, D-79106 Freiburg i. Br., Germany

On Jan 16, 2008, at 4:30 PM, Michael Barton wrote:

I just looked at the WinGRASS binary code and see the problem. For some reason, it is not in this binary. It is in the Mac binaries, which is why this has seemed so odd to me.

Sorry to cause confusion - I ported the trunk wxpython updates to my copy of RC4 for my binaries, since I was doing that for previous SVN builds before wxgrass was merged into GRASS. I guess that makes it technically not RC4 binaries.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?
Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal?
First Pogril: I don't know either. Wretched, isn't it?

-HitchHiker's Guide to the Galaxy

On Wed, January 16, 2008 23:30, Michael Barton wrote:

As Martin explained better than I, there is old code in the release
branch. But if you update from the SVN trunk, you don't need to copy
the wxPython GUI code anywhere. It is already where it is supposed to
go.

I just looked at the WinGRASS binary code and see the problem. For
some reason, it is not in this binary. It is in the Mac binaries,
which is why this has seemed so odd to me.

I can include it. The last time I tried, however, there were a few linux
specific functions which kept it from working (see
http://lists.osgeo.org/pipermail/grass-gui/2007-November/000639.html)

If you want to put it in manually, the gui code goes into $GISBASE/etc/
wx (you'll have to make the directory). You need to also get the
wxgrass bash script and put it into $GISBASE/scripts.

This should work from within msys, but won't work when called from cmd.exe
as you cannot easily use shell scripts there. We would need a cmd.exe .bat
file. On the other hand, it might be easier if the wxgrass team could just
rewrite that shell script to python and thus make it portable across all
platforms.

But you can launch wxgrass quite easily by running the command contained
in the wxgrass shell file yourself, i.e. something like:

c:\programme\Python25\python.exe c:\grass\grass-6.3.svn\etc\wx\wxgui.py

However, I currently get the following error:

*****
Traceback (most recent call last):
  File "c:\grass\grass-6.3.svn\etc\wx\wxgui.py", line 53, in <module>
    import gui_modules.utils as utils
  File "C:\grass\grass-6.3.svn\etc\wx\gui_modules\utils.py", line 23, in
<module

    import gcmd
  File "c:\grass\grass-6.3.svn\etc\wx\gui_modules\gcmd.py", line 32, in
<module>
    from win32file import ReadFile, WriteFile
ImportError: No module named win32file
****

and am too tired to look into it now.

Moritz

Nikos,

These are in the trunk. I'm not sure why they are not in 6.3.0RC4.

Michael
______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Jan 16, 2008, at 3:48 PM, Nikos Alexandris wrote:

I am sorry for bothering again.

I am on ubuntu.

I updated (sudo svn up) from within
the /usr/local/src/MyGRASSsourceDirectory
Configured-compilled-installed.

No wxgrass anywhere.. only a few irrelevant scripts under... :

GRASS 6.3.0RC4 (Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui >
ls
icons scripts

So... I go in /usr/loca/src/MyGRASSsrcDir/gui

directory and I only find "wxpython" as a folder which does not contain
any "wxgrass" script.

GRASS 6.3.0RC4
(Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/gui/wxpython > ls
archive gm.wxp grass-interface.dtd mapdisp.py scripts
gism.py grassgui.py Makefile render.py

So I can't copy or create links!

On Wed, 2008-01-16 at 15:42 -0700, Michael Barton wrote:

Good idea.

Michael
______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Jan 16, 2008, at 3:35 PM, Martin Landa wrote:

Hi,

2008/1/16, Martin Landa <landa.martin@gmail.com>:

hm, maybe we should remove old wxpython code from 6_3 branch or to
copy the code from trunk before 6.3.0 will be released. To avoid
confusion...

so if there are no objections I will remove old wxpython code from
releasebranch_6_3...

Martin

-- Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/
~landa *

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Nikos Alexandris
.
Department of Remote Sensing & Landscape Information Systems
Faculty of Forestry & Environmental Sciences, Albert-Ludwigs-University Freiburg
.
Tel. +49 (0) 761 203 3697 / Fax. +49 (0) 761 203 3701 / Skype: Nikos.Alexandris
.
Address: Tennenbacher str. 4, D-79106 Freiburg i. Br., Germany

On Thu, January 17, 2008 00:28, Michael Barton wrote:

Nikos,

These are in the trunk. I'm not sure why they are not in 6.3.0RC4.

As Martin mentioned, the 6.3 branch contains outdated files. See
http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_3/gui/wxpython
which do not lead to the installation of wxgrass.

Moritz

Shouldn't this be changed? I thought that the wxpython files were going to move into the 6.3 branch with the move to the SVN and not wait until 6.4. This will allow more people to actively test and improve the new GUI.

Michael
______________________________
Michael Barton, Professor
Professor of Anthropology
Director of Graduate Studies
School of Human Diversity & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

On Jan 16, 2008, at 4:38 PM, Moritz Lennert wrote:

On Thu, January 17, 2008 00:28, Michael Barton wrote:

Nikos,

These are in the trunk. I'm not sure why they are not in 6.3.0RC4.

As Martin mentioned, the 6.3 branch contains outdated files. See
http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_3/gui/wxpython
which do not lead to the installation of wxgrass.

Moritz

Hi,

2008/1/16, Nikos Alexandris <nikos.alexandris@felis.uni-freiburg.de>:

I am sorry for bothering again.

I am on ubuntu.

I updated (sudo svn up) from within

general note, why are you running 'svn up' as sudo??

the /usr/local/src/MyGRASSsourceDirectory
Configured-compilled-installed.

No wxgrass anywhere.. only a few irrelevant scripts under... :

GRASS 6.3.0RC4 (Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui >
ls
icons scripts

So... I go in /usr/loca/src/MyGRASSsrcDir/gui

directory and I only find "wxpython" as a folder which does not contain
any "wxgrass" script.

GRASS 6.3.0RC4
(Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/gui/wxpython > ls
archive gm.wxp grass-interface.dtd mapdisp.py scripts
gism.py grassgui.py Makefile render.py

Once more, in grass 6.3 is old wxpython code. Use svn-trunk instead.

svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk

Martin

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

Thank you for the clarification (again).

(1) ??? I can put my hand on fire (greek... or universal
expression) that I was getting an error with "svn up" but
now not!

(2) Yes... trunk... (sorry for insisting).

On Thu, 17 Jan 2008 10:28:41 +0100
"Martin Landa" <landa.martin@gmail.com> wrote:

Hi,

2008/1/16, Nikos Alexandris
<nikos.alexandris@felis.uni-freiburg.de>:
> I am sorry for bothering again.
>
> I am on ubuntu.
>
> I updated (sudo svn up) from within

general note, why are you running 'svn up' as sudo??

> the /usr/local/src/MyGRASSsourceDirectory
> Configured-compilled-installed.
>
> No wxgrass anywhere.. only a few irrelevant scripts
under... :
>
> GRASS 6.3.0RC4
(Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui >
> ls
> icons scripts
>
> So... I go in /usr/loca/src/MyGRASSsrcDir/gui
>
> directory and I only find "wxpython" as a folder which
does not contain
> any "wxgrass" script.
>
> GRASS 6.3.0RC4
>

(Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/gui/wxpython

> ls
> archive gm.wxp grass-interface.dtd mapdisp.py
scripts
> gism.py grassgui.py Makefile render.py

Once more, in grass 6.3 is old wxpython code. Use
svn-trunk instead.

svn checkout https://svn.osgeo.org/grass/grass/trunk
grass_trunk

Martin

--
Martin Landa <landa.martin@gmail.com> *
http://gama.fsv.cvut.cz/~landa *

I'm glad that you're finally getting the correct code. I'm confused about it's availability too. Please let us know how it runs once you can get it and test it.

Michael
____________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>

On Jan 17, 2008, at 4:54 AM, nikos.alexandris@felis.uni-freiburg.de wrote:

Thank you for the clarification (again).

(1) ??? I can put my hand on fire (greek... or universal
expression) that I was getting an error with "svn up" but
now not!

(2) Yes... trunk... (sorry for insisting).

On Thu, 17 Jan 2008 10:28:41 +0100
"Martin Landa" <landa.martin@gmail.com> wrote:

Hi,

2008/1/16, Nikos Alexandris
<nikos.alexandris@felis.uni-freiburg.de>:

I am sorry for bothering again.

I am on ubuntu.

I updated (sudo svn up) from within

general note, why are you running 'svn up' as sudo??

the /usr/local/src/MyGRASSsourceDirectory
Configured-compilled-installed.

No wxgrass anywhere.. only a few irrelevant scripts

under... :

GRASS 6.3.0RC4

(Peloponnese_HGRS87):/usr/local/grass-6.3.0RC4/etc/gui >

ls
icons scripts

So... I go in /usr/loca/src/MyGRASSsrcDir/gui

directory and I only find "wxpython" as a folder which

does not contain

any "wxgrass" script.

GRASS 6.3.0RC4

(Peloponnese_HGRS87):/usr/local/src/release_20080109_grass_6_3_0RC4/gui/wxpython

ls
archive gm.wxp grass-interface.dtd mapdisp.py

scripts

gism.py grassgui.py Makefile render.py

Once more, in grass 6.3 is old wxpython code. Use
svn-trunk instead.

svn checkout https://svn.osgeo.org/grass/grass/trunk
grass_trunk

Martin

--
Martin Landa <landa.martin@gmail.com> *
http://gama.fsv.cvut.cz/~landa *