Hi,
I am trying to write an external standalone python script that is using grass commands. I setup my variables as below. I then run python3 in the terminal and import grass works fine. However, in Pycharm editor, it will not import for me. Any ideas of how to get around this?
Thanks
export GISBASE=“$(grass76 --config path)”
export PATH=“$PATH:$GISBASE/bin:$GISBASE/scripts”
export DYLD_LIBRARY_PATH=“$LD_LIBRARY_PATH:$GISBASE/lib”
export GIS_LOCK=$$
export GISRC=“$HOME/.grass7/rc”
export PYTHONPATH=“$PYTHONPATH:$GISBASE/etc/python”
···
Le gach dea ghui,
Shane Carey
GIS and Data Solutions Consultant
Hi,
Python 3 support is planned for GRASS 7.8…
Furthermore, you might be interested in the grass-session library on pypi…
Cheers,
Stefan
···
From: grass-user grass-user-bounces@lists.osgeo.org on behalf of Shane Carey careyshan@gmail.com
Sent: Sunday, April 7, 2019 1:35:11 AM
To: grass-user grass-user
Subject: [GRASS-user] Import grass.script
Hi,
I am trying to write an external standalone python script that is using grass commands. I setup my variables as below. I then run python3 in the terminal and import grass works fine. However, in Pycharm editor, it will not import for me. Any ideas of how to get around this?
Thanks
export GISBASE=“$(grass76 --config path)”
export PATH=“$PATH:$GISBASE/bin:$GISBASE/scripts”
export DYLD_LIBRARY_PATH=“$LD_LIBRARY_PATH:$GISBASE/lib”
export GIS_LOCK=$$
export GISRC=“$HOME/.grass7/rc”
export PYTHONPATH=“$PYTHONPATH:$GISBASE/etc/python”
Le gach dea ghui,
Shane Carey
GIS and Data Solutions Consultant
Ok thanks, when is it planned to be released? Can you do a pip install with it?
Thanks
···
Le gach dea ghui,
Shane Carey
GIS and Data Solutions Consultant
On Sun, Apr 7, 2019 at 11:08 AM Shane Carey <careyshan@gmail.com> wrote:
Ok thanks, when is it planned to be released?
As soon as we are sure that the Python3 support is sufficiently
stable. More testing is needed.
You can find pre-releases here (weekly snapshots):
https://grass.osgeo.org/download/software/linux/#g77x
best regards,
Markus