[GRASS-dev] Re: [GRASS-windows] compiling WINGrass Python Scripts - ExpatError

Glynn Clements glynn at gclements.plus.com
Wed Dec 7 16:23:13 EST 2011

Johannes Radinger wrote:

> I tried to run the script now manually with --help
> from the command line. For simplicicity I only tried
> v.krige.py, a python script that already comes with
> the GRASS 6.5 SVN install.

v.krige.py isn't a normal Python script; it has its own GUI.

> I also tried to run my own script without the .py ending and with --help:
> '''''''''''''''''''''''''''''''''''''''
> pythontest_l --help
> Traceback (most recent call last):
>    File "C:\OSGeo4W\apps\grass\grass-6.5.svn\scripts\pythonte
> st_l.py", line 42, in <module>
>      import grass.script as grass
> ImportError: No module named grass.script
> '''''''''''''''''''''''''''''''''''''''

You need:


7.0 does this automatically, but 6.x doesn't.

> What is the normal way to run a python script in windows, with or 
> without the .py ending?

I don't know. GRASS 6.x, Windows, and Python isn't a particularly
well-tested combination.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list