Skip to content
This repository was archived by the owner on Apr 11, 2020. It is now read-only.
This repository was archived by the owner on Apr 11, 2020. It is now read-only.

Dependency issues #28

Open
Open
@valpesendorfer

Description

@valpesendorfer

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions