[Zoo-discuss] WPS Service and GRASS7 - setup.init()

Luca Delucchi lucadeluge at gmail.com
Fri Jun 26 05:51:13 PDT 2015


On 26 June 2015 at 14:14, Francesco Massa <massa80 at gmail.com> wrote:
> Hi

Hi,

> I receive this error from my WPS service when I call my service
> GetRasterKrige I understand that it's something about the GRASS7
> configuration, in particular error is rised when .py invokes
> setup.init but I can't solve it.
> The GetRasterKrige.py script seemingly is okay: I haven't python error .
>
> Can you help me? Any suggestions about that?
>

It seems there is an error with initialization of GRASS, but we need
more info, could you share the code with us...

> Best regards
>
> Francesco
>
> <?xml version="1.0" encoding="utf-8"?>
> <ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.opengis.net/ows/1.1
> http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"
> xml:lang="en-US" version="1.1.0">
> <ows:Exception exceptionCode="NoApplicableCode">
> <ows:ExceptionText>Python module GetRasterKrige cannot be loaded.
> Message: TRACE: 'NoneType' object has no attribute 'endswith'
> <type 'exceptions.AttributeError'>
> Unable to run your python process properly. Please check the following
> messages : [' File "/usr/lib/cgi-bin/GetRasterKrige.py", line 29, in
> <module>\n setup.init("/usr/lib/grass70/",
> "/var/www/zoo/data/dbgrass", "SEPG_WPS", "PERMANENT")\n', ' File
> "/usr/lib/grass70/etc/python/grass/script/setup.py", line 161, in
> init\n config_dir = os.path.join(os.getenv(\'HOME\'),
> config_dirname)\n', ' File "/usr/lib/python2.7/posixpath.py", line 68,
> in join\n elif path == \'\' or path.endswith(\'/\'):\n']
> </ows:ExceptionText>
> </ows:Exception>
> </ows:ExceptionReport>
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss



-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org


More information about the Zoo-discuss mailing list