self-hosted runner failing while trying to get version
See original GitHub issueDescribe the bug
Getting the following error when running
Version 3.x was not found in the local cache ##[error]Version 3.x with arch x64 not found The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/master/versions-manifest.json
I have tried both v1 and v2 of setup-python and have tried setting a specific version or latest minor like above. I am running an amazon-linux runner and I am wondering if this will only work on Ubuntu. Could you provide some guidance. Thanks
Which version of the action are you using?
-
v1
- [ X ]
v2
- Some other tag (such as
v2.0.1
ormaster
)
Environment
- [ X ] self-hosted
- [ X ] Linux
- Windows
- Mac
If applicable, please specify if you’re using a container Not using containers
Python Versions
Please list all of the effected versions of Python (3.8.2
, etc.)
3.7.7, 3.x
To Reproduce Steps to reproduce the behavior:
- Add setup action step to actions file
- Set Actions file to use self-hosted runner
- Run action
Run/Repo Url Private repo
Screenshots
Additional context The runner is using amazon-linux2 based ami
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:9 (1 by maintainers)
Top GitHub Comments
Officially we only support Python for the environments that are listed out here: https://github.com/actions/virtual-environments#available-environments
We compile Python from source for Ubuntu 1604, 1804 and Mac (10.15), the available versions for download are listed out here: https://github.com/actions/python-versions/blob/master/versions-manifest.json
If you have a local runner with something like Ubuntu 1904, then the
platform_version
will be different so nothing will be found in the manifest and the action will fail with the error you see. Same thing applies to Mac if you’re using something other than 10.15.The fact is it’s not working on an amazon-linux runner is expected and we do not plan on supporting Python for configurations other than what we have in
virtual-environments
.There are two things we can do here
README
(we accept PRs 😃 )virtual-environments
I also can’t run those steps locally with act on mac