actions / setup-python

Set up your GitHub Actions workflow with a specific version of Python
MIT License
1.59k stars 507 forks source link

Error: 'python3.11' runtime is not supported #823

Closed sankansm23 closed 2 months ago

sankansm23 commented 4 months ago

I am getting following error when while using python 3.11 in github action job and i use use GitHub-hosted runner with ubuntu-latest and have tried using setup-python@v3, setup-python@v4, and setup-python@v5

Build Failed Error: 'python3.11' runtime is not supported Error: Process completed with exit code 1.

I tried finding solution in community but could not see what was done to fix it

aparnajyothi-y commented 4 months ago

Hello @mgaitan, Thank you for creating this issue and we will get back to you once we have some feedback on this :)

sankansm23 commented 4 months ago

@aparnajyothi-y It does not work with python3.12. I was running following command when i get this issue sam build --use-container

priya-kinthali commented 3 months ago

Hello @sankansm23 👋, The error is likely related to the AWS SAM CLI's build environment and the Docker container it uses, not the actions/setup-python GitHub Action. I have tried to replicate the issue and Python 3.11 does seem to be set up correctly in GitHub hosted ubuntu latest runner as shown in below screenshot.

Set up Python
priya-kinthali commented 3 months ago

Hello @sankansm23 👋, Just a gentle reminder. As mentioned earlier, Python 3.11 was set up correctly in the actions/setup-python GitHub Action in our environment. Could you please check if the issue persists outside the AWS SAM CLI environment on your end?

priya-kinthali commented 2 months ago

Hello @sankansm23 👋, Just a gentle reminder!

priya-kinthali commented 2 months ago

Hello, Due to inactivity, I'm going to close this issue for now. Please feel free to reopen this issue or create a new one if necessary. Thank you😊