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

Luca Delucchi lucadeluge at gmail.com
Fri Jul 3 00:08:05 PDT 2015


On 2 July 2015 at 10:35, Francesco Massa <massa80 at gmail.com> wrote:
> Hi

Hi Francesco,

sorry for the delay in the answer,

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

Which was the previous error and how did you solve it?

> 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?
>

if the problem is that you have to change the permission of that
folder, but I don't think this is the cause,

> 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")

are you sure that area is the correct path? can you print it before?
and check if it exists (os.path.exists can help you)

> #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>
>


-- 
ciao
Luca

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


More information about the Zoo-discuss mailing list