Title: setup-python fails on self-hosted macOS: newer darwin Python assets require interactive sudo (installer -pkg) · Issue #1388 · actions/setup-python · GitHub
Open Graph Title: setup-python fails on self-hosted macOS: newer darwin Python assets require interactive sudo (installer -pkg) · Issue #1388 · actions/setup-python
X Title: setup-python fails on self-hosted macOS: newer darwin Python assets require interactive sudo (installer -pkg) · Issue #1388 · actions/setup-python
Description: Problem On a self-hosted macOS runner, actions/setup-python@v7 fails for Python versions whose darwin asset installs via sudo installer -pkg (e.g. 3.12.10): Version 3.12 was not found in the local cache Download from .../python-3.12.10-d...
Open Graph Description: Problem On a self-hosted macOS runner, actions/setup-python@v7 fails for Python versions whose darwin asset installs via sudo installer -pkg (e.g. 3.12.10): Version 3.12 was not found in the local ...
X Description: Problem On a self-hosted macOS runner, actions/setup-python@v7 fails for Python versions whose darwin asset installs via sudo installer -pkg (e.g. 3.12.10): Version 3.12 was not found in the local ...
Opengraph URL: https://github.com/actions/setup-python/issues/1388
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"setup-python fails on self-hosted macOS: newer darwin Python assets require interactive sudo (installer -pkg)","articleBody":"## Problem\n\nOn a self-hosted macOS runner, `actions/setup-python@v7` fails for Python versions whose darwin asset installs via `sudo installer -pkg` (e.g. 3.12.10):\n\n```\nVersion 3.12 was not found in the local cache\nDownload from .../python-3.12.10-darwin-arm64.tar.gz\nExecute installation script\nCheck if Python hostedtoolcache folder exist...\nInstall Python binaries from prebuilt package\n##[error]sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper\n```\n\nThe asset's `setup.sh` (generated from actions/python-versions `installers/macos-pkg-setup-template.sh`, line 50) runs:\n\n```sh\nsudo installer -pkg $PYTHON_PKG_NAME ... -target /\n```\n\nThe runner service user has no TTY, so any host without passwordless sudo for `/usr/sbin/installer` fails. Older assets (e.g. 3.11.9) shipped plain directory trees and installed unprivileged.\n\n## Suggestion\n\nDocument the sudo requirement and/or fail with an explicit message; a relocatable (unprivileged) darwin asset layout would remove the requirement entirely.\n\nRelated: #914, #1387.\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)","author":{"url":"https://github.com/dahai80","@type":"Person","name":"dahai80"},"datePublished":"2026-11-14T00:40:23Z","url":"https://github.com/actions/setup-python/issues/1388"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:086ee339-944d-1d29-1a6c-46d7ca2a4ec0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EE2E:153FFA:A16B15:D4433B:6B0261A8 |
| html-safe-nonce | 3650ce791b1a8bbf436bef83f05725d1bbad5e2704421a0f03e245f5cdcca287 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTJFOjE1M0ZGQTpBMTZCMTU6RDQ0MzNCOjZCMDI2MUE4IiwidmlzaXRvcl9pZCI6IjE0MTgxNzkzNTY2MTgwMjMzMzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9a3aa32f6c8d18d011eccf4a203c8af8d871004b723a6df5a716ceeed57b80d2 |
| hovercard-subject-tag | issue:6382744828 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-python/1388/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e4b0cd8b055271cd9dcc3dcaa2e06d4aa629fb381b9dffa1b47225c005b6c5e/actions/setup-python/issues/1388 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e4b0cd8b055271cd9dcc3dcaa2e06d4aa629fb381b9dffa1b47225c005b6c5e/actions/setup-python/issues/1388 |
| og:image:alt | Problem On a self-hosted macOS runner, actions/setup-python@v7 fails for Python versions whose darwin asset installs via sudo installer -pkg (e.g. 3.12.10): Version 3.12 was not found in the local ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dahai80 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/setup-python git https://github.com/actions/setup-python.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 192625525 |
| octolytics-dimension-repository_nwo | actions/setup-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 192625525 |
| octolytics-dimension-repository_network_root_nwo | actions/setup-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width