You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'"}
The text was updated successfully, but these errors were encountered:
CJohnsonLehi
changed the title
sam package doesn't work on windows
sam local invoke doesn't work on windows
Feb 27, 2020
CJohnsonLehi
changed the title
sam local invoke doesn't work on windows
sam local invoke doesn't work
Feb 27, 2020
In your logs it says [ERROR] Runtime.ImportModuleError: Unable to import module 'main': No module named 'deserialize'
This means sam isn't able to locate the main.py file, make sure you gave the right path. Double-check the spelling of the 'deserialize' as well
I cloned the git repo on windows and on my mac.
Running on Python 3.7.3.
Executing
sam local invoke DeserializeDemoFunction
failed with:
The text was updated successfully, but these errors were encountered: