Solved Import serial
#1
Hi all,

I've written a service add-on for my existing XBMC 13.2 installation, which allows me to control my LG TV from within XBMC - such as switching it on/off, changing input, volume, picture mode (it has a habit of switching out of 1:1 pixel mode)

All was working fine with 13.2, but I've just installed 14.0 and the script is failing!


Quote:17:29:14 T:9520 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named serial
Traceback (most recent call last):
File "C:\Users\Media\AppData\Roaming\Kodi\addons\script.lgtv.rs232.control\service.py", line 9, in <module>
import serial
ImportError: No module named serial

I'm guessing the "serial" Python library has been removed or superceded? Can anyone help, please?


Cheers!
Reply
#2
you need to add it as dependency in addon.xml if it's a separate addon module
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#3
Thanks - I'd forgotten I'd created an additional addon module wrapping "pyserial" - by adding that as a dependency, it's working fine.

Huge thanks for your very quick response, and for pointing me in the correct direction Smile


Cheers!
Reply

Logout Mark Read Team Forum Stats Members Help
Import serial0