<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 13, 2014 at 5:53 PM, Giuliano Urgeghe <span dir="ltr"><<a href="mailto:giuliano.u@gmail.com" target="_blank">giuliano.u@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi,<br></div>thanks for your help.<br></div>At moment I have another problem<br></div>in my script I have this line:<br># grass.run_command('v.in.lines', overwrite=True, input = output_esond_txt , output = output_esond_gis, fs='|')<br> grass.run_command('v.in.ascii', overwrite=True, format= 'point', fs='|', input = output_esond_txt, output = output_esond_gis )<br><br></div>output is:<br>"output" non Š riconosciuto come comando interno o esterno,<br> un programma eseguibile o un file batch.<br></div></div></div></blockquote><div><br></div><div>Not sure, but could you try use different separator </div><div><br></div><div>grass.run_command('v.in.ascii', overwrite=True, format= 'point', fs=',', input = output_esond_txt, output = output_esond_gis )<br></div><div><br></div><div>or, since | is a default, not using it in the command at all?</div><div> </div><div>grass.run_command('v.in.ascii', overwrite=True, format= 'point', input = output_esond_txt, output = output_esond_gis )<br></div><div><br></div><div>Anna</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><br></div>why?<br></div> <div><div dir="ltr" style="zoom:1"><span lang="en"><span>I have made many</span> <span>attempts whith grass6.4.2 grass6.4.3 grass6.4.4<br></span></span></div><div><span lang="en"><span>in windows Vista<br><br></span></span></div><div><span lang="en"><span>you know the problem?<br><br></span></span></div><div><span lang="en"><span>thanks in advance<span class=""><font color="#888888"><br></font></span></span></span></div><span class=""><font color="#888888"><div><span lang="en"><span>Giuliano<br></span></span></div></font></span></div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2014-10-13 7:43 GMT+02:00 Johannes Radinger <span dir="ltr"><<a href="mailto:johannesradinger@gmail.com" target="_blank">johannesradinger@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>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 <<a href="mailto:giuliano.u@gmail.com" target="_blank">giuliano.u@gmail.com</a>> <br>Date: 13/10/2014 02:44 (GMT+01:00) <br>To: <a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a> <br>Subject: [GRASS-user] my first script <br> <br><br><div dir="ltr"><div><div><div>Hi all,<br></div><span>I have my first script in python for grass <br></span></div><span>but when I launch it on windows vista for grass 6.4.2 in quantum gis<br></span></div><span>I have this output:<br><div style="margin-left:40px">...<br></div></span><div style="margin-left:40px"><span>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></span><span> raise ScriptError("'-' is not a valid flag")<br>grass.script.core.ScriptError: "'-' is not a valid flag"<br clear="all"></span></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>
</div></blockquote></div><br><br clear="all"><br><div dir="ltr"><br></div>
</div></div></div></div>
<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></blockquote></div><br></div></div>