2025.2, bookworm on pi and plugins failing (no working work around found)

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
Musky
Posts: 5
Joined: Thursday 21 March 2019 18:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Contact:

2025.2, bookworm on pi and plugins failing (no working work around found)

Post by Musky »

Version: 2025.2
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
User avatar
waltervl
Posts: 6689
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: 2025.2, bookworm on pi and plugins failing (no working work around found)

Post by waltervl »

Try the file /etc/init.d/domoticz.sh to modify the PYTHONPATH. Stop the domoticz service first.
After modification and restarting the service you should be able to see the PYTHONPATH shown in the domoticz log.

Edit: And you have to reinstall all the python modules for all plugins with for example:

Code: Select all

python3 -m pip install -r requirements.txt --upgrade -t /home/marc/Domoticz_Python_Environment
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Musky
Posts: 5
Joined: Thursday 21 March 2019 18:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Contact:

Re: 2025.2, bookworm on pi and plugins failing (no working work around found)

Post by Musky »

Thanks, that will be some work :-) ... will report when done ;-), the python version upgrade also causes some fall out from current plugins (pymodbus for instance) ... but anyhow many thanks!
Post Reply

Who is online

Users browsing this forum: gmarchionni and 1 guest