[GRASS-user] Error when running a scrip in Windows-WinGRASS
Helena Herrera
helenaherrera1980 at gmail.com
Mon Oct 4 14:41:14 EDT 2010
Greetings to all
I want to know if anyone has ever tried to build Python Scripts on winGRASS
6.x???
Because I didn't find any literature or document that this was a limition on
Windows...
On Fri, Oct 1, 2010 at 6:40 PM, Glynn Clements <glynn at gclements.plus.com>wrote:
>
> Helena Herrera wrote:
>
> > I have developed a Script to import Landsat images that runs just fine in
> > Linux
> >
> > But when I compile (Msys) with this expressioN:
> > make -C r.in.landsat
> > MODULE_TOPDIR=/C/OSGeo4W/usr/src/grass-6.4.svn_src_snapshot_2010_09_04
> >
> > and run in GRASS I get this error:
>
> >
> xml.sax.parseString(getInterfaceDescription(cmd[0]).decode(enc).split('\n',1)[1].replace('',
> > '<?xml version="1.0" encoding="utf-8"?>\n', 1).encode("utf-8"),
>
> > IndexError: list index out of range
> > 1- Is my compilation expression correct?
> >
> > 2- What am I missing on this?
>
> I'm not sure that Python scripts work in 6.x on Windows. I'm fairly
> sure that the build system *doesn't* handle Python scripts in 6.x on
> Windows.
>
> The main issue is that, on Windows, the build system installs a batch
> file which executes the actual script, and the batch file only works
> for shell scripts.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20101004/47c83434/attachment.html
More information about the grass-user
mailing list