[ZOO-Discuss] Error when running GRASS processes
Pierre Roudier
pierre.roudier at gmail.com
Sun May 1 17:13:21 PDT 2011
Hi Soeren,
I've been correcting gms/Testing/Python/XML/v.voronoi.xml but I keep
having the following error:
<?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"
xmlns:xlink="http://www.w3.org/1999/xlink"
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 v.voronoi cannot be loaded.
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
Here's my /usr/lib/cgi-bin:
root at grass:/usr/lib/cgi-bin# ll
total 496
drwxr-xr-x 3 root root 12288 2011-05-02 12:04 ./
drwxr-xr-x 136 root root 69632 2011-04-29 12:17 ../
-rw-r--r-- 1 root root 1526 2011-05-02 12:04 GlobalGrassSettings.py
drwxr-xr-x 4 root root 4096 2011-04-28 14:25 gms/
-rwxr-xr-x 1 root root 979 2011-04-28 13:50 HelloPy.zcfg*
-rw-r--r-- 1 root root 675 2011-04-28 14:47 main.cfg
-rwxr-xr-x 1 root root 389 2011-03-24 12:06 pywps.cgi*
-rwxr-xr-x 1 root root 495 2011-03-24 12:13 pywps_start*
-rw-r--r-- 1 root root 142 2011-04-28 13:50 test_service.py
-rw-r--r-- 1 root root 3305 2011-04-28 14:52 v_delaunay.zcfg
-rw-r--r-- 1 root root 339 2011-04-29 18:03 v_voronoi.py
-rw-r--r-- 1 root root 2979 2011-05-02 11:24 v_voronoi.zcfg
-rw-r--r-- 1 root root 12706 2011-04-28 14:25 ZOOGrassModuleStarter.py
-rwxr-xr-x 1 root root 355333 2011-04-28 14:45 zoo_loader.cgi*
Here's the content of v_voronoi.* and v.voronoi.xml:
root at grass:/usr/lib/cgi-bin# more v_voronoi.zcfg | grep voronoi
[v_voronoi]
Abstract = http://grass.osgeo.org/grass70/manuals/html70_user/v.voronoi.html
serviceProvider = v.voronoi
root at grass:/usr/lib/cgi-bin# more v_voronoi.py | grep voronoi
def v_voronoi(m, inputs, outputs):
service.fromMaps("v.voronoi", inputs, outputs)
root at grass:/usr/lib/cgi-bin# more gms/Testing/Python/XML/v.voronoi.xml
| grep voronoi
<ows:Identifier>v.voronoi</ows:Identifier>
<ows:Abstract>http://grass.osgeo.org/grass70/manuals/html70_user/v.voronoi.html</ows:Abstract>
Obviously the problem is that ZOO cannot find the v.voronoi module.
But I can't really understand if this is a problem of GRASS config in
GlobalGrassSettings.py, or a problem in the v_voronoi.* files.
Cheers,
Pierre
2011/4/29 Soeren Gebbert <soerengebbert at googlemail.com>:
> Hello,
>
> ... <ows:Exception exceptionCode="InvalidParameterValue">
>>> <ows:ExceptionText>The value for <indetifier> seems to be
>>> wrong (v.voronoi). Please, ensure that the process exist using the
>>> GetCapabilities request.</ows:ExceptionText>
>>> </ows:Exception>
>>> </ows:ExceptionReport>
>>
>> This is an unexpected error ... i don't know why this is not working
>> with ZOO WPS??? I am using a POST request to deliver the XML content,
>> maybe Gerald can clarify this issue?
>
> Sorry, i have to correct me:
> Everything is fine with ZOO but the service name in the XML execute
> request and in the zcfg files are different. You need to change the
> name v.voronoi into v_voronoi in the XML request file.
>
> Best regards
> Soeren
>
>
>>
>> Best regards
>> Soeren
>>
>>>
>>>
>>> Cheers,
>>>
>>> Pierre
>>>
>>>> Best regards
>>>> Soeren
>>>>
>>>>>
>>>>> Your help, and the efforts you are putting on open-source software,
>>>>> is greatly appreciated.
>>>>>
>>>>> Best,
>>>>>
>>>>> Pierre
>>>>>
>>>>>> Best regards
>>>>>> Soeren
>>>>>>
>>>>>>
>>>>>> 2011/4/28 Pierre Roudier <pierre.roudier at gmail.com>:
>>>>>>> Dear zoo-keepers,
>>>>>>>
>>>>>>> I'm trying the WPS GRASS bridge - unfortunately I can't make it work so far.
>>>>>>>
>>>>>>> I've added two GRASS processes to my /usr/lib/cgi-bin:
>>>>>>>
>>>>>>> root at grass:/usr/local/src/zoo/zoo-kernel# ls /usr/lib/cgi-bin/ | grep .zcfg
>>>>>>> HelloPy.zcfg
>>>>>>> v_delaunay.zcfg
>>>>>>> v_voronoi.zcfg
>>>>>>>
>>>>>>> The GetCapabilities is working fine. In QGIS, I'm using the WPS plugin
>>>>>>> to try to make a Voronoi tesselation or a Delaunay triangulation of a
>>>>>>> dummy points shapefile. In both cases, I got the following error when
>>>>>>> running the process:
>>>>>>>
>>>>>>> <?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"
>>>>>>> xmlns:xlink="http://www.w3.org/1999/xlink"
>>>>>>> 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 v_delaunay cannot be loaded.
>>>>>>> </ows:ExceptionText>
>>>>>>> </ows:Exception>
>>>>>>> </ows:ExceptionReport>
>>>>>>>
>>>>>>> Any suggestion?
>>>>>>>
>>>>>>> Cheers,
>>>>>>>
>>>>>>> Pierre
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Scientist
>>>>>>> Landcare Research, New Zealand
>>>>>>> _______________________________________________
>>>>>>> Zoo-discuss mailing list
>>>>>>> Zoo-discuss at gisws.media.osaka-cu.ac.jp
>>>>>>> http://gisws.media.osaka-cu.ac.jp/mailman/listinfo/zoo-discuss
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Scientist
>>>>> Landcare Research, New Zealand
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Scientist
>>> Landcare Research, New Zealand
>>>
>>
>
--
Scientist
Landcare Research, New Zealand
More information about the Zoo-discuss
mailing list