Python Forum
Zeep AWS problem - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Zeep AWS problem (/thread-38416.html)



Zeep AWS problem - centorillion - Oct-10-2022

Hello guys,

Thanks in advance for helping me. I tried multiple times to upload zeep library in AWS lambda but it never works. I tried this one:

http://bedrosovayulia.blogspot.com/2019/07/how-to-reate-aws-lambda-layer-with-zeep.html

https://github.com/JFox/aws-lambda-lxml

Even downloaded the compiled and zipped layer from her repo but still AWS complains that cannot find zeep.
https://github.com/BedrosovaYulia/Bitrix24_Russian_post_tracking_AWS/tree/master/Layers

{
"errorMessage": "Unable to import module 'lambda_function': No module named 'zeep'",
"errorType": "Runtime.ImportModuleError",
"requestId": "21717c21-cadc-4f03-8133-884c774e23b0",
"stackTrace": []
}

What am I doing wrong, has someone faced that issue recently?


RE: Zeep AWS problem - roberjulian - Nov-10-2022

(Oct-10-2022, 02:59 AM)centorillion Wrote: Hello guys,

Thanks in advance for helping me. I tried multiple times to upload zeep library in AWS lambda but it never works. I tried this one:

http://bedrosovayulia.blogspot.com/2019/07/how-to-reate-aws-lambda-layer-with-zeep.html

https://github.com/JFox/aws-lambda-lxml

Even downloaded the compiled and zipped layer from her repo but still AWS complains that cannot find zeep.
https://github.com/BedrosovaYulia/Bitrix24_Russian_post_tracking_AWS/tree/master/Layers

{
"errorMessage": "Unable to import module 'lambda_function': No module named 'zeep'",
"errorType": "Runtime.ImportModuleError",
"requestId": "21717c21-cadc-4f03-8133-884c774e23b0",
"stackTrace": []
}

What am I doing wrong, has someone faced that issue recently?

following, recently I had face the same issue, still not able to figure it out.


RE: Zeep AWS problem - Larz60+ - Nov-10-2022

did you try pip?
If you don't have lxml installed (seems zeep wants version 4.2.5) do this first:
pip install lxml==4.2.5 zeep

Otherwise: pip install zeep should be sufficient
see https://docs.python-zeep.org/en/master/ for all instructions.

it worked for me on Linux-mint (I already had lxml installed)