Traceback (most recent call last):
File "<ipython console>", line 1, in <module>
File "/usr/lib/grass64/etc/python/grass/script/__init__.py", line 1, in <module>
from core import *
File "/usr/lib/grass64/etc/python/grass/script/core.py", line 35, in <module>
gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
File "/usr/lib/python2.6/posixpath.py", line 67, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
which makes sense because os.env('GISBASE') returns None.
I've temporarily solved this by duplicating an existing environment variable from the running python shell within Spyder, renaming it and assigning it the correct path. This seems cumbersome and I wonder if there is a better way to access the environment variables in the .bashrc.
Thanks much,
Peter