You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def parse_string(data: Iterator[int]) -> str:
'''
Parses a string based on a size.
:param data: the raw data to parse
:returns: A parsed string
'''
length = parse_var('H', data)
return parse_var(f'{length}s', data).decode().rstrip('\x00')
After some more testing and setting up Ubuntu in WSL there it is the very same error.
So i started to fiddle around with python and openrgb.
Tried your sample code and get the following error:
PS C:\Users\Knuto> & C:/Users/Knuto/AppData/Local/Programs/Python/Python313/python.exe c:/Users/Knuto/Documents/python_scripts/OpenRGB_Test.py Traceback (most recent call last): File "c:\Users\Knuto\Documents\python_scripts\OpenRGB_Test.py", line 4, in <module> client = OpenRGBClient('127.0.0.1', 6742, 'pyclient') File "C:\Users\Knuto\AppData\Local\Programs\Python\Python313\Lib\site-packages\openrgb\orgb.py", line 388, in __init__ self.update() ~~~~~~~~~~~^^ File "C:\Users\Knuto\AppData\Local\Programs\Python\Python313\Lib\site-packages\openrgb\orgb.py", line 580, in update self.update_profiles() ~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\Knuto\AppData\Local\Programs\Python\Python313\Lib\site-packages\openrgb\orgb.py", line 588, in update_profiles self.comms.requestProfileList() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\Knuto\AppData\Local\Programs\Python\Python313\Lib\site-packages\openrgb\network.py", line 221, in requestProfileList self.read() ~~~~~~~~~^^ File "C:\Users\Knuto\AppData\Local\Programs\Python\Python313\Lib\site-packages\openrgb\network.py", line 169, in read self.callback(device_id, packet_type, utils.parse_list(utils.Profile, idata, self._protocol_version)) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Knuto\AppData\Local\Programs\Python\Python313\Lib\site-packages\openrgb\utils.py", line 148, in parse_list things.append(kind.unpack(data, version, x)) # type: ignore ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "C:\Users\Knuto\AppData\Local\Programs\Python\Python313\Lib\site-packages\openrgb\utils.py", line 681, in unpack s = parse_string(data) File "C:\Users\Knuto\AppData\Local\Programs\Python\Python313\Lib\site-packages\openrgb\utils.py", line 123, in parse_string return parse_var(f'{length}s', data).decode().rstrip('\x00') ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 2: invalid start byte
How can i avoid this? Running OpenRGB latest.
The text was updated successfully, but these errors were encountered: