Platform: Raspberry pi4 Bookworm
Plugin/Hardware: Any python plugin
Description:
All my python plugins fail to work. I have created a workaround found on
https://zigbeefordomoticz.github.io/wik ... alEnv.html
to set up a virtual environment (seems ok intalled).
then i try to use option 2 of updating the service but
vi /etc/systemd/system/domoticz.service yields an empty file.
Option 1 does not render a solution ...
Still my test python fails ...
any help VERY VERY welcome, if nothing works i will have to look for a different Home Automation system ... and i like Domoticz WITH plugins
.....
2025-10-14 15:03:47.420 Error: SE LAN: (SolarEdge_ModbusTCP) failed to load 'plugin.py', Python Path used was '/home/marc/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/:/home/marc/Domoticz_Python_Environment:/home/marc/domoticz:/usr/lib/python311.zip:/usr/lib/python3.11:/usr/lib/python3.11/lib-dynload:/usr/local/lib/python3.11/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.11/dist-packages'.
this is the Option 1 domoticz.sh file (top part that was changed):
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Domoticz Home Automation System"
NAME=domoticz
USERNAME=marc
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
DAEMON=/home/$USERNAME/domoticz/$NAME
DAEMON_ARGS="-daemon"
#DAEMON_ARGS="$DAEMON_ARGS -daemonname $NAME -pidfile $PIDFILE"
DAEMON_ARGS="$DAEMON_ARGS -www 8080"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 443"
#DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"
export PYTHONPATH=/home/marc/Domoticz_Python_Environment:$PYTHONPATH