script.kodi.hue.ambilight icon indicating copy to clipboard operation
script.kodi.hue.ambilight copied to clipboard

exception.UnicodeEncodeError

Open jaimouest opened this issue 7 years ago • 1 comments

Hi, can you help me with this error :

(PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.UnicodeEncodeError'> Error Contents: 'ascii' codec can't encode character u'\xe9' in position 5: ordinal not in range(128) Traceback (most recent call last): File "/home/osmc/.kodi/addons/script.kodi.hue.ambilight/default.py", line 313, in hue = Hue(settings, args) File "/home/osmc/.kodi/addons/script.kodi.hue.ambilight/default.py", line 169, in init self.update_controllers() File "/home/osmc/.kodi/addons/script.kodi.hue.ambilight/default.py", line 227, in update_controllers self.static_controller, File "/home/osmc/.kodi/addons/script.kodi.hue.ambilight/resources/lib/lights.py", line 211, in repr return ('<{} {}>'.format(self.class.name, self.lights)) File "/home/osmc/.kodi/addons/script.kodi.hue.ambilight/resources/lib/lights.py", line 96, in repr self.name, self.light_id, self.hue, self.sat, self.bri, self.on)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 5: ordinal not in range(128) -->End of Python script error report<-- 13:12:39.606 T:1695556352 INFO: Python script stopped

Thanks,

jaimouest avatar Jun 01 '18 11:06 jaimouest

Ok, I found the problem: no accent in the name of Hue bulbs. So problem is solved or need to improve code ?

jaimouest avatar Aug 26 '18 17:08 jaimouest