Skip to content

Instantly share code, notes, and snippets.

@ssbarnea
Created January 30, 2023 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssbarnea/7cb347f2bc649ab30d7068189a9434ee to your computer and use it in GitHub Desktop.
Save ssbarnea/7cb347f2bc649ab30d7068189a9434ee to your computer and use it in GitHub Desktop.
### version information
```
pre-commit version: 3.0.1
git --version: git version 2.39.1
sys.version:
3.11.1 (main, Dec 23 2022, 09:28:24) [Clang 14.0.0 (clang-1400.0.29.202)]
sys.executable: /Users/ssbarnea/.local/pipx/venvs/pre-commit/bin/python
os.name: posix
sys.platform: darwin
```
### error information
```
An unexpected error has occurred: AssertionError: BUG: expected environment for python to be healthy immediately after install, please open an issue describing your environment
more info:
virtualenv python version did not match created version:
- actual version: <<error retrieving version from /Users/ssbarnea/.cache/pre-commit/repo2mi5ks7l/py_env-python3.11/bin/python>>
- expected version: 3.11.1.final.0
```
```
Traceback (most recent call last):
File "/Users/ssbarnea/.local/pipx/venvs/pre-commit/lib/python3.11/site-packages/pre_commit/error_handler.py", line 73, in error_handler
yield
File "/Users/ssbarnea/.local/pipx/venvs/pre-commit/lib/python3.11/site-packages/pre_commit/main.py", line 394, in main
return run(args.config, store, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ssbarnea/.local/pipx/venvs/pre-commit/lib/python3.11/site-packages/pre_commit/commands/run.py", line 436, in run
install_hook_envs(to_install, store)
File "/Users/ssbarnea/.local/pipx/venvs/pre-commit/lib/python3.11/site-packages/pre_commit/repository.py", line 239, in install_hook_envs
_hook_install(hook)
File "/Users/ssbarnea/.local/pipx/venvs/pre-commit/lib/python3.11/site-packages/pre_commit/repository.py", line 91, in _hook_install
raise AssertionError(
AssertionError: BUG: expected environment for python to be healthy immediately after install, please open an issue describing your environment
more info:
virtualenv python version did not match created version:
- actual version: <<error retrieving version from /Users/ssbarnea/.cache/pre-commit/repo2mi5ks7l/py_env-python3.11/bin/python>>
- expected version: 3.11.1.final.0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment