Dependency issues #28
Description
Hi @vincentsarago, thanks for your work on this (and other things I use).
I'm trying to install a module for use alongside the lambda layer, following the steps outlined in the respective README section.
I've ran into some issues with dependencies that are available in the docker image (so no issues during build or package) but they are missing in the actual lambda function.
Here's an specific example:
The module I'm installing (replacing mercantile
in your example) depends among other things on pyyaml
. When running pip install I get the corresponding log message:
Requirement already satisfied: pyyaml in /var/lang/lib/python3.7/site-packages ...
and everything works fine locally. But the contents of /var/lang/lib/python3.7/site-packages
don't make it into the zip, and they are not available in the lambda function which includes the layer.
Of course I could just try to find and install all dependencies into /var/task
so they get zipped up. But that seems to be a sub-optimal solution. Any ideas? Apologies if I'm missing something obvious.
Thanks!