2015-08-13, 22:31
Hi,
I'm new at python development (but have other dev experience) and am currently trying to create a very basic script to experiment with Kodi development. Using Openelec (Kodi v14), on Raspberry Pi.
Script file:
Error:
I run the script by navigating to the directory in Putty and use the following command:
If I run the script using the following command, I don't get any errors, but nothing is happening...
I did a lot of googling but cannot figure out why this is not working. All documentation seems to be saying it should basically work.
What am I doing wrong?
Btw: I upload my file to /storage/scripts and gave the .py-script 755 permissions in my FTP program (FileZilla).
I'm new at python development (but have other dev experience) and am currently trying to create a very basic script to experiment with Kodi development. Using Openelec (Kodi v14), on Raspberry Pi.
Script file:
Code:
import kodi
kodi.executebuiltin("RunPlugin(plugin://plugin.video.youtube)")
Error:
Code:
AttributeError: 'module' object has no attribute 'executebuiltin'
I run the script by navigating to the directory in Putty and use the following command:
Code:
python script.py
If I run the script using the following command, I don't get any errors, but nothing is happening...
Code:
kodi-send -a "RunScript(script.py)"
I did a lot of googling but cannot figure out why this is not working. All documentation seems to be saying it should basically work.
What am I doing wrong?
Btw: I upload my file to /storage/scripts and gave the .py-script 755 permissions in my FTP program (FileZilla).