<div dir="ltr"><div>Hi Luis</div><div>Thanks. But my problem is not solved. </div><div><br></div><div>My configuration file is in the /usr/local/wps/pywps.cfg  and the most important content is:</div><div><br></div><div>[server]</div><div>maxoperations=30</div><div>maxinputparamlength=1024</div><div>maxfilesize=100mb</div><div>tempPath=/tmp/pywps</div><div>processesPath=/usr/local/wps/processes</div><div>outputUrl=<a href="http://localhost/wps/wpsoutputs">http://localhost/wps/wpsoutputs</a></div><div>outputPath=/var/www/wps/wpsoutputs</div><div>debug=true # deprecated since 3.2, use logLevel instead</div><div>logFile=/tmp/pywps.log</div><div>logLevel=INFO</div><div><br></div><div>My process in /usr/local/wps/processes with content:</div><div><br></div><div>buffer.py         dummyprocess.py   __init__.pyc   moreInstancesInOne.py   returner.pyc  tests.pyc</div><div>buffer.pyc        dummyprocess.pyc  moreInOne.py   moreInstancesInOne.pyc  r_stats.py    ultimatequestionprocess.py</div><div>convertraster.py  __init__.py       moreInOne.pyc  returner.py             tests.py      ultimatequestionprocess.pyc</div><div><br></div><div><br></div><div>My __init__.py:</div><div><br></div><div>__all__ = ["returner","dummyprocess","moreInOne","moreInstancesInOne","tests","ultimatequestionprocess","buffer","r_stats"]</div><div><br></div><div><br></div><div>But the getcapabilities request, returns:</div><div><br></div><div>PyWPS [2016-02-10 14:12:28,214] INFO: Importing the processes from default (pywps/processes) location</div><div>Traceback (most recent call last):</div><div>  File "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/Wps/__init__.py", line 180, in _initFromDirectory</div><div>    locals(), [processSources.__name__])</div><div>ImportError: No module named returner</div><div>PyWPS [2016-02-10 14:12:28,215] WARNING: Could not import processes from 'processes': ImportError('No module named returner',)</div><div>PyWPS Warning: Usage of</div><div>PyWPS Warning:       from pywps.Process.Process import WPSProcess</div><div>PyWPS Warning: is deprecated. Use </div><div>PyWPS Warning:       from pywps.Process import WPSProcess</div><div>PyWPS Warning: instead!</div><div>PyWPS [2016-02-10 14:12:28,219] WARNING: Could not import process [<class tests.BBoxProcess3D at 0x2e657a0>]: TypeError("addBBoxInput() got an unexpected keyword argument 'crs'",)</div><div>Traceback (most recent call last):</div><div>  File "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/Wps/__init__.py", line 180, in _initFromDirectory</div><div>    locals(), [processSources.__name__])</div><div>ImportError: No module named GMLBuffer</div><div>PyWPS [2016-02-10 14:12:28,220] WARNING: Could not import processes from 'processes': ImportError('No module named GMLBuffer',)</div><div>Traceback (most recent call last):</div><div>  File "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/Wps/__init__.py", line 180, in _initFromDirectory</div><div>    locals(), [processSources.__name__])</div><div>ImportError: No module named reducer</div><div>PyWPS [2016-02-10 14:12:28,221] WARNING: Could not import processes from 'processes': ImportError('No module named reducer',)</div><div>Traceback (most recent call last):</div><div>  File "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/Wps/__init__.py", line 180, in _initFromDirectory</div><div>    locals(), [processSources.__name__])</div><div>ImportError: No module named histogramprocess</div><div>PyWPS [2016-02-10 14:12:28,223] WARNING: Could not import processes from 'processes': ImportError('No module named histogramprocess',)</div><div>PyWPS [2016-02-10 14:12:28,224] INFO: Following processes are imported: ['dummyprocess', 'ultimatequestionprocess', 'complexVector', 'complexRaster', 'noOutput', 'firstInstance', 'secondInstance', 'assyncprocess', 'bboxprocess', 'complexprocess', 'literalprocess', 'noinputsprocess']</div><div>Content-Type: application/xml</div><div><br></div><div>.....</div><div><span class="" style="white-space:pre">  </span><wps:ProcessOfferings></div><div><span class="" style="white-space:pre">               </span><wps:Process wps:processVersion="0.1"></div><div><span class="" style="white-space:pre">                     </span><ows:Identifier>dummyprocess</ows:Identifier></div><div><span class="" style="white-space:pre">                  </span><ows:Title>Dummy Process</ows:Title></div><div><span class="" style="white-space:pre">                   </span><ows:Abstract>The Dummy process is used for testing the WPS structure. The process will accept 2 input numbers and will return the XML result with an add one and subtract one operation</ows:Abstract></div><div><span class="" style="white-space:pre">                </span></wps:Process></div><div><span class="" style="white-space:pre">               </span><wps:Process wps:processVersion="2.0"></div><div><span class="" style="white-space:pre">                     </span><ows:Identifier>ultimatequestionprocess</ows:Identifier></div><div><span class="" style="white-space:pre">                       </span><ows:Title>Answer to Life, the Universe and Everything</ows:Title></div><div><span class="" style="white-space:pre">                     </span><ows:Abstract>Numerical solution that is the answer to Life, Universe and Everything. The process is an improvement to Deep Tought computer (therefore version 2.0) since it no longer takes 7.5 milion years, but only a few seconds to give a response, with an update of status every 10 seconds.</ows:Abstract></div><div><span class="" style="white-space:pre">            </span></wps:Process></div><div><span class="" style="white-space:pre">               </span><wps:Process wps:processVersion="None"></div><div><span class="" style="white-space:pre">                    </span><ows:Identifier>complexVector</ows:Identifier></div><div><span class="" style="white-space:pre">                 </span><ows:Title>First Process</ows:Title></div><div><span class="" style="white-space:pre">                   </span><ows:Abstract>Get vector imput and return it to output</ows:Abstract></div><div><span class="" style="white-space:pre">          </span></wps:Process></div><div><span class="" style="white-space:pre">               </span><wps:Process wps:processVersion="2.0"></div><div><span class="" style="white-space:pre">                     </span><ows:Identifier>complexRaster</ows:Identifier></div><div><span class="" style="white-space:pre">                 </span><ows:Title>Second Process</ows:Title></div><div><span class="" style="white-space:pre">          </span></wps:Process></div><div><span class="" style="white-space:pre">               </span><wps:Process wps:processVersion="None"></div><div><span class="" style="white-space:pre">                    </span><ows:Identifier>noOutput</ows:Identifier></div><div><span class="" style="white-space:pre">                      </span><ows:Title>No output given</ows:Title></div><div><span class="" style="white-space:pre">         </span></wps:Process></div><div><span class="" style="white-space:pre">               </span><wps:Process wps:processVersion="None"></div><div><span class="" style="white-space:pre">                    </span><ows:Identifier>firstInstance</ows:Identifier></div><div><span class="" style="white-space:pre">                 </span><ows:Title>First instance process</ows:Title></div><div><span class="" style="white-space:pre">          </span></wps:Process></div><div><span class="" style="white-space:pre">               </span><wps:Process wps:processVersion="None"></div><div><span class="" style="white-space:pre">                    </span><ows:Identifier>secondInstance</ows:Identifier></div><div><span class="" style="white-space:pre">                        </span><ows:Title>Second instance process</ows:Title></div><div><span class="" style="white-space:pre">         </span></wps:Process></div><div><span class="" style="white-space:pre">               </span><wps:Process wps:processVersion="None"></div><div><span class="" style="white-space:pre">                    </span><ows:Identifier>assyncprocess</ows:Identifier></div><div><span class="" style="white-space:pre">                 </span><ows:Title>Assynchronous process</ows:Title></div><div><span class="" style="white-space:pre">           </span></wps:Process></div><div><span class="" style="white-space:pre">               </span><wps:Process wps:processVersion="None"></div><div><span class="" style="white-space:pre">                    </span><ows:Identifier>bboxprocess</ows:Identifier></div><div><span class="" style="white-space:pre">                   </span><ows:Title>BBox process</ows:Title></div><div><span class="" style="white-space:pre">            </span></wps:Process></div><div><span class="" style="white-space:pre">               </span><wps:Process wps:processVersion="None"></div><div><span class="" style="white-space:pre">                    </span><ows:Identifier>complexprocess</ows:Identifier></div><div><span class="" style="white-space:pre">                        </span><ows:Title>Complex process</ows:Title></div><div><span class="" style="white-space:pre">         </span></wps:Process></div><div><span class="" style="white-space:pre">               </span><wps:Process wps:processVersion="None"></div><div><span class="" style="white-space:pre">                    </span><ows:Identifier>literalprocess</ows:Identifier></div><div><span class="" style="white-space:pre">                        </span><ows:Title>Literal process</ows:Title></div><div>                        <ows:Metadata xlink:title="Foobar" xlink:href="<a href="http://foo/bar">http://foo/bar</a>" /></div><div>                        <ows:Metadata xlink:title="Barfoo" xlink:href="<a href="http://bar/foo">http://bar/foo</a>" /></div><div>                        <ows:Metadata xlink:title="Literal process" xlink:href="<a href="http://localhost/cgi-bin/wps?service=WPS&amp;request=DescribeProcess&amp;version=1.0.0&amp;identifier=literalprocess">http://localhost/cgi-bin/wps?service=WPS&amp;request=DescribeProcess&amp;version=1.0.0&amp;identifier=literalprocess</a>" /></div><div>                        <ows:Metadata xlink:title="Literal process" xlink:href="<a href="http://foobar/">http://foobar/</a>" /></div><div><span class="" style="white-space:pre">               </span></wps:Process></div><div><span class="" style="white-space:pre">               </span><wps:Process wps:processVersion="None"></div><div><span class="" style="white-space:pre">                    </span><ows:Identifier>noinputsprocess</ows:Identifier></div><div><span class="" style="white-space:pre">                       </span><ows:Title>No inputs</ows:Title></div><div><span class="" style="white-space:pre">               </span></wps:Process></div><div><span class="" style="white-space:pre">       </span></wps:ProcessOfferings></div><div>....</div><div></wps:Capabilities></div><div><br></div><div><br></div><div>1 - I do not understand this reading processes pywps/processes rather than /usr/local/WPS/processes</div><div>2 - this reading another configuration file apparently different</div><div><br></div><div><br></div><div>Thanks in advanced</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-10 4:22 GMT-03:00 Luís de Sousa <span dir="ltr"><<a href="mailto:luis.a.de.sousa@gmail.com" target="_blank">luis.a.de.sousa@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Pablo, two notes:<br>
<br>
1. That PyWPS instance seems to be still importing processes from the<br>
default location (pywps/pywps/processes); check your configuration<br>
file.<br>
<br>
2. PyWPS is issuing an exception with the processes returner and<br>
histogramprocess; before querying PyWPS, making it is successfully<br>
importing all your processes.<br>
<br>
Regards,<br>
<br>
Luís<br>
<br>
On 10 February 2016 at 06:24, pablo zader <<a href="mailto:pzader@gmail.com">pzader@gmail.com</a>> wrote:<br>
> Hi list<br>
><br>
> I have the next problem: making a GetCapabilities, returns a list of<br>
> processes that is different from what I have defined<br>
><br>
> I have:<br>
><br>
> $>ls /usr/local/wps/processes/<br>
> buffer.py         dummyprocess.py   __init__.pyc   moreInstancesInOne.py<br>
> returner.pyc  tests.pyc<br>
> buffer.pyc        dummyprocess.pyc  moreInOne.py   moreInstancesInOne.pyc<br>
> r_stats.py    ultimatequestionprocess.py<br>
> convertraster.py  __init__.py       moreInOne.pyc  returner.py<br>
> tests.py      ultimatequestionprocess.pyc<br>
><br>
> $>more  /usr/local/wps/processes/__init__.py<br>
> __all__ =<br>
> ["returner","dummyprocess","moreInOne","moreInstancesInOne","tests","ultimatequestionprocess","buffer","r_stats"]<br>
><br>
> But the query tells me that I have:<br>
><br>
> ['dummyprocess', 'ultimatequestionprocess', 'complexVector',<br>
> 'complexRaster', 'noOutput', 'firstInstance', 'secondInstance',<br>
> 'assyncprocess', 'bboxprocess', 'complexprocess', 'literalprocess',<br>
> 'noinputsprocess']<br>
><br>
> Here the  complete response:<br>
><br>
> $>wps.py "service=wps&request=getcapabilities"<br>
> PyWPS [2016-02-10 02:15:38,256] INFO: Importing the processes from default<br>
> (pywps/processes) location<br>
> Traceback (most recent call last):<br>
>   File<br>
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/Wps/__init__.py",<br>
> line 180, in _initFromDirectory<br>
>     locals(), [processSources.__name__])<br>
> ImportError: No module named returner<br>
> PyWPS [2016-02-10 02:15:38,257] WARNING: Could not import processes from<br>
> 'processes': ImportError('No module named returner',)<br>
> PyWPS Warning: Usage of<br>
> PyWPS Warning:       from pywps.Process.Process import WPSProcess<br>
> PyWPS Warning: is deprecated. Use<br>
> PyWPS Warning:       from pywps.Process import WPSProcess<br>
> PyWPS Warning: instead!<br>
> PyWPS [2016-02-10 02:15:38,260] WARNING: Could not import process [<class<br>
> tests.BBoxProcess3D at 0xfd17a0>]: TypeError("addBBoxInput() got an<br>
> unexpected keyword argument 'crs'",)<br>
> Traceback (most recent call last):<br>
>   File<br>
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/Wps/__init__.py",<br>
> line 180, in _initFromDirectory<br>
>     locals(), [processSources.__name__])<br>
> ImportError: No module named GMLBuffer<br>
> PyWPS [2016-02-10 02:15:38,261] WARNING: Could not import processes from<br>
> 'processes': ImportError('No module named GMLBuffer',)<br>
> Traceback (most recent call last):<br>
>   File<br>
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/Wps/__init__.py",<br>
> line 180, in _initFromDirectory<br>
>     locals(), [processSources.__name__])<br>
> ImportError: No module named reducer<br>
> PyWPS [2016-02-10 02:15:38,263] WARNING: Could not import processes from<br>
> 'processes': ImportError('No module named reducer',)<br>
> Traceback (most recent call last):<br>
>   File<br>
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/Wps/__init__.py",<br>
> line 180, in _initFromDirectory<br>
>     locals(), [processSources.__name__])<br>
> ImportError: No module named histogramprocess<br>
> PyWPS [2016-02-10 02:15:38,264] WARNING: Could not import processes from<br>
> 'processes': ImportError('No module named histogramprocess',)<br>
> PyWPS [2016-02-10 02:15:38,265] INFO: Following processes are imported:<br>
> ['dummyprocess', 'ultimatequestionprocess', 'complexVector',<br>
> 'complexRaster', 'noOutput', 'firstInstance', 'secondInstance',<br>
> 'assyncprocess', 'bboxprocess', 'complexprocess', 'literalprocess',<br>
> 'noinputsprocess']<br>
><br>
> Thanks in advanced<br>
><br>
> Pablo<br>
><br>
> _______________________________________________<br>
> pywps-dev mailing list<br>
> <a href="mailto:pywps-dev@lists.osgeo.org">pywps-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/pywps-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pywps-dev</a><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>