<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body >Hi, <div><br></div><div>It seems to raise an error related to the flag(s) you are specifying in oneof your grass modules you are using in your script. Flags in grass python scripts should be used like: flags="a" or for two flags: flags="ab". Note this does not need a "-" like in the bash command.</div><div><br></div><div>Best,</div><div>/johannes</div><br><br><br>-------- Original message --------<br>From: Giuliano Urgeghe <giuliano.u@gmail.com> <br>Date: 13/10/2014  02:44  (GMT+01:00) <br>To: grass-user@lists.osgeo.org <br>Subject: [GRASS-user] my first script <br> <br><br><div dir="ltr"><div><div><div>Hi all,<br></div>I have my first script in python for grass <br></div>but when I launch it on windows vista for grass 6.4.2 in quantum gis<br></div>I have this output:<br><div style="margin-left:40px">...<br></div><div style="margin-left:40px">File "C:\PROGRA~1\QUANTU~3\apps\grass\grass-6.4.2\etc\pyth<br>on\grass\script\core.py", line 189, in run_command<br>    ps = start_command(*args, **kwargs)<br>  File "C:\PROGRA~1\QUANTU~3\apps\grass\grass-6.4.2\etc\pyth<br>on\grass\script\core.py", line 167, in start_command<br>    args = make_command(prog, flags, overwrite, quiet,<br>verbose, **options)<br>  File "C:\PROGRA~1\QUANTU~3\apps\grass\grass-6.4.2\etc\pyth<br>on\grass\script\core.py", line 124, in make_command<br>    raise ScriptError("'-' is not a valid flag")<br>grass.script.core.ScriptError: "'-' is not a valid flag"<br clear="all"></div><div><div><div><div><br></div><div>someone know this problem?<br><br></div><div>thanks in advance<br></div><div>Giuliano<br></div><div><br>
</div></div></div></div></div>
</body>