Skip to content

Import of local modules from the main module doesn't work when invoking  #31

@Ghopper21

Description

@Ghopper21

I have a lambda that imports a local module (i.e. another Python file in the same folder as the main lambda module, as opposed to a pip installed package). Doing a lambda deploy works, and the resulting lambda on AWS works also. However, when I do lambda invoke for local testing, I get an ImportError: No module named foo where foo is the module I'm trying to import.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions