rule "Run"
when
Item Run received command ON
then
val String answer = executeCommandLine("python3 /etc/openhab2/scripts/openstuder-examples-python/cli/sicli.py localhost 'read xcom.xt1.3000'", 5000)
logInfo("Result=", answer)
end
Answer should be a string like:
xcom.xt1.3000 = 50.625
OH 2.5 is really old now. IIRC you need to replace spaces between command line arguments with @@.
Beyond that, the error is coming from your Python script so . Add some logging to your Python script, modify it to handle the read xcom.xt1.3000 as a single command line argument (that’s what happens when you pass it in quotes like that).
Try running it with those arguments from the command line using the openhab user.
Same with @@ (chown root:root but chmod=777)
val String answer = executeCommandLine(“/etc/openhab2/scripts/openstuder-examples-python/cli/./sicli@@localhost@@‘read xcom.xt1.3000’”, 5000)