Title: `pip 26.1.1` not functional in venv (no attribute `sys.addaudithook`) · Issue #7956 · RustPython/RustPython · GitHub
Open Graph Title: `pip 26.1.1` not functional in venv (no attribute `sys.addaudithook`) · Issue #7956 · RustPython/RustPython
X Title: `pip 26.1.1` not functional in venv (no attribute `sys.addaudithook`) · Issue #7956 · RustPython/RustPython
Description: Summary If I create a rustpython venv, and then upgrade pip, it can no longer install anything. It works itself to, e.g., print its version: $ pip install -U pip <...> Successfully installed pip-26.1.1 $ pip -V pip 26.1.1 from
Open Graph Description: Summary If I create a rustpython venv, and then upgrade pip, it can no longer install anything. It works itself to, e.g., print its version: $ pip install -U pip <...> Successfully installed pip-26...
X Description: Summary If I create a rustpython venv, and then upgrade pip, it can no longer install anything. It works itself to, e.g., print its version: $ pip install -U pip <...> Successfully installed ...
Opengraph URL: https://github.com/RustPython/RustPython/issues/7956
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`pip 26.1.1` not functional in venv (no attribute `sys.addaudithook`)","articleBody":"## Summary\nIf I create a `rustpython` venv, and then upgrade `pip`, it can no longer install anything.\nIt works itself to, e.g., print its version:\n```\n$ pip install -U pip\n\u003c...\u003e\nSuccessfully installed pip-26.1.1\n$ pip -V\npip 26.1.1 from \u003ctmp\u003e/rustpython3.14t/site-packages/pip (python 3.14)\n```\n\nNote: I am running\n```\nPython 3.14.0.alpha (heads/master:f3b83efce, May 22 2026, 13:11:57)\n[RustPython 0.5.0 with rustc 1.95.0 (59807616e 2026-04-14)]\n```\n\n## Expected\nI can `pip install` stuff.\n\n## Actual\nI can no longer `pip install` stuff:\n```\n$ pip install falcon\nRequirement already satisfied: falcon in ./rustvenv/lib/rustpython3.14t/site-packages (4.2.0)\nERROR: Exception:\nTraceback (most recent call last):\n File \"/tmp/rustvenv/lib/rustpython3.14t/site-packages/pip/_internal/cli/base_command.py\", line 109, in _run_wrapper\n status = _inner_run()\n File \"/tmp/rustvenv/lib/rustpython3.14t/site-packages/pip/_internal/cli/base_command.py\", line 102, in _inner_run\n return self.run(options, args)\n ~~~~~~~~^^^^^^^^^^^^^^^\n File \"/tmp/rustvenv/lib/rustpython3.14t/site-packages/pip/_internal/cli/req_command.py\", line 101, in wrapper\n return func(self, options, args)\n File \"/tmp/rustvenv/lib/rustpython3.14t/site-packages/pip/_internal/commands/install.py\", line 554, in run\n _prevent_further_imports()\n ~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"/tmp/rustvenv/lib/rustpython3.14t/site-packages/pip/_internal/commands/install.py\", line 131, in _prevent_further_imports\n sys.addaudithook(_prevent_import_hook)\n ^^^\nAttributeError: module 'sys' has no attribute 'addaudithook'\n```","author":{"url":"https://github.com/vytas7","@type":"Person","name":"vytas7"},"datePublished":"2026-05-23T10:37:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/7956/RustPython/issues/7956"}
| 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:ffa9887c-79e7-998a-34eb-c8dc1beacf0c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB72:355826:20FE3B:2AFD83:6A5BEBCD |
| html-safe-nonce | 94047a3ef8c025561cd5f0630964bf2bd384426eb3897404e6a802f441b72d7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjcyOjM1NTgyNjoyMEZFM0I6MkFGRDgzOjZBNUJFQkNEIiwidmlzaXRvcl9pZCI6IjgwMDc2MzkzOTM1NzcxNTQwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f31d83db41f79acf4683fc9958197fb9d172d444039fc786ca8c16c0b4ca76b9 |
| hovercard-subject-tag | issue:4507795744 |
| github-keyboard-shortcuts | repository,issues,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/RustPython/RustPython/7956/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2e720a85cdc9b2cbdbc4cca4e460e3cafb1d2da03bd4a8cb4255f1ce34eec770/RustPython/RustPython/issues/7956 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e720a85cdc9b2cbdbc4cca4e460e3cafb1d2da03bd4a8cb4255f1ce34eec770/RustPython/RustPython/issues/7956 |
| og:image:alt | Summary If I create a rustpython venv, and then upgrade pip, it can no longer install anything. It works itself to, e.g., print its version: $ pip install -U pip <...> Successfully installed pip-26... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vytas7 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width