martin-opensky / whisper-assistant-vscode

MIT License
13 stars 1 forks source link

Despite installed, "whisper --help" throws exception due to UnicodeEncodeError due to weird character in Whisper's help file #2

Open parsam97 opened 6 months ago

parsam97 commented 6 months ago

This occurs on Windows 10.

unicodeencodeerror: 'charmap' codec can't encode character '\u3002' in position 8681: character maps to

due to this line in the --help file

parser.add_argument("--append_punctuations", type=str, default="\"\'.。,,!!??::”)]}、", hel ...

I fixed mine by going to transcribe.py and removing those characters. I suggest you add some broader character encoding, or somehow ignoring the stdout and simply checking for errors.