I have a RPi 4b with the latest version of Raspberry OS running Domoticz 2020.2.
On the Pi, Python2 and Python3 are installed.
I stumbled into a problem because a Python script which was developed in Python3 did not run as a script_time_xxx.py.
Looking into this I discovered that when Domoticz starts a script it is run on Python2 even though I have included the Shebang
Code: Select all
#!/usr/bin/env python3