Re: [GRASS-dev] why doesn't g.region launch gui?

2012-02-27 Thread Michael Barton
I just compiled 6.4.3 svn again and tested g.region. Results below.

GRASS 6.4.3svn (nc_spm_07):~  g.region
/usr/bin/pythonw2.6: can't open file 
'/Applications/GRASS/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gui_modules/menuform.py':
 [Errno 2] No such file or directory

GRASS 6.4.3svn (nc_spm_07):~  g.region --ui
/usr/bin/pythonw2.6: can't open file 
'/Applications/GRASS/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gui_modules/menuform.py':
 [Errno 2] No such file or directory

GRASS 6.4.3svn (nc_spm_07):~  g.region -pg
n=228500
s=215000
w=63
e=645000
nsres=10
ewres=10
rows=1350
cols=1500
cells=2025000

GRASS 6.4.3svn (nc_spm_07):~  


_
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research 
University Corporation for Atmospheric Research
303-497-2889 (voice)

Director, Center for Social Dynamics  Complexity 
Professor of Anthropology, School of Human Evolution  Social Change
Arizona State University
www: http://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


Re: [GRASS-dev] why doesn't g.region launch gui?

2012-02-25 Thread Maris Nartiss
Hello Michael,
in GRASS 7 it's not a bug, it's a feature! [1]

If it's happening also in 6.4, then it's a result of backporting and
should be treated as a serious regression and thus should be fixed
ASAP.

Maris.

1. 
http://osgeo-org.1560.n6.nabble.com/wxGUI-new-packages-layout-tp3992790p3992803.html

2012/2/25 Michael Barton michael.bar...@asu.edu:

 On Feb 24, 2012, at 4:21 PM, Hamish wrote:

 Michael wrote:
 I've just learned that typing g.region [return] from the terminal
 does not launch the g.region GUI.

 worksforme, what happens for you? do you get an error message?

 Nothing. No error message. Nothing happens


 how about g.region --ui ?

 It brings up the GUI as it should--and as it should if you type g.region 
 without arguments


 what does g.gisenv get=GRASS_GUI say?

 wxpython (Note that other commands work as expected, although I have not 
 tested all 300+)


 what about echo $? directly after running g.region from the command line?

 It is the same as typing g.region help

 Michael



 Hamish


 _
 C. Michael Barton
 Visiting Scientist, Integrated Science Program
 National Center for Atmospheric Research 
 University Corporation for Atmospheric Research
 303-497-2889 (voice)

 Director, Center for Social Dynamics  Complexity
 Professor of Anthropology, School of Human Evolution  Social Change
 Arizona State University
 www: http://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
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev


Re: [GRASS-dev] why doesn't g.region launch gui?

2012-02-25 Thread Michael Barton

On Feb 25, 2012, at 1:10 AM, Maris Nartiss wrote:

 Hello Michael,
 in GRASS 7 it's not a bug, it's a feature! [1]

You mean this with a considerable dose of sarcasm, right?

 
 If it's happening also in 6.4, then it's a result of backporting and
 should be treated as a serious regression and thus should be fixed
 ASAP.

Yes. It's not fatal, but it is confusing to users.

Michael

 
 Maris.
 
 1. 
 http://osgeo-org.1560.n6.nabble.com/wxGUI-new-packages-layout-tp3992790p3992803.html
 
 2012/2/25 Michael Barton michael.bar...@asu.edu:
 
 On Feb 24, 2012, at 4:21 PM, Hamish wrote:
 
 Michael wrote:
 I've just learned that typing g.region [return] from the terminal
 does not launch the g.region GUI.
 
 worksforme, what happens for you? do you get an error message?
 
 Nothing. No error message. Nothing happens
 
 
 how about g.region --ui ?
 
 It brings up the GUI as it should--and as it should if you type g.region 
 without arguments
 
 
 what does g.gisenv get=GRASS_GUI say?
 
 wxpython (Note that other commands work as expected, although I have not 
 tested all 300+)
 
 
 what about echo $? directly after running g.region from the command line?
 
 It is the same as typing g.region help
 
 Michael
 
 
 
 Hamish
 
 
 _
 C. Michael Barton
 Visiting Scientist, Integrated Science Program
 National Center for Atmospheric Research 
 University Corporation for Atmospheric Research
 303-497-2889 (voice)
 
 Director, Center for Social Dynamics  Complexity
 Professor of Anthropology, School of Human Evolution  Social Change
 Arizona State University
 www: http://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

_
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research 
University Consortium for Atmospheric Research
303-497-2889 (voice)

Director, Center for Social Dynamics  Complexity 
Professor of Anthropology, School of Human Evolution  Social Change
Arizona State University
www: http://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


Re: [GRASS-dev] why doesn't g.region launch gui?

2012-02-25 Thread Glynn Clements

Michael Barton wrote:

 I've just learned that typing g.region [return] from the terminal
 does not launch the g.region GUI. Typing it from the wxPython
 command console does launch the GUI. Other commands typed from the
 terminal (followed by return with no arguments) launch their GUIs.
 
 This is happening in GRASS 7 and GRASS 6.4.2 (and I suppose all
 versions in between).

g.region doesn't have any required options.

In 7.0, the GUI is shown if no arguments are given and at least one
option is required.

In 6.x, the GUI is shown if no arguments are given. Modules which can
reasonably be run without arguments (e.g. d.erase, g.gisenv) skip
calling G_parser() if no arguments are given, with e.g.:

if (argc  1  G_parser(argc, argv))
exit(1);

As g.region doesn't do this, I have no idea why it isn't showing the
GUI when run without arguments (unless you're accidentally running the
7.0 version for some reason).

In general, skipping G_parser() is unsatisfactory, as certain other
initialisation steps are performed by G_parser (e.g. checking
GRASS_OVERWRITE, parsing opt-options into opt-opts[], etc). And
always showing the GUI when no options are given is unsatisfactory for
modules which can reasonably be run without arguments.

The main downside of the current 7.0 behaviour is where it isn't
reasonable to run a module without arguments, but no specific option
is required. But that will cease to be an issue if we ever get around
to deciding how to extend the concept of required options to handle
the one-from-many cases.

-- 
Glynn Clements gl...@gclements.plus.com
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev


[GRASS-dev] why doesn't g.region launch gui?

2012-02-24 Thread Michael Barton
I've just learned that typing g.region [return] from the terminal does not 
launch the g.region GUI. Typing it from the wxPython command console does 
launch the GUI. Other commands typed from the terminal (followed by return with 
no arguments) launch their GUIs.

This is happening in GRASS 7 and GRASS 6.4.2 (and I suppose all versions in 
between).

Any ideas?

Michael
_
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research 
University Corporation for Atmospheric Research
303-497-2889 (voice)

Director, Center for Social Dynamics  Complexity
Professor of Anthropology, School of Human Evolution  Social Change
Arizona State University
www: http://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

Re: [GRASS-dev] why doesn't g.region launch gui?

2012-02-24 Thread Hamish
Michael wrote:
 I've just learned that typing g.region [return] from the terminal
 does not launch the g.region GUI.

worksforme, what happens for you? do you get an error message?

how about g.region --ui ?

what does g.gisenv get=GRASS_GUI say?

what about echo $? directly after running g.region from the command line?


Hamish

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


Re: [GRASS-dev] why doesn't g.region launch gui?

2012-02-24 Thread Michael Barton

On Feb 24, 2012, at 4:21 PM, Hamish wrote:

 Michael wrote:
 I've just learned that typing g.region [return] from the terminal
 does not launch the g.region GUI.
 
 worksforme, what happens for you? do you get an error message?

Nothing. No error message. Nothing happens

 
 how about g.region --ui ?

It brings up the GUI as it should--and as it should if you type g.region 
without arguments

 
 what does g.gisenv get=GRASS_GUI say?

wxpython (Note that other commands work as expected, although I have not tested 
all 300+)

 
 what about echo $? directly after running g.region from the command line?

It is the same as typing g.region help

Michael

 
 
 Hamish
 

_
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research 
University Corporation for Atmospheric Research
303-497-2889 (voice)

Director, Center for Social Dynamics  Complexity 
Professor of Anthropology, School of Human Evolution  Social Change
Arizona State University
www: http://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