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 - AttributeError #6645

Closed
ckanner opened this issue Feb 5, 2024 · 2 comments
Closed

Bug: sam init - AttributeError #6645

ckanner opened this issue Feb 5, 2024 · 2 comments
Labels
area/init sam init blocked/close-if-inactive Blocked for >14 days with no response, will be closed if still inactive after 7 days

Comments

@ckanner
Copy link

ckanner commented Feb 5, 2024

Description:

When I init a project, it occurs errors.
image

Steps to reproduce:

Observed result:

Expected result:

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

  1. OS: Mac m3
  2. sam --version: SAM CLI, version 1.108.0
  3. AWS region:
{
  "version": "1.108.0",
  "system": {
    "python": "3.8.13",
    "os": "macOS-14.1-arm64-arm-64bit"
  },
  "additional_dependencies": {
    "docker_engine": "25.0.2",
    "aws_cdk": "Not available",
    "terraform": "Not available"
  },
  "available_beta_feature_env_vars": [
    "SAM_CLI_BETA_FEATURES",
    "SAM_CLI_BETA_BUILD_PERFORMANCE",
    "SAM_CLI_BETA_TERRAFORM_SUPPORT",
    "SAM_CLI_BETA_RUST_CARGO_LAMBDA"
  ]
}

Add --debug flag to command you are running

@ckanner ckanner added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Feb 5, 2024
@mndeveci
Copy link
Contributor

mndeveci commented Feb 6, 2024

Hi there,

It seems like this samples repository is out of date, it needs to update its cookiecutter definition with latest cookiecutter version.

Rust templates are also available with https://github.com/aws/aws-sam-cli-app-templates/. Can you just run sam init and select the Rust template from there?

❯ sam init

You can preselect a particular runtime or package type when using the `sam init` experience.
Call `sam init --help` to learn more.

Which template source would you like to use?
	1 - AWS Quick Start Templates
	2 - Custom Template Location
Choice: 1

Choose an AWS Quick Start application template
	1 - Hello World Example
	2 - Data processing
	3 - Hello World Example with Powertools for AWS Lambda
	4 - Multi-step workflow
	5 - Scheduled task
	6 - Standalone function
	7 - Serverless API
	8 - Infrastructure event management
	9 - Lambda Response Streaming
	10 - Serverless Connector Hello World Example
	11 - Multi-step workflow with Connectors
	12 - GraphQLApi Hello World Example
	13 - Full Stack
	14 - Lambda EFS example
	15 - Hello World Example With Powertools for AWS Lambda
	16 - DynamoDB Example
	17 - Machine Learning
Template: 1

Use the most popular runtime and package type? (Python and zip) [y/N]: n

Which runtime would you like to use?
	1 - aot.dotnet7 (provided.al2)
	2 - dotnet6
	3 - go1.x
	4 - go (provided.al2)
	5 - go (provided.al2023)
	6 - graalvm.java11 (provided.al2)
	7 - graalvm.java17 (provided.al2)
	8 - java21
	9 - java17
	10 - java11
	11 - java8.al2
	12 - java8
	13 - nodejs20.x
	14 - nodejs18.x
	15 - nodejs16.x
	16 - python3.9
	17 - python3.8
	18 - python3.12
	19 - python3.11
	20 - python3.10
	21 - ruby3.2
	22 - ruby2.7
	23 - rust (provided.al2)
	24 - rust (provided.al2023)

@mndeveci mndeveci added area/init sam init and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Feb 6, 2024
@hawflau hawflau added the blocked/close-if-inactive Blocked for >14 days with no response, will be closed if still inactive after 7 days label Feb 12, 2024
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
Labels
area/init sam init blocked/close-if-inactive Blocked for >14 days with no response, will be closed if still inactive after 7 days
Projects
None yet
Development

No branches or pull requests

4 participants