v17 [MacOS X] - hue.ambilight addon broken in Kodi v17
#1
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<--
Reply
#2
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.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
Thanks. Actually, I just found a branch of the addon that supports v17:
https://github.com/mpolednik/script.kodi.hue.ambilight
Reply

Logout Mark Read Team Forum Stats Members Help
[MacOS X] - hue.ambilight addon broken in Kodi v170