<div dir="ltr"><div dir="ltr"><font color="#444444">Hi Everyone,</font><div><font color="#444444"><br></font></div><div><font color="#444444">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 <a href="https://github.com/fderue/pywps_celery_demo">https://github.com/fderue/pywps_celery_demo</a>.  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 "</font><font face="arial, helvetica, sans-serif" style=""><font color="#444444"><span class="gmail-SpellingError gmail-SCXO88773785" style="background-color:inherit;margin:0px;padding:0px;background-repeat:repeat-x;background-position:0% 100%;background-image:url("data:image/gif;base64,R0lGODlhBQAEAJECAP////8AAAAAAAAAACH5BAEAAAIALAAAAAAFAAQAAAIIlGAXCCHrTCgAOw==");border-bottom:1px solid transparent;font-size:12px;font-variant-ligatures:none">TypeError</span><span class="gmail-NormalTextRun gmail-SCXO88773785" style="background-color:inherit;margin:0px;padding:0px;font-size:12px;font-variant-ligatures:none">: write() argument must be str, not bytes</span></font></font><span style="color:rgb(68,68,68);font-family:arial,helvetica,sans-serif;font-size:12px;font-variant-ligatures:none">"</span><font color="#444444" style="font-family:arial,helvetica,sans-serif"><span class="gmail-NormalTextRun gmail-SCXO88773785" style="background-color:inherit;margin:0px;padding:0px;font-size:12px;font-variant-ligatures:none"> from the job.dump function, and if I change the function so that it opens the file in binary mode, then I get "</span><span class="gmail-SpellingError gmail-SCXO135887663" style="background-color:inherit;margin:0px;padding:0px;background-repeat:repeat-x;background-position:0% 100%;background-image:url("data:image/gif;base64,R0lGODlhBQAEAJECAP////8AAAAAAAAAACH5BAEAAAIALAAAAAAFAAQAAAIIlGAXCCHrTCgAOw==");border-bottom:1px solid transparent;font-size:12px;font-variant-ligatures:none">io.UnsupportedOperation</span><span class="gmail-NormalTextRun gmail-SCXO135887663" style="background-color:inherit;margin:0px;padding:0px;font-size:12px;font-variant-ligatures:none">: underlying stream is not </span></font><span class="gmail-SpellingError gmail-SCXO135887663" style="font-family:arial,helvetica,sans-serif;background-color:inherit;margin:0px;padding:0px;background-repeat:repeat-x;background-position:0% 100%;background-image:url("data:image/gif;base64,R0lGODlhBQAEAJECAP////8AAAAAAAAAACH5BAEAAAIALAAAAAAFAAQAAAIIlGAXCCHrTCgAOw==");border-bottom:1px solid transparent;font-size:12px;font-variant-ligatures:none"><font color="#444444">seekable" . </font></span></div><div><font face="arial, helvetica, sans-serif" style=""><span class="gmail-SpellingError gmail-SCXO135887663" style="background-color:inherit;margin:0px;padding:0px;background-repeat:repeat-x;background-position:0% 100%;background-image:url("data:image/gif;base64,R0lGODlhBQAEAJECAP////8AAAAAAAAAACH5BAEAAAIALAAAAAAFAAQAAAIIlGAXCCHrTCgAOw==");border-bottom:1px solid transparent;font-size:12px;font-variant-ligatures:none"><font color="#444444">Does anyone know why this code is not 3.6 compatible?  Does anyone know how I might be able to fix this?</font></span></font></div><div><font face="arial, helvetica, sans-serif" style=""><span class="gmail-SpellingError gmail-SCXO135887663" style="background-color:inherit;margin:0px;padding:0px;background-repeat:repeat-x;background-position:0% 100%;background-image:url("data:image/gif;base64,R0lGODlhBQAEAJECAP////8AAAAAAAAAACH5BAEAAAIALAAAAAAFAAQAAAIIlGAXCCHrTCgAOw==");border-bottom:1px solid transparent;font-size:12px;font-variant-ligatures:none"><font color="#444444"><br></font></span></font></div><div><font face="arial, helvetica, sans-serif" style=""><span class="gmail-SpellingError gmail-SCXO135887663" style="background-color:inherit;margin:0px;padding:0px;background-repeat:repeat-x;background-position:0% 100%;background-image:url("data:image/gif;base64,R0lGODlhBQAEAJECAP////8AAAAAAAAAACH5BAEAAAIALAAAAAAFAAQAAAIIlGAXCCHrTCgAOw==");border-bottom:1px solid transparent;font-size:12px;font-variant-ligatures:none"><font color="#444444">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.</font></span></font></div><div><div><br></div><div>Thanks in advance,</div><div>Suzana</div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="font:7.5pt arial,sans-serif;color:gray;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;background-color:rgb(255,255,255)"><b>Dr Suzana Barreto<br>Software Analyst<br>Environment Systems</b><br>Tel: <a style="color:rgb(17,85,204)" href="tel:%2B44%20%280%29%201970%20626688" value="+441970626688" target="_blank">+44 (0) 1970 626688</a><br><a style="color:rgb(17,85,204)" href="http://www.envsys.co.uk/" target="_blank">www.envsys.co.uk</a></p><p style="font:7.5pt arial,sans-serif;color:gray;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;background-color:rgb(255,255,255)">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'</p></div></div></div></div></div></div></div>