Title: PIP_ROOT_USER_ACTION=ignore ignored: pip still issues error messages about running it as root · Issue #930 · actions/setup-python · GitHub
Open Graph Title: PIP_ROOT_USER_ACTION=ignore ignored: pip still issues error messages about running it as root · Issue #930 · actions/setup-python
X Title: PIP_ROOT_USER_ACTION=ignore ignored: pip still issues error messages about running it as root · Issue #930 · actions/setup-python
Description: Description: setup-action@v5 and python-version: 3.11 leads to pip's warnings about running as root, which should have been suppressed by the install script on self-hosted runner and GHES 3.12.8. Action version: @v5 Platform: Ubuntu macO...
Open Graph Description: Description: setup-action@v5 and python-version: 3.11 leads to pip's warnings about running as root, which should have been suppressed by the install script on self-hosted runner and GHES 3.12.8. A...
X Description: Description: setup-action@v5 and python-version: 3.11 leads to pip's warnings about running as root, which should have been suppressed by the install script on self-hosted runner and GHES 3.12....
Opengraph URL: https://github.com/actions/setup-python/issues/930
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PIP_ROOT_USER_ACTION=ignore ignored: pip still issues error messages about running it as root","articleBody":"**Description:**\r\nsetup-action@v5 and python-version: 3.11 leads to pip's warnings about running as root, which should have been suppressed by [the install script](https://github.com/actions/python-versions/blob/main/installers/nix-setup-template.sh) on self-hosted runner and GHES 3.12.8.\r\n\r\n**Action version:**\r\n@v5\r\n\r\n**Platform:**\r\n- [x] Ubuntu\r\n- [ ] macOS\r\n- [ ] Windows\r\n\r\n**Runner type:**\r\n- [ ] Hosted\r\n- [x] Self-hosted\r\n\r\n**Tools version:**\r\npython 3.11 (3.11.9)\r\n\r\n**Repro steps:** \r\n\r\n1. job running under an ubuntu:jammy container image, as root (without 'options: --user ...)\r\n2. setup-python step like so:\r\n```\r\n - name: Set up python\r\n uses: actions/setup-python@v5\r\n with:\r\n python-version: '3.11'\r\n```\r\n\r\n**Expected behavior:**\r\nNo warnings, since the [the install script](https://github.com/actions/python-versions/blob/main/installers/nix-setup-template.sh) seems to properly export PIP_ROOT_USER_ACTION=ignore.\r\n\r\n**Actual behavior:**\r\npip throws the known errors (warnings?) about running it as root:\r\n\r\n```\r\nError: WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behavior with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\r\n Error: WARNING: The directory '/github/home/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.\r\n```\r\n\r\nThis is related to https://github.com/actions/setup-python/issues/513, which, although initially opened as a feature request and closed as such, is still receiving updates from people impacted by the same problem.\r\n\r\n","author":{"url":"https://github.com/RoFz","@type":"Person","name":"RoFz"},"datePublished":"2024-08-28T15:35:58Z","url":"https://github.com/actions/setup-python/issues/930"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:777fbf67-02ec-2f67-8612-a3083f94373a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD42:7B817:8C8063:B9C0A1:6AF84703 |
| html-safe-nonce | af60b1417b98bf08596aed1c66056d359a9b38a180d6ba6773f1698d2693d51b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDQyOjdCODE3OjhDODA2MzpCOUMwQTE6NkFGODQ3MDMiLCJ2aXNpdG9yX2lkIjoiNTM4MjUwNDk3NzY1NjIwMzAxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f9eb046912bdc06542154e237146ed9bc44e048b8da75f8ed1daeb73ed794f23 |
| hovercard-subject-tag | issue:2492439613 |
| 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/930/issue_layout |
| twitter:image | https://opengraph.githubassets.com/46f4a7fede3d1316ed40548fd5b7171ea4cd7eed4892680bc28890cbc7c1c7b3/actions/setup-python/issues/930 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/46f4a7fede3d1316ed40548fd5b7171ea4cd7eed4892680bc28890cbc7c1c7b3/actions/setup-python/issues/930 |
| og:image:alt | Description: setup-action@v5 and python-version: 3.11 leads to pip's warnings about running as root, which should have been suppressed by the install script on self-hosted runner and GHES 3.12.8. A... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RoFz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db |
| 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 | 653be32ff5c755082a4db662491bfbbcfc9112c1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width