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
I can get the script to work when pausing the video but I can't figure out why I'm getting these errors. The script does not work when playing or resuming the video. I have installed Python 3.10 also all four libs installed, colorthief, flask, numpy and pifx==0.0.3. The plex-lifx-webhook-master config file has been configured.
This is the error I'm getting, any help would be really appreciated.
[2022-04-18 03:02:35,196] ERROR in app: Exception on / [POST]
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\flask\app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "C:\Program Files\Python310\lib\site-packages\flask\app.py", line 1525, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Program Files\Python310\lib\site-packages\flask\app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Program Files\Python310\lib\site-packages\flask\app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "C:\Program Files\Python310\Scripts\plex-lifx-webhook-master\plexlifx.py", line 266, in inbound_request
palette = color_thief.get_palette(color_count=num_colors, quality=color_quality)
File "C:\Program Files\Python310\lib\site-packages\colorthief.py", line 77, in get_palette
cmap = MMCQ.quantize(valid_pixels, color_count)
File "C:\Program Files\Python310\lib\site-packages\colorthief.py", line 218, in quantize
raise Exception('Wrong number of max colors when quantize.')
Exception: Wrong number of max colors when quantize.
I can get the script to work when pausing the video but I can't figure out why I'm getting these errors. The script does not work when playing or resuming the video. I have installed Python 3.10 also all four libs installed, colorthief, flask, numpy and pifx==0.0.3. The plex-lifx-webhook-master config file has been configured.
This is the error I'm getting, any help would be really appreciated.
[2022-04-18 03:02:35,196] ERROR in app: Exception on / [POST]
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\flask\app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "C:\Program Files\Python310\lib\site-packages\flask\app.py", line 1525, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Program Files\Python310\lib\site-packages\flask\app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Program Files\Python310\lib\site-packages\flask\app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "C:\Program Files\Python310\Scripts\plex-lifx-webhook-master\plexlifx.py", line 266, in inbound_request
palette = color_thief.get_palette(color_count=num_colors, quality=color_quality)
File "C:\Program Files\Python310\lib\site-packages\colorthief.py", line 77, in get_palette
cmap = MMCQ.quantize(valid_pixels, color_count)
File "C:\Program Files\Python310\lib\site-packages\colorthief.py", line 218, in quantize
raise Exception('Wrong number of max colors when quantize.')
Exception: Wrong number of max colors when quantize.
[LOGGER]
LogFile: plex_lifx_webhook.log
[SERVER]
FlaskPort: 5000
[PLEX]
IgnorePlayerUUIDs: ""
LocalPlayersOnly: true
[LIFX]
APIKey: " "
Brightness: 0.1
Duration: 1.0
NumColors: 4
ColorQuality: 5
DefaultPlayTheme: Playback
DefaultPauseTheme: Pause
Lights: LEDS
The text was updated successfully, but these errors were encountered: