Skip to content

python3.11 not supported with amazonlinux2-aarch64-standard:3.0 #662

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

Closed
Rodriguevb opened this issue Aug 7, 2023 · 3 comments
Closed

python3.11 not supported with amazonlinux2-aarch64-standard:3.0 #662

Rodriguevb opened this issue Aug 7, 2023 · 3 comments

Comments

@Rodriguevb
Copy link

Describe the bug
The amazonlinux2-aarch64-standard:3.0 (current latest image version) uses SAM CLI v1.79.0.
However, the latest python version is 3.11 and this version of SAM does not support python3.11.

To Reproduce

buildspec.yml

version: 0.2
phases:
  install:
    runtime-versions:
      python: latest
  build:
    commands:
      - sam --version
      - sam build --template-file template.yml

Logs

[Container] 2023/08/07 09:03:12 Processing environment variables
[Container] 2023/08/07 09:03:12 Resolved 'python' runtime alias 'latest' to '3.11'.
[Container] 2023/08/07 09:03:12 Selecting 'python' runtime version '3.11' based on manual selections...
...
[Container] 2023/08/07 09:03:13 Running command sam --version
SAM CLI, version 1.79.0
... 
Building codeuri: /codebuild/output/src2369554271/src/lambda runtime: python3.11 metadata: {} architecture: arm64 functions: Converter

Build Failed
Error: 'python3.11' runtime is not supported
...

Platform (please complete the following information):

  • OS: Linux ARM, amazonlinux2-aarch64-standard:3.0

Question
How can I force SAM to use the latest version ?
Or can you increase the SAM version used by default?

@purplexed
Copy link

Hey @Rodriguevb ,

This error is not related to the codebuild runtime, but to the sam cli version being outdated. If you'd run pip install --upgrade aws-sam-cli before the sam build that should do the trick.

However, I believe that the ticket shouldn't be closed, as the image should definitely have the SAM CLI updated to be able to support the runtimes the image does.

@mdgm88
Copy link

mdgm88 commented Nov 8, 2023

Any update on this?

@Dylan-AWS
Copy link
Contributor

This issue is addressed by #697

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

No branches or pull requests

4 participants