setup-python: Version 3.10 with arch x64 not found
Description: Version 3.10 with arch x64 is not found when running on self-hosted runner.
Action version: latest
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version:
3.10, altough it seems like all versions are affected
Repro steps:
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: "pip"
Expected behavior: Version should be fetched correctly.
Actual behavior: The 3.10 version for x64 exists but the error says otherwise.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 18 (9 by maintainers)
Commits related to this issue
- add env variable per issue 401 https://github.com/actions/setup-python/issues/401 — committed to lak67/Homework5-COS397 by hannahyelle 2 years ago
- test: use ubuntu 20.04 instead of latest as the issue in latest - https://github.com/actions/setup-python/issues/401 Signed-off-by: Chen lizhong <lichen@redhat.com> — committed to RedHatInsights/insights-core by chenlizhong 2 years ago
- test: use ubuntu 20.04 instead of latest as the issue in latest (#3608) - https://github.com/actions/setup-python/issues/401 Signed-off-by: Chen lizhong <lichen@redhat.com> — committed to RedHatInsights/insights-core by chenlizhong 2 years ago
- test: use ubuntu 20.04 instead of latest as the issue in latest (#3608) - https://github.com/actions/setup-python/issues/401 Signed-off-by: Chen lizhong <lichen@redhat.com> (cherry picked from commi... — committed to RedHatInsights/insights-core by chenlizhong 2 years ago
- Use ubuntu-20.04 instead of latest Use ubuntu-20.04 to fix the `arch x64 not found` issue [Version 3.10 with arch x64 not found actions/setup-python#401](https://github.com/actions/setup-python/issu... — committed to cyugao/fairscale by cyugao 2 years ago
- Implement _compute_intra_grad_corr_mean for gradient computation (#1095) * Fix gradient accumulation Add ``is_scaled_loss`` flag to support both scaled / unscaled loss Fix ``test_grad_accum`` and... — committed to facebookresearch/fairscale by cyugao 2 years ago
- Use ubuntu-20.04 instead of latest Use ubuntu-20.04 to fix the `arch x64 not found` issue [Version 3.10 with arch x64 not found actions/setup-python#401](actions/setup-python#401) — committed to MerkulovDaniil/merkulovdaniil.github.io by MerkulovDaniil 2 years ago
- https://github.com/actions/setup-python/issues/401 — committed to hussein-awala/airflow by hussein-awala a year ago
- Revert "https://github.com/actions/setup-python/issues/401" This reverts commit f31ddba3e56b019939094fe6559ae5f0eda22d92. — committed to hussein-awala/airflow by hussein-awala a year ago
- Update test.yml Downgrading to python 3.9 since 3.10 literally does not work on the latest ubuntu. See this link if you don't believe it: https://github.com/actions/setup-python/issues/401 — committed to tanmaypardeshi/CSC-510-Project2-TeachersPetBot by ExtremeMachine12 8 months ago
- Fix ghpages python version string (#1286) Similar issue as this: https://github.com/actions/setup-python/issues/401#issuecomment-1848265537 `3.10` gets interpreted as `3.1` when I want it to be `... — committed to lyft/cartography by achantavy 4 months ago
- Update cron.yml https://github.com/actions/setup-python/issues/401 — committed to t-chito/Carrier-Owl by t-chito 4 months ago
The solution is to quote 3.10, i.e.
otherwise it gets interpreted as a floating point number, and 3.10 (or 3.100, for that matter) becomes 3.1.
Answering a few months later, because I had the same issue and searching on google for
"Version 3.1 was not found in the local cache"
has the above post as the first link in the results.@deepankur797
The step works without problem on Ubuntu 20.04
Can you please confirm you created
opt/hostedtoolcache
folder and grant the write permission to the user of the runner on this folder?@BlueskyFR @TechDawg270
It is confirmed the problem relates to Debian boosters
Succees on Ubuntu-20 Fail on Debian 10.12
We need a bit more time to investigate the problem with the specific distro
I am still experiencing the issue. Tried both with the env var mentioned above, and also without
why is this issue closed? It is still not supported for debian even when python versions are available
This is currently failing with Python3.10 and trying to use the latest ubuntu version (which I’m reading is 22.04) from Github-hosted runners. Tried the following:
With v3:
Error:
With v4:
Error:
Edit:
Fixed by using ubuntu-20.04 and specifying my full python version, “3.10.12” instead of “3.10”
@BlueskyFR @TechDawg270
The short story: Debian is not supported, sorry
The only workaround is - either to use Ubuntu for self-hosted machine (any virtualisation works fine) or to install python from the Debian specific repositories.
Long story: The exact reason is the parsing /etc/os-release and extracting VERSION_ID: while we expect one of “18.04”, “20.04” or “22.04” the debian provides “10” and there’s no python matched to this version id.
The worst part is we hardly can fix the code because the python from tool cache is built against the libraries specific to the distribution and there’s no certainty that the python will work the libraries from the other distribution.
Hello @BlueskyFR i am going to close this issue because it seems to be resolved and there’s no other comments so far. Feel free to open new issue or reopen this one in case of any problem
@dsame thanks for the help it is working now. It was an issue created by some misconfig in the .actrc file as it was using the wrong image. It was overriding the ubuntu image using -P flag.
@dsame For me it is failing even on Ubuntu-20.04
Description: Version 3.10 with arch x64 is not found when running on act locally.
Action version: latest
Platform:
Runner type:
Tools version:
3.10, although it seems like all versions are affected
Repro steps: A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.
- name: setup python uses: actions/setup-python@v3.1.2 with: python-version: "3.x" cache: "pip" env: AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
Expected behaviour: The version should be fetched correctly.
Actual behaviour: The 3.10 version for x64 exists but the error says otherwise.