elapouya / python-docx-template

Use a docx as a jinja2 template
GNU Lesser General Public License v2.1
1.98k stars 385 forks source link

Lambda Layer docxtpl #429

Closed devneagu closed 2 years ago

devneagu commented 2 years ago

Describe your problem

I'm trying to create an archive with docxtpl library to upload it in order to generate some documents and save them into the s3 cloud.

More details about your problem

Unable to import docxtpl after the layer has been selected.

Provide a test case

Create a docker container. Create a folder pip3 install docxtpl -t ./ zip the archive upload it via aws layer

Screenshots

"errorMessage": "Unable to import module 'lambda_function': No module named 'docxtpl'",

elapouya commented 2 years ago

I will be unable to reproduce your problem as I do not have aws access. But the message you gave is not docxtpl related but more a python configuration problem that's leads to docxtpl module access problem.