René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6b389257-e9e3-dcce-efd3-4ee362331365
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDE70:2C69FC:27A1730:3443E7D:6B026E65
html-safe-nonce69ba06c58b389a19f20cf49ea67bdc5ce69e7651a703e22a3845884bf7100380
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTcwOjJDNjlGQzoyN0ExNzMwOjM0NDNFN0Q6NkIwMjZFNjUiLCJ2aXNpdG9yX2lkIjoiNDU2ODU1NzUyMjAwNDM3MzA5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace758ce0eb1bc1adf0a306fb0eff5a95350208a3231984e86725ef9bfb031cc27
hovercard-subject-tagissue:4318179721
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-python/1306/issue_layout
twitter:imagehttps://opengraph.githubassets.com/119fae3dd354754d4cf04cc6a26bce84bfd45d955957262e18f5f1d00eb98ede/actions/setup-python/issues/1306
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/119fae3dd354754d4cf04cc6a26bce84bfd45d955957262e18f5f1d00eb98ede/actions/setup-python/issues/1306
og:image:altDescription: 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamednwillia-work
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/actions/setup-python git https://github.com/actions/setup-python.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id192625525
octolytics-dimension-repository_nwoactions/setup-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id192625525
octolytics-dimension-repository_network_root_nwoactions/setup-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/actions/setup-python/issues/1306#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F1306
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F1306
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=actions%2Fsetup-python
Reloadhttps://github.com/actions/setup-python/issues/1306
Reloadhttps://github.com/actions/setup-python/issues/1306
Reloadhttps://github.com/actions/setup-python/issues/1306
actionshttps://github.com/actions
setup-pythonhttps://github.com/actions/setup-python
Codehttps://github.com/actions/setup-python
Issues37 (37)https://github.com/actions/setup-python/issues
Pull requests22 (22)https://github.com/actions/setup-python/pulls
Actionshttps://github.com/actions/setup-python/actions
Projectshttps://github.com/actions/setup-python/projects
Security and qualityhttps://github.com/actions/setup-python/security
Insightshttps://github.com/actions/setup-python/insights
https://github.com/actions/setup-python
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1306
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1306
MacOS self hosted runner using sudo to install Python?https://github.com/actions/setup-python/issues/1306#top
https://github.com/v-mahabaleshwars
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/dnwillia-work
dnwillia-workhttps://github.com/dnwillia-work
on Apr 23, 2026https://github.com/actions/setup-python/issues/1306#issue-4318179721
https://private-user-images.githubusercontent.com/18702052/582891518-3e11a0f1-d13b-4b2d-9522-1e77541bd4c0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUzMjE3NDUsIm5iZiI6MTc5NTMyMTQ0NSwicGF0aCI6Ii8xODcwMjA1Mi81ODI4OTE1MTgtM2UxMWEwZjEtZDEzYi00YjJkLTk1MjItMWU3NzU0MWJkNGMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIyVDA0MjQwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBjYTVhZWVjYWMyYmU0MDEzZjQ4OWQ0ZjYxZjNhNTk4N2IzNmIzMTg3Mzc3MDgzZGUyM2NhMzdjZDAxN2E3MTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.ogTb4gQmFtOSdLefL1apGHeumeIyom02k8EzR3rEUU8
#1301https://github.com/actions/setup-python/issues/1301
dnwillia-workhttps://github.com/dnwillia-work
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
needs triagehttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Apr 23, 2026https://github.com/actions/setup-python/issues/1306#event-24809493076
https://github.com/v-priyagupta108
v-priyagupta108https://github.com/v-priyagupta108
on Apr 24, 2026https://github.com/actions/setup-python/issues/1306#issuecomment-4311520801
@dnwillia-workhttps://github.com/dnwillia-work
v-priyagupta108https://github.com/v-priyagupta108
needs triagehttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Apr 24, 2026https://github.com/actions/setup-python/issues/1306#event-24828152840
https://github.com/dnwillia-work
dnwillia-workhttps://github.com/dnwillia-work
on Apr 24, 2026https://github.com/actions/setup-python/issues/1306#issuecomment-4313475796
v-mahabaleshwarshttps://github.com/v-mahabaleshwars
on Jun 23, 2026https://github.com/actions/setup-python/issues/1306#event-27075474649
https://github.com/WKBae
WKBaehttps://github.com/WKBae
on Jun 23, 2026https://github.com/actions/setup-python/issues/1306#issuecomment-4779084302
installers/macos-pkg-setup-template.sh:50 in actions/python-versionshttps://github.com/actions/python-versions/blob/d9fbd68ec28305bdba9bcd542e67c23aed8973a8/installers/macos-pkg-setup-template.sh#L50
https://github.com/v-mahabaleshwars
v-mahabaleshwarshttps://github.com/v-mahabaleshwars
on Jul 2, 2026https://github.com/actions/setup-python/issues/1306#issuecomment-4865206556
@dnwillia-workhttps://github.com/dnwillia-work
Using setup-python with a self-hosted runner.https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#using-setup-python-with-a-self-hosted-runner
#760https://github.com/actions/setup-python/issues/760
https://github.com/v-mahabaleshwars
v-mahabaleshwarshttps://github.com/v-mahabaleshwars
on Jul 15, 2026https://github.com/actions/setup-python/issues/1306#issuecomment-4983134190
@dnwillia-workhttps://github.com/dnwillia-work
https://github.com/v-mahabaleshwars
v-mahabaleshwarshttps://github.com/v-mahabaleshwars
on Jul 23, 2026https://github.com/actions/setup-python/issues/1306#issuecomment-5053767175
@dnwillia-workhttps://github.com/dnwillia-work
https://github.com/v-mahabaleshwars
v-mahabaleshwarshttps://github.com/v-mahabaleshwars
on Aug 3, 2026https://github.com/actions/setup-python/issues/1306#issuecomment-5161806113
@dnwillia-workhttps://github.com/dnwillia-work
v-mahabaleshwarshttps://github.com/v-mahabaleshwars
completedhttps://github.com/actions/setup-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 3, 2026https://github.com/actions/setup-python/issues/1306#event-28865203863
Sign up for freehttps://github.com/signup?return_to=https://github.com/actions/setup-python/issues/1306
Sign in to commenthttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1306
v-mahabaleshwarshttps://github.com/v-mahabaleshwars
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.