Page 1 of 1

Update breaks Z4D

Posted: Monday 22 September 2025 23:01
by hyeronimo
Hi,

After trying to update Z4D from the web interface (first stable 7, then tried rc from de cl), it gives me some errors and it is not starting any more. I tried to create the Virtual environment folder but every time in trying to install the requirements I get an error:

from OpenSSL.crypto import (
File "/usr/local/lib/python3.9/dist-packages/OpenSSL/crypto.py", line 945, in <module>
utils.deprecated(
TypeError: deprecated() got an unexpected keyword argument 'name'

Any idea on what to do? I tried the upgrade on a fresh install and it also broke Z4D. This time with a working UI, but with a message 'Backend error, unknown error'

Best regards,
J

Re: Update breaks Z4D

Posted: Tuesday 23 September 2025 9:43
by Rik60
hyeronimo wrote: Monday 22 September 2025 23:01 Hi,

After trying to update Z4D from the web interface (first stable 7, then tried rc from de cl), it gives me some errors and it is not starting any more. I tried to create the Virtual environment folder but every time in trying to install the requirements I get an error:

from OpenSSL.crypto import (
File "/usr/local/lib/python3.9/dist-packages/OpenSSL/crypto.py", line 945, in <module>
utils.deprecated(
TypeError: deprecated() got an unexpected keyword argument 'name'

Any idea on what to do? I tried the upgrade on a fresh install and it also broke Z4D. This time with a working UI, but with a message 'Backend error, unknown error'

Best regards,
J
Hi J,
What os are you running, Bullseye or Bookworm? I tried a Bullseye to Bookworm upgrade first, that was failing during the requirements. Then i installed Z4D on a fresh Bookworm, following the wiki gave me no problems. Have you editted also the domoticz.sh file if you are using Bookworm, see wiki

Re: Update breaks Z4D

Posted: Tuesday 23 September 2025 20:18
by hyeronimo
Thanks for your reply!
The fresh install was for research purposes only. I have indeed edited the domoticz.sh file
My production system is (was) Version: 2024.4 (build 15910).dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Mar 20 2025, 22:21:41) [GCC 10.2.1 20210110]. I was never able to upgrade to the latest domoticz version.
I currently have 551 devices of which about 30 main devices are from Z4D, including my TRV's ,sockets, human presence senors and temphums.
So it will not be easy to start over again. I am trying but it will be a lot of work I guess.
I believe something is wrong with the Z4D update. maybe it only works with recent linux versions? The fresh install I used was from July.

Re: Update breaks Z4D

Posted: Tuesday 23 September 2025 20:33
by waltervl
It could be the plugin needs a newer python version now than 3.9 that is mentioned on the plugin wiki.

Re: Update breaks Z4D

Posted: Tuesday 23 September 2025 20:38
by hyeronimo
Yes, I considered that and am working on moving to a new install from a july image. It has python 3.11.2. It was working (1 device, the coordinator) before I imported my old data. after that Z4D is not working any more, same error. However I still have to try to create the virtual environment.

Re: Update breaks Z4D

Posted: Tuesday 23 September 2025 20:47
by waltervl
Did you use this procedure to move the plugin data?
https://zigbeefordomoticz.github.io/wik ... ackup.html

Re: Update breaks Z4D

Posted: Tuesday 23 September 2025 20:58
by hyeronimo
oh my bad! I just restored the backup files mentioned at the top of the page. Working on it..

Re: Update breaks Z4D

Posted: Tuesday 23 September 2025 21:13
by hyeronimo
hmm. same error. thanks for trying to help!

Re: Update breaks Z4D

Posted: Tuesday 23 September 2025 22:15
by hyeronimo
I have managed to get Z4D working on the fresh install. So far no luck with the devices. Here I seem to have Z4D two instances now, one that is working and one that is not. For the 2024 (bullseye) version, I think the "python3 -m pip install -r requirements.txt --upgrade -t " is not working, because of the depricated /name error.

Re: Update breaks Z4D

Posted: Wednesday 24 September 2025 10:01
by Rik60
hyeronimo wrote: Tuesday 23 September 2025 22:15 I have managed to get Z4D working on the fresh install. So far no luck with the devices. Here I seem to have Z4D two instances now, one that is working and one that is not. For the 2024 (bullseye) version, I think the "python3 -m pip install -r requirements.txt --upgrade -t " is not working, because of the depricated /name error.
If you have a working Z4D on a fresh Bookworm install (Z4D is starting without errors in the logging, but no devices found) you could try to copy, from the backup, the DeviceList-xx.txt in the data folder into the new data folder (rename or remove the existing txt file first). In the Conf folder, replace the DeviceConf.txt and PluginConf-xx.json with the onces from the backup. The files with xx (DeviceList and PluginConf) should have the same numbers.
To copy, move or edit files i use WinScp with root rights.

Re: Update breaks Z4D

Posted: Wednesday 24 September 2025 19:04
by hyeronimo
Hi, yes, tonight I will continue the process, thx!

Re: Update breaks Z4D

Posted: Saturday 04 October 2025 10:19
by hyeronimo
So I failed repairing the old updated version, even after installing libssl1.1. the Requirements update failed as before. So I decided to move to a new Pi5 with beta installed. after installing libssl and moving python to the separate folder as described in the wiki, Z4D was working. However, I also tried to use a new Zigbee coordinator dongle. Not a good idea. device and coordinator data is linked together in some way. Anyway, the system is working again, even though there is a lot of work in changing stuff linked to changed device id's.
All this makes me wonder... Is domoticz maybe getting a bit too much beginner-unfriendly?