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

Markus Neteler neteler at osgeo.org
Sun Oct 3 13:47:45 EDT 2010


(moved here from grass-user)

On Fri, Oct 1, 2010 at 7: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.

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

Markus


More information about the grass-dev mailing list