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

Francesco Massa massa80 at gmail.com
Thu Jul 2 01:35:05 PDT 2015


Hi
My first error is solved maybe, but now I have this one: Message:
TRACE: [Errno 2] No such file or directory

I think that it is a permission folder issue: when file gisrc file is
written in /tmp/ folder it has www-data owner and it's unaccessible to
the python script... do you think that it is a valid cause? How can I
solve?

Best regards

Francesco

<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: [Errno
2] No such file or directory <type 'exceptions.OSError'> Unable to run
your python process properly. Please check the following messages : ['
File "/usr/lib/cgi-bin/GetRasterKrige.py", line 69, in <module>\n
grass.run_command("v.in.ogr", input="%s"%area,
output="area",location="Kriging",overwrite=True, flags="c" "e" "o")
#import shapefile area di lavoro e creo LOCATION/MAPSET
Kriging/PERMANENT\n', ' File
"/usr/lib/grass70/etc/python/grass/script/core.py", line 374, in
run_command\n ps = start_command(*args, **kwargs)\n', ' File
"/usr/lib/grass70/etc/python/grass/script/core.py", line 361, in
start_command\n return Popen(args, **popts)\n', ' File
"/usr/lib/grass70/etc/python/grass/script/core.py", line 64, in
__init__\n subprocess.Popen.__init__(self, args, **kwargs)\n', ' File
"/usr/lib/python2.7/subprocess.py", line 679, in __init__\n errread,
errwrite)\n', ' File "/usr/lib/python2.7/subprocess.py", line 1249, in
_execute_child\n raise child_exception\n']
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

2015-06-26 14:14 GMT+02:00 Francesco Massa <massa80 at gmail.com>:
> 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?
>
> 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>


More information about the Zoo-discuss mailing list