8000 [macOS] Python 3.8 requires Rosetta even for arm64 build · Issue #1134 · actions/setup-python · GitHub 8000
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[macOS] Python 3.8 requires Rosetta even for arm64 build #1134
Open
@gsnedders

Description

@gsnedders

Description:

Installing Python 3.8 on macOS 15.5 on Apple Silicon fails when Rosetta is not installed.

It downloads from https://github.com/actions/python-versions/releases/download/3.8.10-8879978422/python-3.8.10-darwin-arm64.tar.gz which then fails with:

Execute installation script
  Check if Python hostedtoolcache folder exist...
  Creating Python hostedtoolcache folder...
  Install Python binaries from prebuilt package
  Error: installer: This package requires Rosetta 2 to be installed.
                  Please install Rosetta 2 and then try again.
                      `sudo softwareupdate --install-rosetta`
  
  installer: Error - Python can’t be installed on this computer.

This is surprising because this is the universal2 build from Python.org… which shows that really the problem is the upstream builds.

Action version:
'actions/setup-python@v5.0.0' (SHA:0a5c61591373683505ea898e09a3ea4f39ef2b9c)

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
All Python versions released prior to 1 January 2022. (i.e., Python < 3.9.10 and Python 3.10.0 and Python 3.10.1)

Repro steps:
Given a runner on a macOS device, on Apple Silicon, without Rosetta installed:

- uses: actions/setup-python@v5.0.0
  with:
    python-version: '3.8'

Expected behavior:
I expected the found arm64 package to install without Rosetta.

Actual behavior:
See https://github.com/web-platform-tests/wpt/actions/runs/15570768473/job/43920472123.

As above:

Execute installation script
  Check if Python hostedtoolcache folder exist...
  Creating Python hostedtoolcache folder...
  Install Python binaries from prebuilt package
  Error: installer: This package requires Rosetta 2 to be installed.
                  Please install Rosetta 2 and then try again.
                      `sudo softwareupdate --install-rosetta`
  
  installer: Error - Python can’t be installed on this computer.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0