[GRASS-user] script by bash to Python
Gabriele N.
gis.gn at libero.it
Wed Sep 24 05:20:08 EDT 2008
Hi.
All my scripts in bash work with tcltk.
Now, I take as example my 2 scripts: v.to.dem.sh and v.impact.sh.
With WxPython all the scripts were not working with grass 63. With Grass64,
instead, some scripts works (es v.impact.sh) and some other scripts does not
works (es.v.to.dem.sh). But I do not know what may be the characteristic
that makes v.impact.sh work and that does not work v.to.dem.sh.
I hope to have been clearer.
Thanks :-)
Gabriele
PS
The error is always the same. Here's an example:
GRASS 6.4.svn (gb2):~ > v.to.dem.sh
Traceback (most recent call last):
File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/menuform.py", line
1687, in <module>
GrassGUIApp( grassTask( sys.argv[1] ) ).MainLoop()
File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/menuform.py", line
193, in __init__
xml.sax.parseString( getInterfaceDescription( grassModule ) ,
processTask( self ) )
File "/usr/lib/python2.5/xml/sax/__init__.py", line 49, in parseString
parser.parse(inpsrc)
File "/usr/lib/python2.5/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.5/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.5/xml/sax/expatreader.py", line 211, in feed
self._err_handler.fatalError(exc)
File "/usr/lib/python2.5/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: <unknown>:21:73: not well-formed
(invalid token)
[Raster MASK present]
GRASS 6.4.svn (gb2):~ >
hamish_b wrote:
>
> Gabriele wrote:
>> I speak again of this post. With grass64 svn the situation has improved.
>> Some scripts in bash run well and others do not.
>
> which ones work, which ones don't?
> what does "others do not" run well mean? The same Python GUI error, or..?
>
>> 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.
>
> need more details please.
>
>
> Hamish
>
>
>
>
>
> _______________________________________________
> grass-user mailing list
> grass-user a lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
--
View this message in context: http://www.nabble.com/script-by-bash-to-Python-tp18292175p19645026.html
Sent from the Grass - Users mailing list archive at Nabble.com.
More information about the grass-user
mailing list