[GRASS-user] i.spectral.py in WinGrass

Martin Landa landa.martin at gmail.com
Fri Dec 24 07:20:06 EST 2010


2010/12/23 Martin Landa <landa.martin at gmail.com>:
> 2010/12/23 Martin Landa <landa.martin at gmail.com>:
> [...]
>> the problem has been report on trac [1], closed without any clue.
> hm, it seems to be bug in GRASS windows installer, sorry for noise.

seems to be really mismatch of python versions. The test script
(below) is run by

C:\Program Files (x86)\GRASS-70-SVN\extrabin\python.exe (GRASS_PYTHON)

g.parser runs menuform.py - also by GRASS_PYTHON

them `r.test.py --interface-description` (called from menuform.py) is
run by another version of Python


...no clue why.



#!/usr/bin/env python

#% description: Creates a raster map showing buffer zones surrounding
cells that contain non-NULL category values.
#% key: input
#% type: string
#% required: yes
#% multiple: no
#% key_desc: name
#% description: Name of input raster map
#% gisprompt: old,cell,raster

import sys

print >> sys.stderr, sys.executable

import grass.script as grass


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

More information about the grass-user mailing list