[GRASS-user] Python scripts: 'command not found'

Hanlie Pretorius hanlie.pretorius at gmail.com
Thu Aug 19 09:13:37 EDT 2010


Hi,

I'm working in GRASS 6.4RC6 on Ubuntu 10.04 and I'm trying to learn
how to script GRASS using Python.

I have taken the example at
http://grass.osgeo.org/programming6/pythonlib.html that checks if a
vector is 3D and saved it to my home folder. When I try to run it
though, GRASS can't find the file:

-----
GRASS 6.4.0RC6 (sa_wgs84):~ > ls *.py
check_3d.py  proxy.py
GRASS 6.4.0RC6 (sa_wgs84):~ > check_3d.py
check_3d.py: command not found
----

I also tried placing the script in the GRASS scripts folder using the
name 'v.check3d' and got the following errors:

-----
GRASS 6.4.0RC6 (sa_wgs84):~ > v.check3d
bash: /usr/lib/grass64/scripts/v.check3d: Permission denied
GRASS 6.4.0RC6 (sa_wgs84):~ > sudo v.check3d
[sudo] password for hanlie:
sudo: v.check3d: command not found
-----

Can someone perhaps help me?

Thanks
Hanlie


More information about the grass-user mailing list