2018-05-15, 20:08
Hi, friends! Under Krypton this external python script worked well
kodi1_sleep.sh (worked from shell with Leia & Krypton)
Under Leia i see these errors, when python script is execute (kodi-send not worked from bash script)
What is wrong? Thanks!
xml:import os
os.system("/home/vis1/scripts/kodi1_sleep.sh")
kodi1_sleep.sh (worked from shell with Leia & Krypton)
xml:#!/bin/bash
sleep 1
kodi-send --host=127.0.0.1 --port=9777 --action="Stop"
sleep 3
kodi-send --host=127.0.0.1 --port=9777 --action="CECStandby"
Under Leia i see these errors, when python script is execute (kodi-send not worked from bash script)
xml:мая 15 21:59:32 KODI kodi1[22354]: ImportError: No module named xbmcclient
мая 15 21:59:33 KODI kodi1[22354]: Traceback (most recent call last):
мая 15 21:59:33 KODI kodi1[22354]: File "/usr/bin/kodi-send", line 29, in <module>
мая 15 21:59:33 KODI kodi1[22354]: from xbmcclient import *
мая 15 21:59:33 KODI kodi1[22354]: ImportError: No module named xbmcclient
мая 15 21:59:36 KODI kodi1[22354]: Traceback (most recent call last):
мая 15 21:59:36 KODI kodi1[22354]: File "/usr/bin/kodi-send", line 29, in <module>
мая 15 21:59:36 KODI kodi1[22354]: from xbmcclient import *
мая 15 21:59:36 KODI kodi1[22354]: ImportError: No module named xbmcclient
What is wrong? Thanks!