[GRASS-user] script by bash to Python
Martin Landa
landa.martin at gmail.com
Sat Jul 5 09:18:48 EDT 2008
Hi,
2008/7/5 Gabriele N. <gis.gn at libero.it>:
> I use grass63 with wxpython and I do not know how to use some scripts that I
> have in bash. The graphical interface opens but when I try to launch the
> script I get the following error:
> GRASS 6.3.0 (gb2):~ > v.topo_5
> $ v.topo_5 percorso=/home/gab/prova.shp nome_vett=foglio num=3 campo=foglio
> Traceback (most recent call last):
> File "/usr/lib/grass/etc/wxpython/gui_modules/menuform.py", line 763, in
> OnRun
> self.goutput.RunCmd(cmd)
> File "/usr/lib/grass/etc/wxpython/gui_modules/goutput.py", line 209, in
> RunCmd
> generalCmd = subprocess.Popen(cmdlist,
> NameError: global name 'subprocess' is not defined
>
> If I run the script with grass -tcltk works well.
Upgrading to grass64 (devbr6) should fix it.
Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
More information about the grass-user
mailing list