-
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
Bug: sam local start-api - AttributeError #7043
Comments
Hey @anand2k24 thanks for raising the issue. It looks like the issue came from docker. Do you have docker properly installed and running? |
thanks for responding, I have podman only, docker not installed\
|
SAM CLI uses Docker SDK under the hood. We cannot guarantee podman is compatible with Docker's API. Can you switch to use docker? |
Docker is paid in windows, only podman is free
|
If podman supports Docker APIs then this should work as well. Looking at the file paths, I assume that you are using a SAM CLI version which is installed through https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html |
Thank you team, I was able to figure out the issue, it is the issue with python docker library(C:\...\Lib\site-packages\docker), if the version is 7.0.0 and above it is working, it's not issue with SAM-CLI Library
After resolving this, another issue would come "mkdir /c: permission denied, check template for potential issue"
For this one alternate given in this link SAM INVOKE FAILS * Issue #5421 * aws/aws-sam-cli * GitHub<#5421>
A work around has to be done for it, if one use windows podman
C:\wsl -d podman-machine-default -e bash -li
$cd /
$sudo ln -s /mnt/c c
|
Thanks for following up with us. The Windows SAM CLI installer we distribute uses For the permission denied issue, we would require some additional information to help diagnose this (ie. providing a template and/or reproducible project), but glad to hear that you found a workaround for the issue you faced. |
Closing the issue, please create a new issue if you encounter any other issues. |
|
Description:
when started this command sam local start-api --port 8080
Steps to reproduce:
Observed result:
Expected result:
it should start without error
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Windows
sam --version
:SAM CLI, version 1.116.0Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: