[GRASS-user] issue with grass_session on MacOSX: Cannot find GRASS GIS start script

2018-09-03 Thread Moritz Lennert
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''

Re: [GRASS-user] issue with grass_session on MacOSX: Cannot find GRASS GIS start script

2018-09-03 Thread Jón Eiríksson
Hi, I do not know if this is helpful, but the following worked, - after being confronted with the same error message: [1] See: https://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Important_notes [2] The following worked for me with Michael Bartons 7.3 binarie

Re: [GRASS-user] issue with grass_session on MacOSX: Cannot find GRASS GIS start script

2018-09-03 Thread Jón Eiríksson
Hi again, - replace the python script with the following (apologies version confusion): #!/usr/bin/env python #-*- coding:utf-8 -*- from grass.script import core as grass from grass.script import db as grass from grass_session import Session from grass.script import core as gcore # create a n