Made a newbie mess with Python
Posted: Tuesday 30 October 2018 12:43
I wanted to add the Kodi Players hardware on my RPi with Debian and Domoticz V4.9700. So I added it using instructions on https://github.com/dnpwwo/Domoticz-Kodi-Plugin. I got the new hardware and got the 4 devices and an awful lot of errors like "onMessage' failed 'TypeError':'a bytes-like object is required, not 'str''." So I figured I didn't have Python V3.4 or higher. I loggon and entered "python" and I appeared to have Python V2.7.13. Then I added Python 3.7 using the shell script on https://gist.github.com/SeppPenner/6a5a ... 524417761d.
It dit not work, complaining about missing runtime 3.x (if I remember correctly) I installed runtime 3.5 and somewhere in the struggle my Kodi Players hardware was gone. I deleted and installed the plugin again and I got the hardware and 4 devices back. Also the errors came back.
So I have now 3 versions of Python and still the errors. The first 2 errorlines are:
Error: (Kodi woonkamer) ----> Line 148 in /home/pi/domoticz/plugins/Domoticz-Kodi-Plugin/plugin.py, function onMessage
2018-10-30 12:01:38.920 Error: (Kodi woonkamer) 'onMessage' failed 'TypeError':'a bytes-like object is required, not 'str''.
Any ideas?
It dit not work, complaining about missing runtime 3.x (if I remember correctly) I installed runtime 3.5 and somewhere in the struggle my Kodi Players hardware was gone. I deleted and installed the plugin again and I got the hardware and 4 devices back. Also the errors came back.
So I have now 3 versions of Python and still the errors. The first 2 errorlines are:
Error: (Kodi woonkamer) ----> Line 148 in /home/pi/domoticz/plugins/Domoticz-Kodi-Plugin/plugin.py, function onMessage
2018-10-30 12:01:38.920 Error: (Kodi woonkamer) 'onMessage' failed 'TypeError':'a bytes-like object is required, not 'str''.
Any ideas?