Closed ppagolu closed 1 year ago
Thanks @ppagolu - though I suspect this error is more related to pre-commit
itself and not this hook specifically.
I.e. this error message is not coming from this hook:
AssertionError: BUG: expected environment for python to be healthy immediately after install, please open an issue describing your environment
See these related issues for more info:
Thanks @thekaveman those references helped, yes its a bug with pre-commit specifically virtualenv.
and just for completeness here is what fixed the error for me:
python3 -m pip install virtualenv==20.15.1
as per https://github.com/pre-commit/pre-commit/issues/2336#issuecomment-1194765687
[INFO] Installing environment for https://github.com/compilerla/conventional-pre-commit. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... 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:
pyvenv.cfg does not exist (old virtualenv?)Check the log at /home/ec2-user/.cache/pre-commit/pre-commit.log
version information
error information