actions / setup-python

Set up your GitHub Actions workflow with a specific version of Python
MIT License
1.65k stars 529 forks source link

The version '3.11.6' with architecture 'x64' was not found for this operating system #913

Closed ddomnicraj closed 4 weeks ago

ddomnicraj commented 1 month ago

Description: The version '3.11.6' with architecture 'x64' was not found for this operating system. Operating System - RHEL9. NAME="Red Hat Enterprise Linux" VERSION="9.4 (Plow)" ID="rhel" ID_LIKE="fedora" VERSION_ID="9.4" PLATFORM_ID="platform:el9" PRETTY_NAME="Red Hat Enterprise Linux 9.4 (Plow)" ANSI_COLOR="0;31" LOGO="fedora-logo-icon" CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos"

Action version: Run actions/setup-python@v5 with: python-version: 3.11.6

Platform:

Runner type:

Tools version:

3.11.6

Actual behavior: Installed versions Version 3.11.6 was not found in the local cache Error: The version '3.11.6' with architecture 'x64' was not found for this operating system. The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

mahabaleshwars commented 1 month ago

Hello @ddomnicraj,

Thank you for creating this issue. We will investigate it and provide feedback as soon as we have some updates.

priya-kinthali commented 1 month ago

Hello @ddomnicraj 👋, Thank you for bringing this issue to our attention. The manifest lists Python 3.11.6 for Ubuntu 20.04 and 22.04, but not explicitly for RHEL9. A potential workaround to resolve this issue is to add the following step in your workflow:

- name: Create /etc/lsb-release
  run: |
    echo "DISTRIB_RELEASE=22.04" | sudo tee -a /etc/lsb-release

This workaround helps with the identification process, aligning it with an Ubuntu release that has the desired Python version available. Please let us know if this resolves the issue. If you have any further questions or need additional assistance, feel free to reach out.

jsim-rode commented 1 month ago

I have the same issue. I have found other similar past issues such as #544 - the issue here appeared to be using ubuntu-latest instead of a fixed version. However, fixing Ubuntu to version 22.04 or 20.04 did not work for me.

jsim-rode commented 1 month ago

Hello @ddomnicraj 👋, Thank you for bringing this issue to our attention. The manifest lists Python 3.11.6 for Ubuntu 20.04 and 22.04, but not explicitly for RHEL9. A potential workaround to resolve this issue is to add the following step in your workflow:

- name: Create /etc/lsb-release
  run: |
    echo "DISTRIB_RELEASE=22.04" | sudo tee -a /etc/lsb-release

This workaround helps with the identification process, aligning it with an Ubuntu release that has the desired Python version available. Please let us know if this resolves the issue. If you have any further questions or need additional assistance, feel free to reach out.

This got me a little bit further, but I got the following error message:

[Test Python/test]   ❗  ::error::./python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./python)%0A./python: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /tmp/092b8afe-ebbd-47d0-b27a-ddec8da45c33/lib/libpython3.10.so.1.0)%0A./python: /lib/x866
_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /tmp/092b8afe-ebbd-47d0-b27a-ddec8da45c33/lib/libpython3.10.so.1.0)%0A./python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /tmp/092b8afe-ebbd-47d0-b27a-ddec8da45c33/lib/libpython3.10.so.1.0)%0A./python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /tmp/092b8afe-ebbd-47d0-b27a-ddec8da45c33/lib/libpython3.10.so.1.0)

This is on a self hosted runner using Act using ubuntu-22.04 for Python version 3.10, but it has not worked for versions 3.11, 3.12.

It looks like the image is missing some dependencies for Python?

jsim-rode commented 1 month ago

Popping in again to say that my tests are working on the Github hosted runners. I've been using Act to simulate my actions locally, and I've noticed that no matter what version I specify, its using Debian Buster - so I think my issue specifically is an issue with Act.

priya-kinthali commented 4 weeks ago

We appreciate your input. Kindly note that our support for Python distributions is limited to the operating systems available on our GitHub-hosted runners. For more details, please refer to this document. Unfortunately, we do not offer support for another Linux distributions. We are proceeding to close this ticket. Thank you for your understanding.