[GRASS-user] Problem with Python Scripts and grass.script
(GRASS 6.5SVN) on Mac
Glynn Clements
glynn at gclements.plus.com
Sat Apr 2 18:37:47 EDT 2011
Johannes Radinger wrote:
> I tried to figure out the problem with william kyngesburye.
> the script is also working on his mac. I saved the script in the bin
> folder and ran in the GRASS terminal:
> AttributeError: 'module' object has no attribute 'mapcalc'
>
>
> What causes this AttributeError?
The grass.script module is either broken or very old (the mapcalc()
function was added in December 2008).
>From within GRASS, try the following:
$ python
> import grass.script as grass
> print grass.__file__
> print grass.__path__
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list