[GRASS-windows] GUI with python scripts or shell scripts
Sonja Jankowfsky
sonja.jankowfsky at cemagref.fr
Wed Mar 3 07:39:46 EST 2010
Two more details.
If I try to run the program just with the name
>test.py
I get the following error message:
ERROR: wxGUI requires wxPython. No module named wxversion.
However, if I run gisenv in the same python script 'GRASS_GUI' is wxpython
If I enter the variables
test.py input=.... output=.....
it runs the program, but I get the following message:
'sh' is not known as commande intern
But that's a python script! So I think, there is still something wrong
with the covnersion to windows.
Does anybody know more?
Sonja
Sonja Jankowfsky a écrit :
> I did some more tests on my machine on this subject and what I get is
> this:
> I don't get an interface with the grass parser on my windows machine,
> neither with a shell script running through Msys, nor a python script
> running through the windows commandline. However, I can enter the
> variables as normal GRASS command on my command line:
>
> test.py input=ditch.shp output=ditch1
>
> test.sh input=ditch.shp output=ditch1
>
> Is this a common bug?
> Sonja
>
> On 1/29/2010 7:25 PM, Glynn Clements wrote:
>
>> What do you get from:
>
>>
>
>> junk.py --interface-description
>
>> ?
>
>>
>
> Here is the output
>
>
> GRASS 6.4>
> F:\\AMNH\\WHRC_CarbonProject\\R_Project\\PercentCoverTutorial\\junk.
>
> py --interface-description
>
> GRASS 6.4> <?xml version="1.0" encoding="CP1252"?>
>
> <!DOCTYPE task SYSTEM "grass-interface.dtd">
>
> <task name="junk.py">
>
> <description>
>
> g.parser test script (python)
>
> </description>
>
> <parameter name="raster" type="string" required="yes" multiple="no">
>
> <description>
>
> Raster input map
>
> </description>
>
> <gisprompt age="old" element="cell" prompt="raster" />
>
> </parameter>
>
> <parameter name="vector" type="string" required="yes" multiple="no">
>
> <description>
>
> Vector input map
>
> </description>
>
> <gisprompt age="old" element="vector" prompt="vector" />
>
> </parameter>
>
> <parameter name="option1" type="string" required="no" multiple="no">
>
> <description>
>
> An option
>
> </description>
>
> </parameter>
>
> <flag name="f">
>
> <description>
>
> A flag
>
> </description>
>
> </flag>
>
> <flag name="verbose">
>
> <description>
>
> Verbose module output
>
> </description>
>
> </flag>
>
> <flag name="quiet">
>
> <description>
>
> Quiet module output
>
> </description>
>
> </flag>
>
> </task>
>
>
More information about the grass-windows
mailing list