Hi Helmut,<br><br>Thanks for your testing. Actually to me it looks like a problem in the environment variable<strong style="font-weight: normal;"> PYTHONPATH.</strong><a class="reference external" href="http://docs.python.org/using/cmdline.html#envvar-PYTHONPATH"><strong class="xref"></strong></a> Maybe someone has any idea on how to fix it?<br>
<br>Thanks,<br>madi<br><br><div class="gmail_quote">2011/10/19 Helmut Kudrnovsky <span dir="ltr"><<a href="mailto:alectoria@gmx.at">alectoria@gmx.at</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Margherita,<br>
<br>
I've added for testing manually your scripts r.basin, r.ipso, <a href="http://r.wf" target="_blank">r.wf</a> to an<br>
installed wingrass65:<br>
<br>
- r.basin => r.basin-wxgui pops up, but if I do following with the<br>
nc-sample-dataset:<br>
<br>
<a href="http://r.basin.py" target="_blank">r.basin.py</a> -a --verbose map=elevation@PERMANENT prefix=hk easting=637033<br>
northing=223553<br>
<br>
there are following error messages:<br>
<br>
Traceback (most recent call last):<br>
File "C:\Program Files\GRASS 6.5.SVN\scripts\<a href="http://r.basin.py" target="_blank">r.basin.py</a>",<br>
line 67, in <module><br>
import grass.script as grass<br>
File "c:\Program Files\GRASS<br>
6.5.SVN\etc\python\grass\script\__init__.py", line 1, in<br>
<module><br>
from core import *<br>
File "c:\Program Files\GRASS<br>
6.5.SVN\etc\python\grass\script\core.py", line 31, in<br>
<module><br>
import subprocess<br>
File "C:\Program Files\GRASS<br>
6.5.SVN\Python25\lib\subprocess.py", line 376, in <module><br>
import threading<br>
File "C:\Program Files\GRASS<br>
6.5.SVN\Python25\lib\threading.py", line 13, in <module><br>
from collections import deque<br>
ImportError: No module named collections<br>
(Wed Oct 19 22:31:07 2011) Command finished (2 sec)<br>
<br>
BUT if I'm starting it from the wingrass-msys-shell, your script is<br>
starting, but there are a some warning and errors (see attached log),<br>
and some r.stream.* seems to crash.<br>
<br>
- r.ipso<br>
<br>
Traceback (most recent call last):<br>
File "c:\Program Files\GRASS<br>
6.5.SVN\etc\wxpython\gui_modules\prompt.py", line 804, in<br>
OnItemSelected<br>
<br>
self.cmdDesc = gtask.parse_interface(cmd)<br>
File "c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-<br>
mingw32/etc/python/grass/script/task.py", line 451, in<br>
parse_interface<br>
File<br>
"c:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py",<br>
line 964, in XML<br>
<br>
return parser.close()<br>
File<br>
"c:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py",<br>
line 1254, in close<br>
<br>
self._parser.Parse("", 1) # end of data<br>
xml.parsers.expat<br>
.<br>
ExpatError<br>
:<br>
no element found: line 1, column 0<br>
<br>
- <a href="http://r.wf" target="_blank">r.wf</a>:<br>
<br>
Traceback (most recent call last):<br>
File "c:\Program Files\GRASS<br>
6.5.SVN\etc\wxpython\gui_modules\prompt.py", line 1098, in<br>
OnKeyPressed<br>
<br>
self.parent.RunCmd(cmd)<br>
File "c:\Program Files\GRASS<br>
6.5.SVN\etc\wxpython\gui_modules\goutput.py", line 534, in<br>
RunCmd<br>
<br>
task = gtask.parse_interface(command[0])<br>
File "c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-<br>
mingw32/etc/python/grass/script/task.py", line 451, in<br>
parse_interface<br>
File<br>
"c:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py",<br>
line 964, in XML<br>
<br>
return parser.close()<br>
File<br>
"c:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py",<br>
line 1254, in close<br>
<br>
self._parser.Parse("", 1) # end of data<br>
xml.parsers.expat<br>
.<br>
ExpatError<br>
:<br>
no element found: line 1, column 0<br>
<br>
best regards<br>
Helmut<br>
<br>
Am 14.10.2011 10:32, schrieb Margherita Di Leo:<br>
<div><div></div><div class="h5">> Hi,<br>
><br>
> 2011/10/13 Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
><br>
>><br>
>> Helmut Kudrnovsky wrote:<br>
>><br>
>>> any ideas? I don't know if python-scripts are recognised correctly in<br>
>> build<br>
>>> process.<br>
>><br>
>> They aren't.<br>
>><br>
>> And the rules can't simply be back-ported from 7.0 because 7.0's<br>
>> Script.make only works for Python scripts, not for shell scripts.<br>
>><br>
>><br>
> Sorry I am a bit confused. If I understand, there is no way to compile any<br>
> python script on grass 6 series? Is that related to windows or is platform<br>
> independent?<br>
> I tried to compile r.basin on debian and I do have problems as well. I would<br>
> have bet that it was working when i committed it, but I'm not sure at this<br>
> point.<br>
> But.. could it be a problem in the makefile? I'm not sure I wrote it<br>
> correctly. Please could anyone more experienced than me give a look at it?<br>
><br>
> Thanks,<br>
><br>
> madi<br>
><br>
</div></div></blockquote></div><br>