Title: MacOS self hosted runner using sudo to install Python? · Issue #1306 · actions/setup-python · GitHub
Open Graph Title: MacOS self hosted runner using sudo to install Python? · Issue #1306 · actions/setup-python
X Title: MacOS self hosted runner using sudo to install Python? · Issue #1306 · actions/setup-python
Description: Description: I'm using setup-python@v5 on a MacOS self hosted runner and when configuring a Python interpreter not previously cached already I'm getting this: So it's trying to use sudo and interactively asking me for a password to creat...
Open Graph Description: Description: I'm using setup-python@v5 on a MacOS self hosted runner and when configuring a Python interpreter not previously cached already I'm getting this: So it's trying to use sudo and interac...
X Description: Description: I'm using setup-python@v5 on a MacOS self hosted runner and when configuring a Python interpreter not previously cached already I'm getting this: So it's trying to use sudo...
Opengraph URL: https://github.com/actions/setup-python/issues/1306
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MacOS self hosted runner using sudo to install Python?","articleBody":"\u003c!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->\n\u003c!--- Before opening up a new bug report, please make sure to check for similar existing issues -->\n\n**Description:**\nI'm using setup-python@v5 on a MacOS self hosted runner and when configuring a Python interpreter not previously cached already I'm getting this:\n\n\u003cimg width=\"1278\" height=\"354\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/3e11a0f1-d13b-4b2d-9522-1e77541bd4c0\" />\n\nSo it's trying to use sudo and interactively asking me for a password to create the new version. I have the cache directory configured properly with write permissions as described in the documentation:\n\n```\ndnwillia@snps-wcvmpdkkvosy Python % pwd\n/Users/runner/hostedtoolcache/Python\ndnwillia@snps-wcvmpdkkvosy Python % ls -al\ntotal 0\ndrwxr-xr-x 4 dnwillia staff 128 Apr 23 14:49 ./\ndrwxr-xr-x 3 dnwillia staff 96 Apr 23 13:27 ../\ndrwxr-xr-x 4 dnwillia staff 128 Apr 23 14:42 3.10.11/\ndrwxr-xr-x 4 dnwillia staff 128 Apr 23 14:49 3.13.13/\n```\n\nI managed to get 3.13 installing by interactively starting the runner and typing in the password manually when the action was executed. This allowed things to proceed correctly after the 3.13.13 area was created.\n\nLooking at the issues this kind of smells like #1301 too. The symlinks are created in my case though once I type a password.\n\n**Action version:**\nv5\n\n**Platform:**\n- [ ] Ubuntu\n- [x] macOS\n- [ ] Windows\n\n**Runner type:**\n- [ ] Hosted\n- [x] Self-hosted\n\n**Tools version:**\nSee above, Python 3.13.\n\n**Repro steps:** \nJust create a basic action using setup-python@v5 to install a Python interpreter.\n\n**Expected behavior:**\nThe interpreter installs correctly.\n\n**Actual behavior:**\nThe interpreter does not get installed and the workflow stops execution.","author":{"url":"https://github.com/dnwillia-work","@type":"Person","name":"dnwillia-work"},"datePublished":"2026-04-23T18:59:11Z","url":"https://github.com/actions/setup-python/issues/1306"}
| 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:6b389257-e9e3-dcce-efd3-4ee362331365 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE70:2C69FC:27A1730:3443E7D:6B026E65 |
| html-safe-nonce | 69ba06c58b389a19f20cf49ea67bdc5ce69e7651a703e22a3845884bf7100380 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTcwOjJDNjlGQzoyN0ExNzMwOjM0NDNFN0Q6NkIwMjZFNjUiLCJ2aXNpdG9yX2lkIjoiNDU2ODU1NzUyMjAwNDM3MzA5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e758ce0eb1bc1adf0a306fb0eff5a95350208a3231984e86725ef9bfb031cc27 |
| hovercard-subject-tag | issue:4318179721 |
| 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/1306/issue_layout |
| twitter:image | https://opengraph.githubassets.com/119fae3dd354754d4cf04cc6a26bce84bfd45d955957262e18f5f1d00eb98ede/actions/setup-python/issues/1306 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/119fae3dd354754d4cf04cc6a26bce84bfd45d955957262e18f5f1d00eb98ede/actions/setup-python/issues/1306 |
| og:image:alt | Description: I'm using setup-python@v5 on a MacOS self hosted runner and when configuring a Python interpreter not previously cached already I'm getting this: So it's trying to use sudo and interac... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dnwillia-work |
| 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