Skip to content
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

Python Installation Failure on ARM Architecture #167

Closed
leiicamundi opened this issue Mar 1, 2024 · 0 comments · Fixed by #168
Closed

Python Installation Failure on ARM Architecture #167

leiicamundi opened this issue Mar 1, 2024 · 0 comments · Fixed by #168
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@leiicamundi
Copy link
Contributor

leiicamundi commented Mar 1, 2024

Problem

Encountered a Python installation failure when using AWS ARM runners for self-hosted workflows.

Description

While configuring self-hosted runners, I opted to use AWS ARM runners scheduled on arm64 nodes.

However, during the setup process, I encountered a Python installation failure with the following error:

The version '3.12' with architecture 'arm64' was not found for Ubuntu 20.04.

Solution

The recommended solution is to use deadsnakes for ARM, as demonstrated in the following workflow snippet:

- name: Install Python3 (ubuntu-arm install)
  uses: deadsnakes/[email protected]
  # actions/setup-python doesn't yet support ARM, see https://github.com/actions/setup-python/issues/108#issuecomment-1756948951
  if: ${{ matrix.os == 'ubuntu-arm' }}

Note: This solution is currently the only available option until official ARM support for Linux is provided by actions/setup-python. Refer to Issue #108 for ongoing discussions on ARM support.

Impact

This Python installation issue is particularly noticeable when using AWS ARM runners for self-hosted workflows, we also need to test it on arm runners.

@leiicamundi leiicamundi added bug Something isn't working enhancement New feature or request labels Mar 1, 2024
@leiicamundi leiicamundi self-assigned this Mar 1, 2024
leiicamundi added a commit that referenced this issue Mar 4, 2024
closes #167
implements workaround for installing python on ubuntu arm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant