[GRASS-user] problems starting wxPython gui using wingrass

Gerald Nelson gnelson at uiuc.edu
Wed Jan 16 16:08:04 EST 2008


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 at lists.osgeo.org
[mailto:grass-user-bounces at lists.osgeo.org] On Behalf Of Michael Barton
Sent: Wednesday, January 16, 2008 2:42 PM
To: grass-user at lists.osgeo.org
Subject: Re: [GRASS-user] problems starting wxPython gui using wingrass



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

> Date: Wed, 16 Jan 2008 13:17:17 -0600
> From: "Gerald Nelson" <gnelson at uiuc.edu>
> Subject: [GRASS-user] problems starting wxPython gui using wingrass
> To: "'grass list'" <grassuser at grass.itc.it>
> Message-ID: <00df01c85874$68fa1690$3e40ae80 at 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 at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user



More information about the grass-user mailing list