Dear all,
I am getting this python error when I try to start grass70 in an
ubuntu 12-04 'dockerized' virtual machine (see
https://registry.hub.docker.com/u/javimarlop/ubuntugis-docker/dockerfile/
for more info and details):
A) As root:
root@bfc38ad6d394:/# grass70 -text
Traceback (most recent call last):
File "/usr/bin/grass70", line 1150, in <module>
check_shell()
File "/usr/bin/grass70", line 771, in check_shell
sh = os.path.basename(os.getenv('SHELL'))
File "/usr/lib/python2.7/posixpath.py", line 112, in basename
i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
B) As a different user:
root@bfc38ad6d394:/# su javier
javier@bfc38ad6d394:/$ grass70 -text
Traceback (most recent call last):
File "/usr/bin/grass70", line 1159, in <module>
set_paths()
File "/usr/bin/grass70", line 367, in set_paths
if sys_man_path:
UnboundLocalError: local variable 'sys_man_path' referenced before assignment
Python version is 2.7.3. and grass70 was installed using the
grass-devel ppa. Does anyone have a clue?
Thank you very much and cheers,
Javier
...ok, it is working now creating a new user following the
instructions on:
http://www.spatial-ecology.net/dokuwiki/doku.php?id=wiki:install_linux
Cheers,
Javier
On Thu, Oct 30, 2014 at 8:13 AM, Javier Martínez-López
<javi.martinez.lopez@gmail.com> wrote:
Dear all,
I am getting this python error when I try to start grass70 in an
ubuntu 12-04 'dockerized' virtual machine (see
https://registry.hub.docker.com/u/javimarlop/ubuntugis-docker/dockerfile/
for more info and details):
A) As root:
root@bfc38ad6d394:/# grass70 -text
Traceback (most recent call last):
File "/usr/bin/grass70", line 1150, in <module>
check_shell()
File "/usr/bin/grass70", line 771, in check_shell
sh = os.path.basename(os.getenv('SHELL'))
File "/usr/lib/python2.7/posixpath.py", line 112, in basename
i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
B) As a different user:
root@bfc38ad6d394:/# su javier
javier@bfc38ad6d394:/$ grass70 -text
Traceback (most recent call last):
File "/usr/bin/grass70", line 1159, in <module>
set_paths()
File "/usr/bin/grass70", line 367, in set_paths
if sys_man_path:
UnboundLocalError: local variable 'sys_man_path' referenced before assignment
Python version is 2.7.3. and grass70 was installed using the
grass-devel ppa. Does anyone have a clue?
Thank you very much and cheers,
Javier