setup-python: Python Version 2.7 with arch x64 not found
Description: I get the error:
Run actions/setup-python@v2
with:
python-version: 2.7
token: ***
Version 2.7 was not found in the local cache
Error: Version 2.7 with arch x64 not found
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
I get this for the first time now, and have not changed any code. It has worked since a long time before.
Action version: v2
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version:
Python 2.7
Repro steps:
In my GitHub workflows file, I have:
- uses: actions/setup-python@v2
with:
python-version: 2.7
Expected behavior: It should work, just like it has in the last year.
Actual behavior: The error above.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 14
- Comments: 18 (4 by maintainers)
Commits related to this issue
- CI: use ubuntu-20.04, for Python 2.7 and 3.6 Fix #1226 https://github.com/actions/setup-python/issues/543 https://github.com/actions/runner-images/issues/6399 — committed to rwth-i6/returnn by albertz 2 years ago
- Use ubuntu 20.04 instead of ubuntu-latest to run tests looks like the setup action does not work correctly with the latest ubuntu runner. See https://github.com/actions/setup-python/issues/543 for mo... — committed to jadolg/rocketchat_API by jadolg 2 years ago
- fix: anchored ubuntu version to support Python 2.7 - See: https://github.com/actions/setup-python/issues/543 - Context: https://github.com/nodejs/build/actions/runs/3519497549/jobs/5899537570 — committed to UlisesGascon/build by UlisesGascon 2 years ago
- Use ubuntu 20.04 instead of ubuntu-latest to run tests looks like the setup action does not work correctly with the latest ubuntu runner. See https://github.com/actions/setup-python/issues/543 for mo... — committed to fangebee/rocketchat_API by jadolg 2 years ago
- Temporary set ubuntu version to 20.04, due to: https://github.com/actions/setup-python/issues/543 — committed to reportportal/agent-python-pytest by HardNorth 2 years ago
- Pin Ubuntu version ubuntu-latest dropped support for the version of Python used in this repo. More info: https://github.com/actions/setup-python/issues/543 — committed to flotwig/TLDR-2 by flotwig 2 years ago
- Remove python 3.6 from test matrix Python 3.6 has reached EOL and trio now requires at least python 3.7. Python 3.6 is also no longer supported on Github Actions for the latest ubuntu version, see ht... — committed to VincentVanlaer/trio-typing by deleted user 2 years ago
- [CI] Makes Python 3.6 run on Ubuntu 20.04 > See actions/setup-python#543 Co-Authored-By: Cris Dywan <cris@twotoasts.de> — committed to HorlogeSkynet/archey4 by deleted user 2 years ago
- [CI] Makes Python 3.6 run on Ubuntu 20.04 > See actions/setup-python#543 Co-Authored-By: Cris Dywan <cris@twotoasts.de> — committed to HorlogeSkynet/archey4 by deleted user 2 years ago
- [CI] Makes Python 3.6 run on Ubuntu 20.04 > See actions/setup-python#543 Co-Authored-By: Cris Dywan <cris@twotoasts.de> — committed to HorlogeSkynet/archey4 by deleted user 2 years ago
- [CI] Runs Python 3.6 on Ubuntu 20.04 and adds Python 3.12 > See actions/setup-python#543 Co-Authored-By: Cris Dywan <cris@twotoasts.de> — committed to HorlogeSkynet/archey4 by deleted user 2 years ago
- [CI] Runs Python 3.6 on Ubuntu 20.04 and adds Python 3.12 > See actions/setup-python#543 Co-Authored-By: Cris Dywan <cris@twotoasts.de> — committed to HorlogeSkynet/archey4 by deleted user 2 years ago
- stick to ubuntu 20 to avoid missing py27 — committed to Monika-After-Story/MonikaModDev by ThePotatoGuy 2 years ago
- Pin Ubuntu version See https://github.com/actions/setup-python/issues/543. — committed to thetic/cpputest by thetic 2 years ago
- Pin Ubuntu version See https://github.com/actions/setup-python/issues/543. Supported versions of GTest depends on Python 2 which went end-of-life in January 2020. — committed to thetic/cpputest by thetic 2 years ago
- Pin Ubuntu version See https://github.com/actions/setup-python/issues/543. Supported versions of GTest depends on Python 2 which went end-of-life in January 2020. — committed to thetic/cpputest by thetic 2 years ago
- ci back to ubuntu latest https://github.com/actions/setup-python/issues/543\#issuecomment-1339016209 — committed to wimglenn/advent-of-code-data by wimglenn 2 years ago
- Hardcode Ubuntu 20.04 in GitHub actions Python 3.6 is not supported on ubuntu-latest, and we need to keep supporting it. See more info at https://github.com/actions/setup-python/issues/543 — committed to knatten/cppquiz by knatten 2 years ago
- [build] drop testing support for Python 3.6 Related to: https://github.com/actions/setup-python/issues/543 — committed to saulpw/visidata by anjakefala 2 years ago
- Use ubuntu 20.04 instead of ubuntu-latest to run tests looks like the setup action does not work correctly with the latest ubuntu runner. See https://github.com/actions/setup-python/issues/543 for mo... — committed to fangebee/rocketchat_API by jadolg 2 years ago
You can see this issue as a feature request then. 😃 Because ideally I would like to run all my other tests on ubuntu-latest, and I have some Python 2.7 and 3.6 tests in there.
For other folks running into this, one of the contributors to my project found a pretty elegant way to deal with it using
matrix
, see https://github.com/os-autoinst/openQA-python-client/pull/40 :nice job @kalikiana !
Hello everyone. We’ve added python 2.7.18 for Ubuntu 22.04. For now I’m going to close the issue.
Workarounds - I changed:
Ubuntu latest tag is changing from ubuntu-20.04 to ubuntu-22.04: https://github.com/actions/runner-images/issues/6399
I noticed, similarly I also get: