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