[Zoo-discuss] Grass environment
truongxuan quang
truongxuanquang at yahoo.com
Tue Feb 4 03:06:59 PST 2014
Dear List
I am deploying some small raster and vector calculation in ZOO-Project using GRASS
I got stuck with grass environment in ZOO-Project, I can remember how to fix it
down there is the printenv from bashrc in my Ubuntu
LD_LIBRARY_PATH=:/usr/local/src/grass6_devel/dist.x86_64-unknown-linux-gnu/lib
GISBASE=/usr/local/src/grass6_devel/dist.x86_64-unknown-linux-gnu
PATH=/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/src/grass6_devel/dist.x86_64-unknown-linux-gnu/bin:/usr/local/src/grass6_devel/dist.x86_64-unknown-linux-gnu/scripts
PYTHONPATH=:/scripts:/usr/local/src/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/python/
I have checked with python command and grass seems working fine
Problem is that when I import grass to ZOO-Service as simple as example bellow
import sys
import os
import zoo
import grass.script as grass
and the log file said that.
File "/usr/lib/cgi-bin/Hello.py", line 7, in <module>
import grass.script as grass
File "/usr/local/src/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/python/grass/script/__init__.py", line 1, in <module>
from core import *
File "/usr/local/src/grass6_devel/dist.x86_64-unknown-linux-gnu/etc/python/grass/script/core.py", line 38, in <module>
gettext.install('grasslibs', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
File "/usr/lib/python2.7/posixpath.py", line 68, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
Any answer and help ?
Many thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20140204/e4a1876e/attachment.html>
More information about the Zoo-discuss
mailing list