Skip to content
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 init - OSError #5983

Closed
M56413893478 opened this issue Sep 25, 2023 · 3 comments
Closed

Bug: sam init - OSError #5983

M56413893478 opened this issue Sep 25, 2023 · 3 comments

Comments

@M56413893478
Copy link

Description:

"SamCliError: Cannot find git, was looking at executables: ['git', 'git.cmd', 'git.exe', 'git.bat'] [SamCliFailed]"

Steps to reproduce:

Create Lambda app from command palette.

Observed result:

Expected result:

Hello World template.

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Windows
  2. sam --version: 1.97.0
  3. AWS region: us-east-1
# Paste the output of `sam --info` here

SAM CLI failed (exitcode: 1, expected 0):
Add --debug flag to command you are running

@M56413893478 M56413893478 added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Sep 25, 2023
@mndeveci
Copy link
Contributor

Hi there,

sam init requires Git (https://git-scm.com/) and it looks like it is not available on your machine. Installing Git should resolve this issue, please follow guidelines about how to install Git for your operating system & environment.

Please let us know if you have further questions.

@mndeveci mndeveci added platform/windows area/init sam init and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Sep 26, 2023
@hnnasit
Copy link
Contributor

hnnasit commented Oct 23, 2023

Closing this issue as the PR for gracefully handling the error has been released. Feel free to open a new issue if you are still having issues or have any questions.

@hnnasit hnnasit closed this as completed Oct 23, 2023
@github-actions
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants