Skip to content

Instantly share code, notes, and snippets.

@ssbarnea
Created January 30, 2023 14:41

Revisions

  1. ssbarnea created this gist Jan 30, 2023.
    46 changes: 46 additions & 0 deletions pre-commit.log
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    ### 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
    ```