[GRASS-user] script by bash to Python
Gabriele N.
gis.gn at libero.it
Tue Sep 23 11:26:54 EDT 2008
Martin Landa-2 wrote:
>
> Hi,
>
> 2008/7/5 Gabriele N. <gis.gn a 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
>
I speak again of this post. With grass64 svn the situation has improved.
Some scripts in bash run well and others do not.
But I do not understand what are the differences between a script that
works and a script that does not work. I do not see the differences.
Thanks
--
View this message in context: http://www.nabble.com/script-by-bash-to-Python-tp18292175p19630269.html
Sent from the Grass - Users mailing list archive at Nabble.com.
More information about the grass-user
mailing list