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

Not able to get the script to run properly #8

Open
idlesloth opened this issue Apr 18, 2022 · 0 comments
Open

Not able to get the script to run properly #8

idlesloth opened this issue Apr 18, 2022 · 0 comments

Comments

@idlesloth
Copy link

idlesloth commented Apr 18, 2022

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

@idlesloth idlesloth changed the title Now able to get the script to run Not able to get the script to run properly Apr 18, 2022
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