[GRASS-user] issue with grass_session on MacOSX: Cannot find GRASS GIS start script
Moritz Lennert
mlennert at club.worldonline.be
Mon Sep 3 07:49:29 PDT 2018
Hi,
A student has been confronted with the following error trying to use
grass_session on Mac:
**********************
from grass_session import Session
GRASSBIN: /Applications/GRASS-$GRASS_MMVER.app/Contents/MacOS
cmd: /Applications/GRASS-$GRASS_MMVER.app/Contents/MacOS --config path
out: b''
err: b'/bin/sh: /Applications/GRASS-.app/Contents/MacOS: No such file or
directory\n'
Traceback (most recent call last):
File "<pyshell#24>", line 1, in <module>
from grass_session import Session
File
"/Users/simon/Documents/Stage/Models/WhiteBoxTools/grass_session/__init__.py",
line 4, in <module>
from grass_session.session import (get_platform_name,
File
"/Users/simon/Documents/Stage/Models/WhiteBoxTools/grass_session/session.py",
line 259, in <module>
GISBASE = get_grass_gisbase(grassbin=GRASSBIN)
File
"/Users/simon/Documents/Stage/Models/WhiteBoxTools/grass_session/session.py",
line 75, in get_grass_gisbase
"variable").format(grassbin=grassbin))
RuntimeError: Cannot find GRASS GIS start script:
/Applications/GRASS-$GRASS_MMVER.app/Contents/MacOS, set the right one
using the GRASSBIN environm. variable
************************************
Does anyone have a hint ?
Moritz
More information about the grass-user
mailing list