Closed apolunar closed 3 years ago
The error doesn't pertain to openrgb
, it's a UnicodeDecodeError
, or, the data
that you are trying to parse is not utf-8
. I don't know what your data
is, so can't tell what codec to use.
Thanks for the quick response! I think that even if I did know what codec to use, I wouldn't know what to do with it because the actual error is occurring within OpenRGB itself -
File "C:\Users\[user]\anaconda3\lib\site-packages\openrgb\orgb.py", line 287, in __init__
self.comms.requestDeviceNum()
File "C:\Users\[user]\anaconda3\lib\site-packages\openrgb\network.py", line 188, in requestDeviceNum
self.read()
... And, python throws the error on the first line of the example code provided by the readme-
Traceback (most recent call last):
File "example_code.py", line 4, in <module>
client = OpenRGBClient()
The code that goes on inside of OpenRGBClient() is not really something I have control over. What I do have control over is my rgb devices and how OpenRGB is setup, I'm thinking the error comes from one of those two places as they are the only two places that I can think of where data might be coming in. As you said, the data OpenRGB is trying to parse is not utf-8, but alas I did not provide that data directly through code meaning the solution will probably be figuring out what that data is and how to change it... after all, it got the bad data in some other place. You know what they say, garbage in, garbage out lol
I could be totally wrong with all of this, but these are my thoughts. I'll keep trying to figure this error out, thanks for your help thus far.
See the newly pinned issue (#33)
Feel free to reopen if you are having a different problem.
The below error is generated every time I run the example code given by the readme. I don't know if it's a silly mistake on my part or a problem with the module. Honestly, it's probably the former. Also a screenshot showing the server I have running in OpenRGB and that a client did connect to it.