Execution of a python script

Dear all,

I am struggling with an excection of a simple pyhton script. I read several threads but unfortunately I am not finding a solution.
I have a phyton script called “pyze”. This phyton script is to read out several parameters from my Renault account. However, I created a simple butten, set the item to autoupdate=“false”
and created following rule:

rule "RenaultZEService_Zoe_Refresh_server"
	Item RenaultZEServices_Zoe_Refresh changed or
	System started
    executeCommandLine("/usr/local/bin/pyze status --km")


Log file is showing:

2020-05-25 23:14:30.733 [INFO ] [lipse.smarthome.io.net.exec.ExecUtil] - executed commandLine '/usr/local/bin/pyze status --km'

But the script is not excecuting. If I am excecuting this script in a simple terminal every items are correctly updated via REST protocol.

Any clue what I am doing wrong?

BTW: I tried as well with writing “sudo” ahead…

I suppose you could try to find out.
It would be smart to give a timeout, as well.

val results = executeCommandLine("/usr/local/bin/pyze status --km", 10000)
logInfo("results", "results " + results)

HI all. I found the issue. I had to add the openhab -user into sudoers file.