BUG - hooks not working on windows 10, when user account name contains non-ascii characters #1711
Comments
please share your configuration and version information as well as the log file |
version information
error information
Yaml
|
could you also share the output of |
appdirs==1.4.4 |
I think you cannot reproduce to issue, because you have python installed in C:\Python39. Try installing it into subdirectory of the C:\Users\john.š. I have tried to install python directly to C:\Python39 (like you did) and the error went away. (I believe you will have to convert encoding of the pre-commit file to UTF-8 too) |
Cool! There's a patch for this in #1713 -- I was able to reproduce after all |
When user account name contains non-ascii characters such as 'š', such that python executable ends up for example in C:\Users\john.š\.cache\pre-commit\repo\py_env-python3.8\Scripts\python.exe, when committing to the git repository following message appears:
An unexpected error has occurred: AssertionError: BUG: expected environment for python to be healthy() immediately after install, please open an issue describing your environment.
PS: fucntion os.path.isfile() in parse_shebang.normexe() returns False, even though the executable exists there and is a file.
The text was updated successfully, but these errors were encountered: