[Pywps-dev] configuration problem
Luís de Sousa
luis.a.de.sousa at gmail.com
Tue Feb 9 23:22:57 PST 2016
Hi Pablo, two notes:
1. That PyWPS instance seems to be still importing processes from the
default location (pywps/pywps/processes); check your configuration
file.
2. PyWPS is issuing an exception with the processes returner and
histogramprocess; before querying PyWPS, making it is successfully
importing all your processes.
Regards,
Luís
On 10 February 2016 at 06:24, pablo zader <pzader at gmail.com> wrote:
> Hi list
>
> I have the next problem: making a GetCapabilities, returns a list of
> processes that is different from what I have defined
>
> I have:
>
> $>ls /usr/local/wps/processes/
> buffer.py dummyprocess.py __init__.pyc moreInstancesInOne.py
> returner.pyc tests.pyc
> buffer.pyc dummyprocess.pyc moreInOne.py moreInstancesInOne.pyc
> r_stats.py ultimatequestionprocess.py
> convertraster.py __init__.py moreInOne.pyc returner.py
> tests.py ultimatequestionprocess.pyc
>
> $>more /usr/local/wps/processes/__init__.py
> __all__ =
> ["returner","dummyprocess","moreInOne","moreInstancesInOne","tests","ultimatequestionprocess","buffer","r_stats"]
>
> But the query tells me that I have:
>
> ['dummyprocess', 'ultimatequestionprocess', 'complexVector',
> 'complexRaster', 'noOutput', 'firstInstance', 'secondInstance',
> 'assyncprocess', 'bboxprocess', 'complexprocess', 'literalprocess',
> 'noinputsprocess']
>
> Here the complete response:
>
> $>wps.py "service=wps&request=getcapabilities"
> PyWPS [2016-02-10 02:15:38,256] INFO: Importing the processes from default
> (pywps/processes) location
> Traceback (most recent call last):
> File
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/Wps/__init__.py",
> line 180, in _initFromDirectory
> locals(), [processSources.__name__])
> ImportError: No module named returner
> PyWPS [2016-02-10 02:15:38,257] WARNING: Could not import processes from
> 'processes': ImportError('No module named returner',)
> PyWPS Warning: Usage of
> PyWPS Warning: from pywps.Process.Process import WPSProcess
> PyWPS Warning: is deprecated. Use
> PyWPS Warning: from pywps.Process import WPSProcess
> PyWPS Warning: instead!
> PyWPS [2016-02-10 02:15:38,260] WARNING: Could not import process [<class
> tests.BBoxProcess3D at 0xfd17a0>]: TypeError("addBBoxInput() got an
> unexpected keyword argument 'crs'",)
> Traceback (most recent call last):
> File
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/Wps/__init__.py",
> line 180, in _initFromDirectory
> locals(), [processSources.__name__])
> ImportError: No module named GMLBuffer
> PyWPS [2016-02-10 02:15:38,261] WARNING: Could not import processes from
> 'processes': ImportError('No module named GMLBuffer',)
> Traceback (most recent call last):
> File
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/Wps/__init__.py",
> line 180, in _initFromDirectory
> locals(), [processSources.__name__])
> ImportError: No module named reducer
> PyWPS [2016-02-10 02:15:38,263] WARNING: Could not import processes from
> 'processes': ImportError('No module named reducer',)
> Traceback (most recent call last):
> File
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/Wps/__init__.py",
> line 180, in _initFromDirectory
> locals(), [processSources.__name__])
> ImportError: No module named histogramprocess
> PyWPS [2016-02-10 02:15:38,264] WARNING: Could not import processes from
> 'processes': ImportError('No module named histogramprocess',)
> PyWPS [2016-02-10 02:15:38,265] INFO: Following processes are imported:
> ['dummyprocess', 'ultimatequestionprocess', 'complexVector',
> 'complexRaster', 'noOutput', 'firstInstance', 'secondInstance',
> 'assyncprocess', 'bboxprocess', 'complexprocess', 'literalprocess',
> 'noinputsprocess']
>
> Thanks in advanced
>
> Pablo
>
> _______________________________________________
> pywps-dev mailing list
> pywps-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pywps-dev
More information about the pywps-dev
mailing list