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

Glynn Clements glynn at gclements.plus.com
Fri Oct 1 13:40:42 EDT 2010


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>


More information about the grass-user mailing list