"Black failed to reformat", and weird unicode characters

I use the python-black plugin, and when I try to reformat this pops up:


How can I fix that?
NOTE: The name of my user is in cyrillic characters

I don’t have any personal knowledge of how python-black works, but it looks like you’ve set the binPath config to point at c:\users\...\site-packages\ and that the package is not handling the encoding of the Cyrillic correctly. You should try adding the site-packages\ directory to your PATH and then just using black in binPath.

Just Disable the Package “python-black” and will worth

Install the
pip install black

This fix my “Black fail to refomat” errors.