-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Set-up Python #585
Comments
Hello @Pavansai07784. Thank you for your report. Which version of ubuntu do you use ? Where are your binaries located ? Did you define |
Hi, @dmitry-shibanov Thanks for responding quickly, It is a 64-bit Linux VM, and what do you mean by Binaries here? I haven't specified RUNNER_TOOL_CACHE or AGENT_TOOLSDIRECTORY |
I am seeing a similar error. |
I mean where do you store python versions ? Could you please try to log values for RUNNER_TOOL_CACHE and AGENT_TOOLSDIRECTORY ? |
This is what i am using
|
Hello @Pavansai07784. Could you please try to set AGENT_TOOLSDIRECTORY as |
@dmitry-shibanov Still getting the same error |
Could you please attach logs and error message ? |
|
Did you enable cache functionality ? Could you please run this command on your self-hosted runner |
Its as redhat Linux VM, I have did yum update and yum install -y redhat-lsb-core, Now getting the below error Version 3.8 was not found in the local cache |
Could this be related to this latest Ubuntu 20.04 image bug? I am also getting the same issue, starting this morning. I have not made any changes to any of my workflows, Poetry configuration files, env. etc. Happens attempting EDIT: Also happens if I set versions in my matrix to 3.10 and 3.9 |
I'm no longer getting this error, but I fail to see what might've fixed it (I didn't change anything in my workflows). My images compile now! |
I am getting the same error, also i am not able to find the python version for arm64 in here |
I'm using a
My .python-version
I remove the newline with Error:
|
I am also getting the same error. I am using a self hosted centos7 runner which runs ubuntu container
Error looked like this
|
See actions/setup-python#585 Signed-off-by: Kevin McKenzie <kmckenzi@us.ibm.com>
I have faced the same problem today, is the problem resolved ? |
Hello @KPB98115. For now we're investigating it. Could you please try to use this command |
Hello everyone. Could you please check if you have |
ad@git:~$ ll /etc/lsb-release
-rw-r--r-- 1 root root 104 Mar 14 12:20 /etc/lsb-release
ad@git:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
ad@git:~$ ll /etc/os-release
lrwxrwxrwx 1 root root 21 Mar 14 12:20 /etc/os-release -> ../usr/lib/os-release
ad@git:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal |
I am running into this issue with an Amazon Linux 2023 AMI. According to AWS they won't incluide lsb-release anymore but they are storing the information on
This is the content of NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
SUPPORT_END="2028-03-01" From the logs of the execution it seems like Source: https://docs.aws.amazon.com/linux/al2023/ug/compare-with-al2.html#lsb-release |
No solution to this yet? we're running into the exact same issue. The error we receive is:
Looking into the details of this with
So the strange part here is that it seems to find the version ( This code here seems to use
The permissions on the file are: ls -lach /etc/os-release
lrwxrwxrwx 1 root root 21 Mar 1 12:01 /etc/os-release -> ../usr/lib/os-release
ls -lach /usr/lib/os-release
-rw-r--r-- 1 root root 267 Mar 1 12:01 /usr/lib/os-release So, everything needed for detection is there it seems. However: searching the repo I was unable to find code that would make use of I'll now try switching to catthehacker/ubuntu:act-22.04 which imitates the official Github runner but in general you pbl. want to add some additional support of other operating systems and not assume /edit I can confirm that |
我今天也遇到这个问题了,在我的两个自托管Act Runner上都发生了
这是我的部分action文件
这是我的Act Runner平台信息
现在有什么临时解决方法吗? |
Same here, with Fedora Linux. ❯ lsb_release
LSB Version: n/a ❯ cat /etc/os-release
NAME="Fedora Linux"
VERSION="39 (Server Edition)"
ID=fedora
VERSION_ID=39
VERSION_CODENAME=""
PLATFORM_ID="platform:f39"
PRETTY_NAME="Fedora Linux 39 (Server Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:39"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f39/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=39
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=39
SUPPORT_END=2024-11-12
VARIANT="Server Edition"
VARIANT_ID=server After installing
|
Debug Output from Github Runner on self hosted debian:
|
Hi @Pavansai07784, Apologies for the delayed response. Could you please confirm if the issue is still relevant for you? I have tested from my end and was able to successfully install Python. Please see the attached screenshot for reference. |
Surprised to see still we don't have any solution. We are also running into same issue. Error: The version '3.12.0' with architecture 'x64' was not found for this operating system. Update: This issue occurred in a scenario of docker-in-docker. The way we resolved is to install it with apt commands. |
Hello Everyone, Please note that Python distributions are only available for environments that GitHub Actions hosted runners support. For Further information, you can refer to this document . Linux distributions such as redhat, centos7, Amazon and Debian are not supported by setup-python. Thank you for your understanding. |
Hi @Pavansai07784, |
Hi @Pavansai07784, 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. |
Description:
Version 3.10 was not found in the local cache
Error: Version 3.10 with arch x[6]
Action version:
Latest
Platform:
Runner type:
Tools version:
3.10, I have also tried 3.10.4 I get the same error
Repro steps:
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
Expected behavior:
Version should be fetched correctly.
Actual behavior:
The 3.10 version for x64 exists but the error says otherwise.
The text was updated successfully, but these errors were encountered: