{
\"errorMessage\": \"Unable to import module \'lambda_function\':
cannot import name \'etree\' from \'lxml\' (/var/task/lxml/__init__.py)\",
\"errorT
I came across a similar problem and I figured out one quick workaround
Using pre-compiled build of lxml
Download https://github.com/shubh2502/aws-lambda-lxml
Inside lxml there are two builds python27 and python36
As per AWS Lambda python version choose either one of them
Inside python27 and python36 there is lxml folder
Zip code with lxml folder and make sure python has the same version
In Case of AWS Lambda layer put lxml folder into this structure -
python/lib/python3.6/site-packages
I spent lots of time in docker and building these stuff, this method was savior for me, I hope this will help you out