Android Kodi ssh python script *no such file or directory*
Im trying to run a python script through kodi submenu button which opens a SSH connection to my remote Raspberry Pi and runs a .sh script. However it sems like Kodi cant resolve paths very well.
I have ran this same python script from termux and it runs fine.

Not sure if i have to use xbmc.translatepath. Any kodi legends out there know what im doing wrong?

If theres a better way of doing this im all ears Smile

import subprocess'ssh [email protected] -p 22 -i /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.hyperion/.ssh/id_rsa bash "/home/pi/"', shell=True)

Remote script on Pi

echo  '{ "command": "clearall"}' | nc 19444


ERROR: EXCEPTION Thrown (PythonToCppException) :
-->Python callback/script returned the following error<--- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.OSError'>
Error Contents: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.hyperion/", line 17, in <module>'ssh [email protected] -p 22 -i /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.hyperion/.ssh/id_rsa bash "/home/pi/"', shell=True)
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux- androideabi-android-21/lib/python2.7/", line 523, in call
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux- androideabi-android-21/lib/python2.7/", line 711, in __init__ File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux- androideabi-android-21/lib/python2.7/", line 1343, in _execute_child
OSError: [Errno 2] No such file or directory -->End of Python script error report<--

Messages In This Thread
Kodi ssh python script *no such file or directory* - by bkafi - 2018-12-17, 00:42

Logout Mark Read Team Forum Stats Members Help
Kodi ssh python script *no such file or directory*0
This forum uses Lukasz Tkacz MyBB addons.