-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import Python modules while using a SAM image. #6592
Comments
Hi @devmuch, thanks for opening the issue. The
Let us know if you still have questions. |
Thanks for this. I naively assumed it copy the folder contents, but RTFM proves me wrong. :-) |
|
I am unable to import modules in Python.
Steps to reproduce:
sam init
Create a
./sam-app/modules/my_module.py
with the following contents:Modify
./sam-app/app.py
to contain the following:Build the function with
sam build
Run
sam local invoke
Results in:
Observed result:
Expected result:
The function will run.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
The text was updated successfully, but these errors were encountered: