[PyWPS-dev] A question about PyWPS and celery demo

Carsten Ehbrecht ehbrecht at dkrz.de
Mon Dec 17 04:43:26 PST 2018


@Suzana
There is a ticket on PyWPS concerning celery:
https://github.com/geopython/pywps/issues/237 <https://github.com/geopython/pywps/issues/237>


> On 14 Dec 2018, at 8:37 pm, Carsten Ehbrecht <ehbrecht at dkrz.de> wrote:
> 
> Hi Suzana,
> 
> unfortunately the developer of this Celery demo has left the project. I haven’t checked the demo/code … I just have seen it is using a PyWPS fork:
> https://github.com/fderue/pywps.git
> 
> I know that this Celery demo is based on the scheduler extension which is part of pywps:
> https://pywps.readthedocs.io/en/master/extensions.html#job-scheduler-extension
> 
> This extension is by myself … and I don’t promise that it still works with python 3.x. Our test-suite does not cover enough and I will need to check this by myself again.
> 
> Cheers,
> Carsten
> 
>> On 12 Dec 2018, at 12:36, Suzana Barreto <suzana.barreto at envsys.co.uk> wrote:
>> 
>> Hi Everyone,
>> 
>> Seasons greatings ;-). I am currently trying to find out if it is possible to use python Celery with PyWPS.  I have had a look at the following docker demo project https://github.com/fderue/pywps_celery_demo.  This works but is unfortunately running under python 2.7.  My PyWPS server instance is running under 3.6, having run the celery example under 3.6, the server fails because it cannot serialize the job.  The errors I get are "TypeError: write() argument must be str, not bytes" from the job.dump function, and if I change the function so that it opens the file in binary mode, then I get "io.UnsupportedOperation: underlying stream is not seekable" . 
>> Does anyone know why this code is not 3.6 compatible?  Does anyone know how I might be able to fix this?
>> 
>> I have also tried to serialise the wps_response and wps_request objects separately but these are not serializable although the Process is.  Any help would be greatly appreciated.
>> 
>> Thanks in advance,
>> Suzana
>> -- 
>> Dr Suzana Barreto
>> Software Analyst
>> Environment Systems
>> Tel: +44 (0) 1970 626688
>> www.envsys.co.uk
>> 
>> The information contained in this e-mail is intended only for the use of the person(s) to whom it is addressed and may contain confidential or privileged information. If you have received this e-mail in error please contact the sender and delete the material without copying, distributing or disclosing the content. All reasonable precautions have been taken to ensure that this e-mail is free from any virus, however, the recipient should verify this to be the case. Please 'think before you print'
>> 
>> _______________________________________________
>> pywps-dev mailing list
>> pywps-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/pywps-dev
> 
> _______________________________________________
> pywps-dev mailing list
> pywps-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pywps-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pywps-dev/attachments/20181217/87fa9e08/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5214 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/pywps-dev/attachments/20181217/87fa9e08/attachment-0001.bin>


More information about the pywps-dev mailing list