Android Kodi ssh python script *no such file or directory*
(2018-12-24, 10:37)bhagat101 Wrote:
(2018-12-17, 00:42)bkafi Wrote: 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<--
 Its not a bigger problem you are facing. There are no. of the solution and you get it easily on Google.

I wanna do that via CoreELEC(LibreELEC). Was anyone successful in executing a script to shut down a NAS via SSH?

Messages In This Thread
RE: Kodi ssh python script *no such file or directory* - by moejoe - 2020-06-18, 11:00

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.