[GRASS-windows] GUI with python scripts
Ned Horning
horning at amnh.org
Fri Jan 22 08:56:15 EST 2010
Hi Glynn,
The error I get when I run the python script is below. It can't find the
parameters that should be entered via the GUI.
--
GRASS 6.4.0svn
(Test):/f/amnh/whrc_carbonproject/r_project/PercentCoverTutorial
>
ERROR: Required parameter <raster> not set:
(Raster input map).
ERROR: Required parameter <vector> not set:
(Vector input map)
--
This is the output from g.gisenv:
--
> g.gisenv
GISDBASE='F:\AMNH\WHRC_CarbonProject\R_Project\PercentCoverTutorial\GrassData';
LOCATION_NAME='Test';
MAPSET='PERMANENT';
GRASS_GUI='wxpython';
--
Lastly, when I run the script with the --ui flag I get the following:
GRASS 6.4.0svn
(Test):/f/amnh/whrc_carbonproject/r_project/PercentCoverTutorial
> python junk.py --ui
GRASS 6.4.0svn
(Test):/f/amnh/whrc_carbonproject/r_project/PercentCoverTutorial
> menuform.py: can't open file 'c:/Program': [Errno 2] No such file or
directory
--
I hope this is helpful.
All the best,
Ned
On 1/22/2010 12:09 AM, Glynn Clements wrote:
> Ned Horning wrote:
>
>
>> Hi - I am starting to write some python scripts for GRASS and when I run
>> them in Linux they display a GUI but when I run the same script in
>> Windows (6.4.SVN-r40585) I get the output that I get on Linux using the
>> --help flag.
>>
> Can you check to see if there is an error message before the help
> text? If there is a problem with any of the arguments, the parser
> prints an error message followed by the --help text.
>
>
>> I'm using GRASS 6.4.SVN with MSYS and running the python
>> script from the M sh terminal window.
>>
> Can you post the output from "g.gisenv"?
>
>
>> How do I run python scripts in the Windows version of GRASS so that they
>> display a GUI?
>>
> It should happen automatically if a command requires arguments but you
> don't provide any, or if you use the --ui switch.
>
>
More information about the grass-windows
mailing list