Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error "ValueError: 64 is not a valid ModeColors" no matter what #77

Open
calamity314 opened this issue Dec 21, 2024 · 0 comments

Comments

@calamity314
Copy link

calamity314 commented Dec 21, 2024

I'm trying to make reactive lightning for a single panel backlight, and whenever I try to run the file, I get the following error:

Traceback (most recent call last):
  File "/home/cala/projects/reactivepanel/main.py", line 4, in <module>
    client = OpenRGBClient('127.0.0.1', 6742, 'My client!')
  File "/home/cala/projects/reactivepanel/env/lib/python3.10/site-packages/openrgb/orgb.py", line 388, in __init__
    self.update()
  File "/home/cala/projects/reactivepanel/env/lib/python3.10/site-packages/openrgb/orgb.py", line 576, in update
    self.comms.requestDeviceNum()
  File "/home/cala/projects/reactivepanel/env/lib/python3.10/site-packages/openrgb/network.py", line 214, in requestDeviceNum
    self.read()
  File "/home/cala/projects/reactivepanel/env/lib/python3.10/site-packages/openrgb/network.py", line 116, in read
    self.callback(device_id, packet_type, buff[0])
  File "/home/cala/projects/reactivepanel/env/lib/python3.10/site-packages/openrgb/orgb.py", line 400, in _callback
    self.comms.requestDeviceData(x)
  File "/home/cala/projects/reactivepanel/env/lib/python3.10/site-packages/openrgb/network.py", line 207, in requestDeviceData
    self.read()
  File "/home/cala/projects/reactivepanel/env/lib/python3.10/site-packages/openrgb/network.py", line 137, in read
    self.callback(device_id, packet_type, utils.ControllerData.unpack(data, self._protocol_version))
  File "/home/cala/projects/reactivepanel/env/lib/python3.10/site-packages/openrgb/utils.py", line 601, in unpack
    mode = ModeData.unpack(data, version, x)
  File "/home/cala/projects/reactivepanel/env/lib/python3.10/site-packages/openrgb/utils.py", line 332, in unpack
    color_mode = ModeColors(parse_var('I', data))
  File "/usr/lib/python3.10/enum.py", line 385, in __call__
    return cls.__new__(cls, value)
  File "/usr/lib/python3.10/enum.py", line 710, in __new__
    raise ve_exc
ValueError: 64 is not a valid ModeColors

I have no idea why this is not working, I've tried both code written by myself and code copy-pasted from the documentation. (the error is with the copy-pasted code, I just changed the IP and port to be what I'm actually using)

openrgb-python version: 0.3.3
OpenRGB version: 0.9, commit b5f46e3f1de03595656c682fc2f068b66e735e63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant