[GRASS-dev] wxpython not building automatically in GRASS 7

I just updated from the svn and built GRASS 7. Initially, it gave an error for the wxpython gui. But when I switched to the gui dirctory and ran make, it all compiled fine. So it seems that something in the make file is not working correctly for the gui.

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

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 SHESC), 480-727-0709 (CSDC)
www: www.public.asu.edu/~cmbarton, http://csdc.asu.edu

Same here on Vista. The wxpython dir is missing from the build dir.

osgeo4w\bin\python.exe: can't open file
'c:/programs/gis/osgeo4w/apps/grass/grass-7.0.svn/etc/wxpython/gis_set.py':
[Errno 2] No such file or directory

Something to do with r41557?

On 31 March 2010 17:45, Michael Barton <michael.barton@asu.edu> wrote:

I just updated from the svn and built GRASS 7. Initially, it gave an error for the wxpython gui. But when I switched to the gui dirctory and ran make, it all compiled fine. So it seems that something in the make file is not working correctly for the gui.

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

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 SHESC), 480-727-0709 (CSDC)
www: www.public.asu.edu/~cmbarton, http://csdc.asu.edu

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

Needs an edit to lib/init/functions.sh line 263.

{{{
@@ -260,7 +260,7 @@
        # ok
        if [ "$?" = 0 ] ; then
            # Set the wxpython base directory
- WXPYTHONGRASSBASE="$ETC/wxpython"
+ WXPYTHONGRASSBASE="$ETC/gui/wxpython"
        else
            # Python was not found - switch to text interface mode
            cat <<-EOF
}}}

I think it was missed when martinl made r41557.

-Colin

On 31 March 2010 23:46, Colin (Nielsen) Wren <colin.nielsen@gmail.com> wrote:

Same here on Vista. The wxpython dir is missing from the build dir.

osgeo4w\bin\python.exe: can't open file
'c:/programs/gis/osgeo4w/apps/grass/grass-7.0.svn/etc/wxpython/gis_set.py':
[Errno 2] No such file or directory

Something to do with r41557?

On 31 March 2010 17:45, Michael Barton <michael.barton@asu.edu> wrote:

I just updated from the svn and built GRASS 7. Initially, it gave an error for the wxpython gui. But when I switched to the gui dirctory and ran make, it all compiled fine. So it seems that something in the make file is not working correctly for the gui.

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

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 SHESC), 480-727-0709 (CSDC)
www: www.public.asu.edu/~cmbarton, http://csdc.asu.edu

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

Michael Barton wrote:

I just updated from the svn and built GRASS 7. Initially, it gave an
error for the wxpython gui. But when I switched to the gui dirctory and
ran make, it all compiled fine. So it seems that something in the make
file is not working correctly for the gui.

What error, exactly?

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

The wxpython dir was moved to gui/wxpython (r41557) by martinl. If
you're getting the same error as I was then then this should fix it.

The error was:
Starting GRASS ...
WARNING: Attention!
WARNING: Locking is not supported on Windows!
c:\programs\gis\osgeo4w\bin\python.exe: can't open file
'c:/programs/gis/osgeo4w/apps/grass/grass-7.0.svn/etc/wxpython/wxgui.py':
[Errno 2] No such file or directory

I posted before with a one line fix, but two lines need changing I think:

Index: functions.sh

--- functions.sh (revision 41651)
+++ functions.sh (working copy)
@@ -260,7 +260,7 @@
        # ok
        if [ "$?" = 0 ] ; then
            # Set the wxpython base directory
- WXPYTHONGRASSBASE="$ETC/wxpython"
+ WXPYTHONGRASSBASE="$ETC/gui/wxpython"
        else
            # Python was not found - switch to text interface mode
            cat <<-EOF
@@ -593,7 +593,7 @@

     case "$GRASS_GUI" in
         wxpython)
- "$GRASS_PYTHON" "$GISBASE/etc/wxpython/wxgui.py" &
+ "$GRASS_PYTHON" "$WXPYTHONGRASSBASE/wxgui.py" &
             ;;
         # Ignore others
         *)

-Colin

On 1 April 2010 17:04, Glynn Clements <glynn@gclements.plus.com> wrote:

Michael Barton wrote:

I just updated from the svn and built GRASS 7. Initially, it gave an
error for the wxpython gui. But when I switched to the gui dirctory and
ran make, it all compiled fine. So it seems that something in the make
file is not working correctly for the gui.

What error, exactly?

--
Glynn Clements <glynn@gclements.plus.com>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Colin (Nielsen) Wren wrote:

The wxpython dir was moved to gui/wxpython (r41557) by martinl. If
you're getting the same error as I was then then this should fix it.

I posted before with a one line fix, but two lines need changing I think:

Index: functions.sh

[snip]

Okay; committed in r41675.

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