[GRASS-dev] text interface for GRASS70

Pierre Roudier pierre.roudier at gmail.com
Wed Mar 23 17:29:34 EDT 2011


Hi Martin,

> you are probably overriding GISBASE variable.
>
> What gives
>
> $ echo $GISBASE

Indeed:

pierrer at grass:~$ echo $GISBASE
/home/pierrer/grassdata/

So I turned it back to void:
pierrer at grass:~$ export GISBASE=""
pierrer at grass:~$ echo $GISBASE

But unfortunately the problem remains the same:

pierrer at grass:~$ grass70
Traceback (most recent call last):
  File "/usr/local/bin/grass70", line 961, in <module>
    grass_intro()
  File "/usr/local/bin/grass70", line 370, in grass_intro
    f = open(path, 'r')
IOError: [Errno 2] No such file or directory: './etc/grass_intro'

However I do have a GISBASE envvar in root:
root at grass:/usr/local/src/grass_trunk# echo $GISBASE
/usr/local/grass-7.0.svn/

Here I can launch grass and initiate a location using the -c flag.
However, if I turn it to void, I can't launcg grass anymore:
root at grass:/usr/local/src/grass_trunk# export GISBASE=""
root at grass:/usr/local/src/grass_trunk# echo $GISBASE

root at grass:/usr/local/src/grass_trunk# grass70
Cleaning up temporary files...
Traceback (most recent call last):
  File "/usr/local/bin/grass70", line 963, in <module>
    clean_temp()
  File "/usr/local/bin/grass70", line 818, in clean_temp
    call([gfile("etc", "clean_temp")], stdout = nul, stderr = nul)
  File "/usr/local/bin/grass70", line 112, in call
    return subprocess.call(cmd, **kwargs)
  File "/usr/lib/python2.6/subprocess.py", line 470, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory


More information about the grass-dev mailing list