<div dir="ltr">Dear Fenoy<div><br></div><div><div>Thanks for the clarification and correctness in a reply. Clearly the full stack of python is a very useful to track and find the error help. Maybe what I propose is a suggestion for improvement in the future.</div><div>The zoo project is very good!</div><div><br></div><div>Thanks</div></div><div>Pablo</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-04 4:47 GMT-03:00 Fenoy Gerald <span dir="ltr"><<a href="mailto:gerald.fenoy@geolabs.fr" target="_blank">gerald.fenoy@geolabs.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Pablo,<br>
the issue is that for the GRASS-GIS support we are now using the Python support to access GRASS capabilities. So, obviously this leads to some understandable error messages. Nevertheless, I would like to let you know that for each Python error occurring from any service, there is a basic callback function which is called to display the full python stack. Which I think is quite straightforward and usable in many cases.<br>
<br>
So even if you are right saying that we should have better error message for this specific issue, it seems a bit difficult to treat it in a different way that the Python support do.<br>
<br>
One choice should be to integrate the GRASS-GIS support using directly its native language, this way we can return specific errors messages coming from the GRASS-GIS using functions such as G_set_error_routine() to handle the way we want any error messages coming from GRASS-GIS.<br>
<br>
In fact, I have the idea in mind to support GRASS-GIS from the ZOO-Kernel in the same way we do for both OrfeoTollbox and SAGA-GIS for some time, this should solve your specific issue but will require some time to make it available. Furthermore, as we are now implementing the WPS 2.0.0 support which will be available soon, this will postpone, unfortunately the internal GRASS-GIS support for still some time.<br>
<br>
I hope you can understand that the error message is not really specific to your issue but illustrate the basic python stack trace supported for each Python services.<br>
<br>
I hope you will find your answer in my email.<br>
Best regards,<br>
<br>
<br>
> Le 3 mai 2015 à 23:05, pablo zader <<a href="mailto:pzader@gmail.com">pzader@gmail.com</a>> a écrit :<br>
><br>
> Dear Quang<br>
><br>
> Yes, like this here "<a href="http://code.google.com/p/wps-grass-bridge/source/browse/trunk/ZOOGrassModuleStarter.py?r=9&spec=svn9" target="_blank">http://code.google.com/p/wps-grass-bridge/source/browse/trunk/ZOOGrassModuleStarter.py?r=9&spec=svn9</a>"  works perfectly, but if you look right there mentioned, If I want  I changue the path.<br>
> Turning again to my original question if that path there and if you forgot create, the service will not work! and  error message to return ZOO does not refer to this error, it is not clear.<br>
><br>
> # !!!!! EDIT THIS SECTION !!!!!<br>
> # Some default variables. Override them to your needs.   <---- HERE<br>
> WORKDIR="/tmp"<br>
> OUTPUTDIR="/tmp"<br>
> LOGFILE="logfile.txt"<br>
> LOGFILE_MODULE_STDOUT="logfile_module_stdout.txt"<br>
> LOGFILE_MODULE_STDERR="logfile_module_sterr.txt"<br>
> GRASS_GIS_BASE="/home/soeren/src/grass7.0/grass_trunk/dist.i686-pc-linux-gnu"<br>
> GRASS_ADDON_PATH="/home/soeren/src/vtkGRASSBridge/vtk-grass-bridge/WPS/Testing/Python/GrassAddons"<br>
> GRASS_VERSION="7.0.svn"<br>
> # !!!!! END EDIT SECTION !!!!!<br>
><br>
> Pablo<br>
><br>
><br>
><br>
> 2015-05-03 17:18 GMT-03:00 truongxuan quang <<a href="mailto:truongxuanquang@yahoo.com">truongxuanquang@yahoo.com</a>>:<br>
> Dear Pablo<br>
><br>
> I am aslo ZOO-Project user, did you try  to set your configure file with /tmp/(without zoo)/...<br>
> I think it works perfectly!<br>
><br>
> I don't  know which version you are using but as I google it in <a href="http://code.google.com/p/wps-grass-bridge/source/browse/trunk/ZOOGrassModuleStarter.py?r=9&spec=svn9" target="_blank">http://code.google.com/p/wps-grass-bridge/source/browse/trunk/ZOOGrassModuleStarter.py?r=9&spec=svn9</a> it looks something wrong with the path in configure file<br>
><br>
> Quang<br>
><br>
> On Sunday, May 3, 2015 9:13 PM, pablo zader <<a href="mailto:pzader@gmail.com">pzader@gmail.com</a>> wrote:<br>
><br>
><br>
> Hello Quang<br>
><br>
> If I change the directory owner to www-data, it works well. But it also works if you have the permissions to 777 with user root.<br>
> For example<br>
><br>
> drwxrwxrwx  31 root root 12288 may  3 16:10 tmp<br>
> drwxrwxrwx 2 root     root        4096 may  3 16:07 /tmp/zoo<br>
><br>
> But my question is another:<br>
><br>
> "There are two issues I want to raise:<br>
>       • best would return an error message: "Can not create the directory", rather than "ZOOGrassModuleStarter instance has no attribute 'logfile"??? (This is bug zoo-proyect??)<br>
><br>
>       • If my tmp is:<br>
><br>
> drwxrwxrwx  30 root root 12288 may  3 00:43 tmp<br>
><br>
> Why zoo-project can not create the directory zoo? "<br>
><br>
> Thanks<br>
><br>
><br>
><br>
><br>
><br>
> 2015-05-03 15:35 GMT-03:00 truongxuan quang <<a href="mailto:truongxuanquang@yahoo.com">truongxuanquang@yahoo.com</a>>:<br>
> Hello Pablo<br>
><br>
> Can you please change / tmp/zoo to www-data permission<br>
> Quang<br>
><br>
><br>
><br>
> On Sunday, May 3, 2015 5:54 AM, pablo zader <<a href="mailto:pzader@gmail.com">pzader@gmail.com</a>> wrote:<br>
><br>
><br>
> Hi list<br>
><br>
> I'm working with GRASS GIS services, particularly "r.what".<br>
> Experiment a problem to define a nonexistent directory in GlobalGras Settings.py file:<br>
><br>
> WORKDIR="/tmp/zoo"<br>
> OUTPUTDIR="/tmp/zoo"<br>
> LOGFILE="/tmp/zoo/logfile.txt"<br>
> LOGFILE_MODULE_STDOUT="/tmp/zoo/logfile_module_stdout.txt"<br>
> LOGFILE_MODULE_STDERR="/tmp/zoo/logfile_module_sterr.txt"<br>
> GRASS_GIS_BASE="/home/pablo/grass_trunk/dist.x86_64-unknown-linux-gnu"<br>
> GRASS_ADDON_PATH="/home/pablo/wps-grass-bridge/gms/Testing/Python/GrassAddons"<br>
> GRASS_VERSION="7.0.svn"<br>
><br>
> if the "/ tmp/zoo" directory does not exist, an error occurs:<br>
><br>
> <ExceptionReport xmlns="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:schemaLocation="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a> <a href="http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd" target="_blank">http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd</a>" xml:lang="en-US" version="1.1.0"><br>
> <Exception exceptionCode="NoApplicableCode"><br>
> <ExceptionText><br>
> TRACE : ZOOGrassModuleStarter instance has no attribute 'logfile' <type 'exceptions.AttributeError'> Unable to run your python process properly. Please check the following messages : [' File "/usr/lib/cgi-bin/r_what.py", line 7, in r_what\n service.fromMaps("r.what", inputs, outputs)\n', ' File "/usr/lib/cgi-bin/ZOOGrassModuleStarter.py", line 43, in fromMaps\n self._createTemporalDir(GlobalGrassSettings.WORKDIR)\n', ' File "/usr/lib/cgi-bin/gms/GrassModuleStarter.py", line 248, in _createTemporalDir\n self.LogError(log)\n', ' File "/usr/lib/cgi-bin/gms/ProcessLogging.py", line 70, in LogError\n self.logfile.write("\\n<ERROR timestamp=\\"" + localtime + "\\">\\n")\n']<br>
> </ExceptionText><br>
> </Exception><br>
> </ExceptionReport><br>
><br>
> There are two issues I want to raise:<br>
>       • best would return an error message: "Can not create the directory", rather than "ZOOGrassModuleStarter instance has no attribute 'logfile"??? (This is bug zoo-proyect??)<br>
><br>
>       • If my tmp is:<br>
><br>
> drwxrwxrwx  30 root root 12288 may  3 00:43 tmp<br>
><br>
> Why zoo-project can not create the directory zoo?<br>
><br>
> Thanks in advanced<br>
><br>
> Pablo<br>
><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> Pablo J. Zader<br>
> Lic. en Cs. de la Computación<br>
> <a href="mailto:pablo.zader@gmail.com">pablo.zader@gmail.com</a><br>
><br>
> "Los Grandes Hombres hablan sobre ideas...<br>
>  Los Hombres Promedio hablan sobre cosas...<br>
>  Los Hombres Pequeños hablan.. de otros Hombres.<br>
><br>
> del libro Matemática estas ahi? A. Paenza "<br>
><br>
> _______________________________________________<br>
> Zoo-discuss mailing list<br>
> <a href="mailto:Zoo-discuss@lists.osgeo.org">Zoo-discuss@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Pablo J. Zader<br>
> Lic. en Cs. de la Computación<br>
> <a href="mailto:pablo.zader@gmail.com">pablo.zader@gmail.com</a><br>
><br>
> "Los Grandes Hombres hablan sobre ideas...<br>
>  Los Hombres Promedio hablan sobre cosas...<br>
>  Los Hombres Pequeños hablan.. de otros Hombres.<br>
><br>
> del libro Matemática estas ahi? A. Paenza "<br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> Pablo J. Zader<br>
> Lic. en Cs. de la Computación<br>
> <a href="mailto:pablo.zader@gmail.com">pablo.zader@gmail.com</a><br>
><br>
> "Los Grandes Hombres hablan sobre ideas...<br>
>  Los Hombres Promedio hablan sobre cosas...<br>
>  Los Hombres Pequeños hablan.. de otros Hombres.<br>
><br>
> del libro Matemática estas ahi? A. Paenza "<br>
> _______________________________________________<br>
> Zoo-discuss mailing list<br>
> <a href="mailto:Zoo-discuss@lists.osgeo.org">Zoo-discuss@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss</a><br>
<br>
<br>
<br>
Gérald Fenoy<br>
<a href="http://wiki.osgeo.org/wiki/User:Djay" target="_blank">http://wiki.osgeo.org/wiki/User:Djay</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><b><font color="#3366ff"><i>Pablo J. Zader</i></font></b></div><div><b><font color="#3366ff"><i>Lic. en Cs. de la Computación</i></font></b></div><div><i style="color:rgb(51,102,255);font-size:12.8000001907349px"><b><a href="mailto:pablo.zader@gmail.com" target="_blank">pablo.zader@gmail.com</a></b></i><br></div><div><b><i><font size="1"><br></font></i></b></div><div><b><i><font size="1">"Los Grandes Hombres hablan sobre ideas...<br> Los Hombres Promedio hablan sobre cosas...<br> Los Hombres Pequeños hablan.. de otros Hombres.<br><br></font></i></b><div><b><i><font size="1">del libro Matemática estas ahi? A. Paenza "</font></i></b></div></div></div></div></div></div>
</div>