You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Hello @albertz. I think it's an expected behaviour because the action does not provide python 2.7 for Ubuntu 22.04. You can try to specify a previous version of Ubuntu to set up python 2.7.
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.
Reacted by Stefan Venz, Omar Sandoval, Cedric van Putten, knuth, Avram Lubkin, k, Tonye Jack, Michael Dawson-Haggerty and Samuel FORESTIER
@dmitry-shibanov 3.6 seems to be quite commonly requested as well - it's the system Python version in several long-term support Linux distros. Can that be added too?
Activity
albertz commentedon Nov 18, 2022
I noticed, similarly I also get:
albertz commentedon Nov 18, 2022
Also when I use
setup-python@v4, I get the same error.albertz commentedon Nov 18, 2022
With Python 3.7, it seems to be fine.
albertz commentedon Nov 18, 2022
This is with Ubuntu 22.04 in GitHub Actions.
dmitry-shibanov commentedon Nov 18, 2022
Hello @albertz. I think it's an expected behaviour because the action does not provide python 2.7 for Ubuntu 22.04. You can try to specify a previous version of Ubuntu to set up python 2.7.
albertz commentedon Nov 18, 2022
Ah, has that changed? We use
runs-on: ubuntu-latestin GitHub.albertz commentedon Nov 18, 2022
According to https://github.com/actions/runner-images, ubuntu-latest should be Ubuntu 20.04? So why do we get Ubuntu 22.04?
dmitry-shibanov commentedon Nov 18, 2022
Ubuntu latest tag is changing from ubuntu-20.04 to ubuntu-22.04: actions/runner-images#6399
albertz commentedon Nov 18, 2022
I see.
Is there any plan to include Python 2.7 and Python 3.6 also for Ubuntu 22.04?
dmitry-shibanov commentedon Nov 18, 2022
For now we do not have any plans to include it.
CI: use ubuntu-20.04, for Python 2.7 and 3.6
albertz commentedon Nov 18, 2022
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.
17 remaining items
Pin Ubuntu version
Pin Ubuntu version
dmitry-shibanov commentedon Dec 6, 2022
Hello everyone. We've added python 2.7.18 for Ubuntu 22.04. For now I'm going to close the issue.
ci back to ubuntu latest https://github.com/actions/setup-python/issu…
AdamWill commentedon Dec 6, 2022
@dmitry-shibanov 3.6 seems to be quite commonly requested as well - it's the system Python version in several long-term support Linux distros. Can that be added too?
rouilj commentedon Dec 6, 2022
@AdamWill I opened #561 for that.
Hardcode Ubuntu 20.04 in GitHub actions
[build] drop testing support for Python 3.6
Use ubuntu 20.04 instead of ubuntu-latest to run tests
Disable dev_appserver.py usage
Refine test matrices
Refine test matrices
Temporary set ubuntu version to 20.04, due to: actions/setup-python#543