[GRASS-dev] Re: [GRASS-user] Error when running a scrip in Windows-WinGRASS

(moved here from grass-user)

On Fri, Oct 1, 2010 at 7:40 PM, Glynn Clements <glynn@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.

Time to backport the GRASS 7 build system to GRASS 6? How complicated
to you expect that to be?

Markus

Markus Neteler wrote:

Time to backport the GRASS 7 build system to GRASS 6? How complicated
to you expect that to be?

Not very complicated; you just have to abandon support for shell
scripts (the 7.0 build system only supports Python scripts).

Supporting both Python scripts and shell scripts in the same build
system would be complicated, which is why I gave up trying for 7.0.

There are some other things in 6.x which the 7.0 build system doesn't
support. E.g. r.terraflow only supports float; having both short and
float versions built from the same source code was too complicated, so
that feature was removed.

--
Glynn Clements <glynn@gclements.plus.com>

On Sun, Oct 3, 2010 at 10:29 PM, Glynn Clements
<glynn@gclements.plus.com> wrote:

Markus Neteler wrote:

Time to backport the GRASS 7 build system to GRASS 6? How complicated
to you expect that to be?

Not very complicated; you just have to abandon support for shell
scripts (the 7.0 build system only supports Python scripts).

Supporting both Python scripts and shell scripts in the same build
system would be complicated, which is why I gave up trying for 7.0.

This sounds like a showstopper for GRASS 6.

There are some other things in 6.x which the 7.0 build system doesn't
support. E.g. r.terraflow only supports float; having both short and
float versions built from the same source code was too complicated, so
that feature was removed.

That sounds ok to me.

Markus