-
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
Hello World, Unable to import module 'app': No module named 'app' #1345
Comments
Have you shared the |
I did share the drives but the mounts failed. Its a docker - VM issue as there are mount errors. Thanks for the tip. |
I'm was having pretty much the same problem on MacOS using docker-toolbox. Docker version 19.03.1, build 74b1e89 The directories seemed to mount because they appeared in my virtualbox. However, the contents of the directory were empty. I logged into my vm and hand mounted my home directory: sudo mount -t vboxsf -o ro /Users /Users And everything seemed to start working. |
Closing this issue as it looks be docker related mounting issues. |
I know this is old thread, but since I could not find much help online or understand what is explained in above thread, putting my two cents. |
To add to this, same thing on linux - if the code is in, for example, |
I was having this same issue on macos. My use case is that I'm listening to changes to python and yaml files and rebuild the app on changes to have a "live reload" type of functionality. My make file is as such:
|
Dear folks, I read through this thread. There is a reference to the fact that on Linux (WSL falls into the detention) , a code must be in /home/{user} and in my case it is, yet the issue persists. The code is located in /home/{user}/sam-app command: 2023-09-15 13:05:01,864 | Code /home/{user}/sam-app/.aws-sam/build/HelloWorldFunction is not a zip/jar file 2023-09-15 13:05:03,880 | Mounting /home/{user}/sam-app/.aws-sam/build/HelloWorldFunction as /var/task:ro,delegated, inside runtime container Any suggestion? |
Description
Trying to follow the tutorial at https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-getting-started-hello-world.html#serverless-getting-started-hello-world-troubleshooting
Steps to reproduce
sam init --runtime python3.6
Observed result
In chrome, opening http://127.0.0.1:3000/hello
no data
In console,
Please provide command output with
--debug
flag set.Expected result
In console, as per tutorial
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 0.10.0Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: