Kodi Community Forum

Full Version: [MacOS X] - hue.ambilight addon broken in Kodi v17
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just upgraded from Kodi v16 to v17 RC3. Looking good, but the script.kodi.hue.ambilight addon no longer works.

22:17:59.080 T:123145506697216 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'module' object has no attribute 'CAPTURE_FLAG_CONTINUOUS'
Traceback (most recent call last):
File "/Users/macmini/Library/Application Support/Kodi/addons/script.kodi.hue.ambilight/default.py", line 104, in onPlayBackStarted
state_changed("started", self.duration)
File "/Users/macmini/Library/Application Support/Kodi/addons/script.kodi.hue.ambilight/default.py", line 425, in state_changed
capture.capture(int(capture_width), int(capture_height), xbmc.CAPTURE_FLAG_CONTINUOUS)
AttributeError: 'module' object has no attribute 'CAPTURE_FLAG_CONTINUOUS'
-->End of Python script error report<--
22:17:59.080 T:123145506697216 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'xbmc.RenderCapture' object has no attribute 'waitForCaptureStateChangeEvent'
Traceback (most recent call last):
File "/Users/macmini/Library/Application Support/Kodi/addons/script.kodi.hue.ambilight/default.py", line 467, in <module>
run()
File "/Users/macmini/Library/Application Support/Kodi/addons/script.kodi.hue.ambilight/default.py", line 320, in run
if capture.waitForCaptureStateChangeEvent(200):
AttributeError: 'xbmc.RenderCapture' object has no attribute 'waitForCaptureStateChangeEvent'
-->End of Python script error report<--
Tell the addon author he needs to adapt to the new api. He can have a look at the official boblight addon to see how to do it.
Thanks. Actually, I just found a branch of the addon that supports v17:
https://github.com/mpolednik/script.kodi.hue.ambilight