Page 1 of 1

Python scripts don't run since upgrading to v2025.1

Posted: Tuesday 06 May 2025 9:21
by StratosHF
Hi,

I upgraded from v2024.7 to v2025.1 last night. The upgrade (via the gui) went ok but this morning a few of my tasks didn't run as expected. Looking at the logs I see its related to Python scripts....

Code: Select all

2025-05-06 06:10:02.467 Error: Error executing script command (/home/pi/BedroomLED.py). returned: 256
2025-05-06 06:11:01.483 Error: Error executing script command (/home/pi/FrostWarning.py). returned: 256
2025-05-06 06:20:01.784 Error: Error executing script command (/home/pi/LampsAM.py). returned: 256
As an example the scripts are typically called via an on action...

Code: Select all

script:///home/pi/FrostWarning.py.
Looking at History.txt, there isn't any obvious changes which would cause a problem. The logs from the restart do state...

Code: Select all

2025-05-05 17:47:24.315 Status: PluginSystem: Started, Python version '3.7.3', 1 plugin definitions loaded.
Is it possible that my Python2.7 scripts are now trying to run as Python3 ?

Any thoughts?

Thanks.

Re: Python scripts don't run since upgrading to v2025.1

Posted: Tuesday 06 May 2025 19:57
by waltervl
Could well be, I am surprised python2 scripts even were still running on current environments.

Does the log file mentions anything special when you trigger the on action?

Re: Python scripts don't run since upgrading to v2025.1

Posted: Tuesday 06 May 2025 22:26
by StratosHF
Fixed it!

The issue was due to my json commands using an out of date command...

Code: Select all

/json.htm?type=devices
now needs to be

Code: Select all

/json.htm?type=command&param=getdevices
https://wiki.domoticz.com/Domoticz_API/JSON_URL%27s

All my own fault!