[GH-ISSUE #2053] Python with architecture 'arm64' was not found for Ubuntu #986

Closed
opened 2026-03-01 21:47:57 +03:00 by kerem · 5 comments
Owner

Originally created by @fareshan on GitHub (Oct 18, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/2053

Bug report info

act version:            0.2.52
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 8
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        /var/run/docker.sock
        $HOME/.docker/run/docker.sock
Config files:           
        /Users/fareshantous/.actrc:
                -P ubuntu-latest=catthehacker/ubuntu:act-latest
                -P ubuntu-22.04=catthehacker/ubuntu:act-22.04
                -P ubuntu-20.04=catthehacker/ubuntu:act-20.04
                -P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
        Go version:            go1.20.8
        Module path:           github.com/nektos/act
        Main version:          (devel)
        Main path:             github.com/nektos/act
        Main checksum:         
        Build settings:
                -buildmode:           exe
                -compiler:            gc
                -ldflags:             -s -w -X main.version=0.2.52 -X main.commit=44ea01c2097eaad1596f4dafd6ec84872bd00402 -X main.date=2023-10-01T02:15:30Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               arm64
                GOOS:                 darwin
                vcs:                  git
                vcs.revision:         44ea01c2097eaad1596f4dafd6ec84872bd00402
                vcs.time:             2023-10-01T02:15:05Z
                vcs.modified:         false
Docker Engine:
        Engine version:        24.0.6
        Engine runtime:        runc
        Cgroup version:        2
        Cgroup driver:         cgroupfs
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Docker Desktop
        OS type:               linux
        OS version:            
        OS arch:               aarch64
        OS kernel:             6.4.16-linuxkit
        OS CPU:                8
        OS memory:             7851 MB
        Security options:
                name=seccomp,profile=unconfined
                name=cgroupns

Command used with act

act -j ci-workflow

Describe issue

I get this error :
The version '3.11.5%0A' with architecture 'arm64' was not found for Ubuntu 22.04.%0AThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

I tried different versions of Python and Ubuntu with the same result.

I have an apple M1 chip.

No response

Workflow content

---
name: Top-level CI
on:
  workflow_dispatch:
  pull_request:
  push:
    branches: main  # Comment this line if you want to test the CI before opening a PR

jobs:
  ci-global:
    runs-on: ubuntu-22.04
    timeout-minutes: 10

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Setup Python
        uses: actions/setup-python@v4
        timeout-minutes: 5
        with:
          python-version-file: .python-version
          cache: 'pip'
          cache-dependency-path: |
            pip-requirements.txt
            dev-requirements.txt

      - name: Install Python dependencies
        run: |
          pip install -r pip-requirements.txt
          pip install -r dev-requirements.txt

      # in order to test the template as well, we create a temporary library in the CI
      - name: Create library with template
        run: |
          cookiecutter --no-input templates/pylibrary --output-dir libs/
          git add libs/library_name  # So that checks below apply to generated library

      - name: Format Python imports
        run: |
          isort --check-only $(git ls-files "*.py")

      - name: Format Python
        run: |
          black --check $(git ls-files "*.py")

      - name: Lint Python
        run: |
          flake8 $(git ls-files "*.py")

      # Are all public symbols documented? (see top-level pyproject.toml configuration)
      - name: Lint Python doc
        run: |
          pylint $(git ls-files "*.py")

Relevant log output

[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.6.10 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.6.9 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.6.8 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.6.7 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.5.10 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.5.9 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.5.4 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.4.10 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.4.4 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.3.7 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.3.5 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.2.5 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.1.4 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::check 3.0.1 satisfies 3.11.5%0A
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   💬  ::debug::OS Name: Ubuntu, Version: 22.04
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   ❗  ::error::The version '3.11.5%0A' with architecture 'arm64' was not found for Ubuntu 22.04.%0AThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template]   ❌  Failure - Main Setup Python
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] exitcode '1': failure
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] Loading revision from git directory
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] Found revision: ab77e7f2f337c6264959ed1a66b5a6606d245fb3
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] HEAD points to 'ab77e7f2f337c6264959ed1a66b5a6606d245fb3'
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] using github ref: refs/heads/main
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] Found revision: ab77e7f2f337c6264959ed1a66b5a6606d245fb3
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] Loading revision from git directory
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] Found revision: ab77e7f2f337c6264959ed1a66b5a6606d245fb3
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] HEAD points to 'ab77e7f2f337c6264959ed1a66b5a6606d245fb3'
[ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] using github ref: refs/heads/main

Additional information

Chip : Apple M1
OS : Ventura 13.4.1

Originally created by @fareshan on GitHub (Oct 18, 2023). Original GitHub issue: https://github.com/nektos/act/issues/2053 ### Bug report info ```plain text act version: 0.2.52 GOOS: darwin GOARCH: arm64 NumCPU: 8 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock $HOME/.docker/run/docker.sock Config files: /Users/fareshantous/.actrc: -P ubuntu-latest=catthehacker/ubuntu:act-latest -P ubuntu-22.04=catthehacker/ubuntu:act-22.04 -P ubuntu-20.04=catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=catthehacker/ubuntu:act-18.04 Build info: Go version: go1.20.8 Module path: github.com/nektos/act Main version: (devel) Main path: github.com/nektos/act Main checksum: Build settings: -buildmode: exe -compiler: gc -ldflags: -s -w -X main.version=0.2.52 -X main.commit=44ea01c2097eaad1596f4dafd6ec84872bd00402 -X main.date=2023-10-01T02:15:30Z -X main.builtBy=goreleaser CGO_ENABLED: 0 GOARCH: arm64 GOOS: darwin vcs: git vcs.revision: 44ea01c2097eaad1596f4dafd6ec84872bd00402 vcs.time: 2023-10-01T02:15:05Z vcs.modified: false Docker Engine: Engine version: 24.0.6 Engine runtime: runc Cgroup version: 2 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Docker Desktop OS type: linux OS version: OS arch: aarch64 OS kernel: 6.4.16-linuxkit OS CPU: 8 OS memory: 7851 MB Security options: name=seccomp,profile=unconfined name=cgroupns ``` ### Command used with act ```sh act -j ci-workflow ``` ### Describe issue I get this error : The version '3.11.5%0A' with architecture 'arm64' was not found for Ubuntu 22.04.%0AThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json I tried different versions of Python and Ubuntu with the same result. I have an apple M1 chip. ### Link to GitHub repository _No response_ ### Workflow content ```yml --- name: Top-level CI on: workflow_dispatch: pull_request: push: branches: main # Comment this line if you want to test the CI before opening a PR jobs: ci-global: runs-on: ubuntu-22.04 timeout-minutes: 10 steps: - name: Checkout uses: actions/checkout@v3 - name: Setup Python uses: actions/setup-python@v4 timeout-minutes: 5 with: python-version-file: .python-version cache: 'pip' cache-dependency-path: | pip-requirements.txt dev-requirements.txt - name: Install Python dependencies run: | pip install -r pip-requirements.txt pip install -r dev-requirements.txt # in order to test the template as well, we create a temporary library in the CI - name: Create library with template run: | cookiecutter --no-input templates/pylibrary --output-dir libs/ git add libs/library_name # So that checks below apply to generated library - name: Format Python imports run: | isort --check-only $(git ls-files "*.py") - name: Format Python run: | black --check $(git ls-files "*.py") - name: Lint Python run: | flake8 $(git ls-files "*.py") # Are all public symbols documented? (see top-level pyproject.toml configuration) - name: Lint Python doc run: | pylint $(git ls-files "*.py") ``` ### Relevant log output ```sh [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.6.10 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.6.9 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.6.8 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.6.7 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.5.10 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.5.9 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.5.4 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.4.10 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.4.4 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.3.7 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.3.5 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.2.5 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.1.4 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::check 3.0.1 satisfies 3.11.5%0A [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] 💬 ::debug::OS Name: Ubuntu, Version: 22.04 [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] ❗ ::error::The version '3.11.5%0A' with architecture 'arm64' was not found for Ubuntu 22.04.%0AThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] ❌ Failure - Main Setup Python [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] exitcode '1': failure [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] Loading revision from git directory [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] Found revision: ab77e7f2f337c6264959ed1a66b5a6606d245fb3 [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] HEAD points to 'ab77e7f2f337c6264959ed1a66b5a6606d245fb3' [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] using github ref: refs/heads/main [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] Found revision: ab77e7f2f337c6264959ed1a66b5a6606d245fb3 [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] Loading revision from git directory [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] Found revision: ab77e7f2f337c6264959ed1a66b5a6606d245fb3 [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] HEAD points to 'ab77e7f2f337c6264959ed1a66b5a6606d245fb3' [ci-libs-activity-area-streamlit/Reusable Python library CI/local-ci-py-template] [DEBUG] using github ref: refs/heads/main ``` ### Additional information Chip : Apple M1 OS : Ventura 13.4.1
kerem 2026-03-01 21:47:57 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@Ancient123 commented on GitHub (Oct 18, 2023):

I think this problem might possibly be related to this bug. ( ::error::The version '3.11.5%0A' is very curious)
https://github.com/actions/setup-python/pull/628

Try removing the newline from the end of your .python-version file and see if the issue goes away.

<!-- gh-comment-id:1769587786 --> @Ancient123 commented on GitHub (Oct 18, 2023): I think this problem might possibly be related to this bug. ( `::error::The version '3.11.5%0A' ` is very curious) https://github.com/actions/setup-python/pull/628 Try removing the newline from the end of your `.python-version` file and see if the issue goes away.
Author
Owner

@fareshan commented on GitHub (Oct 19, 2023):

Thanks @Ancient123 , it fixes a part of the issue but it still does not find the 3.11.5 version. Now I get ::error::The version '3.11.5' with architecture 'arm64' was not found for Ubuntu 22.04.%0AThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

<!-- gh-comment-id:1770233358 --> @fareshan commented on GitHub (Oct 19, 2023): Thanks @Ancient123 , it fixes a part of the issue but it still does not find the 3.11.5 version. Now I get `::error::The version '3.11.5' with architecture 'arm64' was not found for Ubuntu 22.04.%0AThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json`
Author
Owner

@TimidRobot commented on GitHub (Oct 24, 2023):

On Apple M1 Pro running macOS Sonoma 14.0 (23A344).

I have (https://github.com/creativecommons/ccos-scripts/tree/main/.github/workflows):

    - name: Install Python 3.11
      uses: actions/setup-python@v4
      with:
        python-version: '3.11'

and receive the error message excerpt:

❗  ::error::The version '3.11' with architecture 'arm64' was not found for
    Ubuntu 22.04.%0AThe list of all available versions can be found here:
    https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

unfortunately, https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json does not contain 3.11 for linux/arm64 and act refuses to honor --container-architecture linux/x64:

Error: failed to create container: 'Error response from daemon: image with
       reference ghcr.io/catthehacker/ubuntu:act-latest was found but does not
       match the specified platform: wanted linux/x64, actual: linux/arm64'
<!-- gh-comment-id:1777234269 --> @TimidRobot commented on GitHub (Oct 24, 2023): On Apple M1 Pro running macOS Sonoma 14.0 (23A344). I have (https://github.com/creativecommons/ccos-scripts/tree/main/.github/workflows): ```yaml - name: Install Python 3.11 uses: actions/setup-python@v4 with: python-version: '3.11' ``` and receive the error message excerpt: ``` ❗ ::error::The version '3.11' with architecture 'arm64' was not found for Ubuntu 22.04.%0AThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json ``` unfortunately, https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json does not contain 3.11 for linux/arm64 and act refuses to honor `--container-architecture linux/x64`: ``` Error: failed to create container: 'Error response from daemon: image with reference ghcr.io/catthehacker/ubuntu:act-latest was found but does not match the specified platform: wanted linux/x64, actual: linux/arm64' ```
Author
Owner

@ChristopherHX commented on GitHub (Oct 24, 2023):

--container-architecture linux/x64

FYI x64 is windows slang use --container-architecture linux/amd64

No docker refuses not act.

<!-- gh-comment-id:1777316402 --> @ChristopherHX commented on GitHub (Oct 24, 2023): `--container-architecture linux/x64` FYI x64 is windows slang use `--container-architecture linux/amd64` No docker refuses not act.
Author
Owner

@fareshan commented on GitHub (Oct 24, 2023):

Thanks to your comments, I understood that I had to add --container-architecture linux/amd64 to solve my issue

<!-- gh-comment-id:1777797622 --> @fareshan commented on GitHub (Oct 24, 2023): Thanks to your comments, I understood that I had to add `--container-architecture linux/amd64` to solve my issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#986
No description provided.