Skip to content

sam local invoke doesn't work #2

@CJohnsonLehi

Description

@CJohnsonLehi

I cloned the git repo on windows and on my mac.
Running on Python 3.7.3.

Executing
sam local invoke DeserializeDemoFunction
failed with:

Invoking main.lambda_handler (python3.7)
MyLambdaLayer is a local Layer in the template
Building image...
Requested to skip pulling images ...

Mounting C:\code\github\lambda-layers-demo\deserialize-demo as /var/task:ro,delegated inside runtime container
?[32mSTART RequestId: d31162d0-d9f6-1806-6137-12c472e6542e Version: $LATEST?[0m
[ERROR] Runtime.ImportModuleError: Unable to import module 'main': No module named 'deserialize'
?[32mEND RequestId: d31162d0-d9f6-1806-6137-12c472e6542e?[0m
?[32mREPORT RequestId: d31162d0-d9f6-1806-6137-12c472e6542e     Init Duration: 279.32 ms        Duration: 4.90 ms       Billed Duration: 100 ms Memory Size: 128 MB     Max Memory Used: 32 MB  ?[0m

{"errorType":"Runtime.ImportModuleError","errorMessage":"Unable to import module 'main': No module named 'deserialize'"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions