Traceback (most recent call last):
File "C:\Users\mason\Desktop\UVR5-UI-1.6.1\app.py", line 600, in <module>
with Translate("assets/languages/translation.yaml", placeholder_langs = ["en", "es", "it", "pt", "ms", "id", "ru", "uk", "th", "zh", "ja", "ko", "tr", "hi"]) as lang:
File "C:\Users\mason\Desktop\UVR5-UI-1.6.1\env\lib\contextlib.py", line 142, in exit
next(self.gen)
File "C:\Users\mason\Desktop\UVR5-UI-1.6.1\env\lib\site-packages\gradio_i18n\i18n.py", line 384, in Translate
translation_dict = yaml.safe_load(f)
File "C:\Users\mason\Desktop\UVR5-UI-1.6.1\env\lib\site-packages\yaml\init.py", line 125, in safe_load
return load(stream, SafeLoader)
File "C:\Users\mason\Desktop\UVR5-UI-1.6.1\env\lib\site-packages\yaml\init.py", line 79, in load
loader = Loader(stream)
File "C:\Users\mason\Desktop\UVR5-UI-1.6.1\env\lib\site-packages\yaml\loader.py", line 34, in init
Reader.init(self, stream)
File "C:\Users\mason\Desktop\UVR5-UI-1.6.1\env\lib\site-packages\yaml\reader.py", line 85, in init
self.determine_encoding()
File "C:\Users\mason\Desktop\UVR5-UI-1.6.1\env\lib\site-packages\yaml\reader.py", line 124, in determine_encoding
self.update_raw()
File "C:\Users\mason\Desktop\UVR5-UI-1.6.1\env\lib\site-packages\yaml\reader.py", line 178, in update_raw
data = self.stream.read(size)
File "C:\Users\mason\Desktop\UVR5-UI-1.6.1\env\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 4686: invalid continuation byte
Press any key to continue . . .
can you help
#uvr5 ui error when running
1 messages · Page 1 of 1 (latest)
Oh, that problem. Thanks for lmk
yeah of course!
Have u tried this workaround?
https://github.com/Eddycrack864/UVR5-UI/blob/main/info/troubleshooting.md#1-unicodedecodeerror-charmap-codec-cant-decode-byte-x-in-position-y-character-maps-to-undefined
yes i have
Interesting
Let's try this then:
In UVR5-UI\env\Lib\site-packages\gradio_i18n\i18n.py (line 380) add errors="replace" Like this:
with open(translation, "r", encoding="utf-8", errors="replace") as f: # Force utf-8 encoding
The problem is the Turkish translation, Maybe I'll remove it because it's giving errors and I still don't know why.
If this doesn't works let's remove the turkish translation, I'll guide u
workin on that rn
okke
This worked! Noticed the issue on Github and followed it
Thank you!!!
Nice, ur feedback also helps me to fix that error, cause that guy doesn't reply on issue 😅
Ur welcome!
(while im here, is there some sort of guide for which models to use when? and which ones are best?)
new error to report... any ideas?
I haven't seen that error before, what were you doing when it appeared?
fixed it i just had to reinstall because i accidentally opened the installer instead of the run.bat