Merci pipiche pour ton aide,
à la fin de la commande :
Code : Tout sélectionner
python3 -m pip install -r requirements.txt --upgrade -t /home/dietpi/domoticzPythonEnv
Les erreurs suivantes apparaissent :
Code : Tout sélectionner
...Installing collected packages: z4d-certified-devices, pyserial, crccheck, voluptuous, urllib3, typing_extensions, setuptools, scapy, pyusb, pyserial-asyncio-fast, pyserial-asyncio, pyrsistent, pycparser, propcache, multidict, idna, humanfriendly, frozenlist, frozendict, dnspython, distro, click, charset_normalizer, certifi, attrs, async_timeout, aiohappyeyeballs, yarl, requests, jsonschema, colorzero, coloredlogs, click-log, cffi, aiosqlite, aiosignal, gpiozero, cryptography, aiohttp, zigpy, zigpy_znp, zigpy-zigate, zigpy-zboss, zigpy-xbee, zigpy_deconz, zigpy-blz, bellows, zigpy-cli
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
certbot 4.0.0 requires cryptography>=43.0.0, but you have cryptography 40.0.2 which is incompatible.
pyopenssl 25.0.0 requires cryptography<45,>=41.0.5, but you have cryptography 40.0.2 which is incompatible.
acme 4.0.0 requires cryptography>=43.0.0, but you have cryptography 40.0.2 which is incompatible.
Successfully installed aiohappyeyeballs-2.6.1 aiohttp-3.12.15 aiosignal-1.4.0 aiosqlite-0.21.0 async_timeout-5.0.1 attrs-25.3.0 bellows-0.46.0 certifi-2025.8.3 cffi-2.0.0 charset_normalizer-2.0.11 click-8.3.0 click-log-0.4.0 coloredlogs-15.0.1 colorzero-
Si je force l'installation de cryptography 43 par
Code : Tout sélectionner
pip install cryptography==43 -t /home/dietpi/domoticzPythonEnv --upgrade
journalctl donne :
Code : Tout sélectionner
oct. 02 08:01:33 domoticz domoticz[4217]: 2025-10-02 08:01:33.867 Error: ZigBee: Looks like cryptography<=40.0.2 Python module is not installed or does not meet the required version. Requires 40.0.2, Installed 43.0.0.Make sure to install the required Python3 module with the correct version.
oct. 02 08:01:33 domoticz domoticz[4217]: 2025-10-02 08:01:33.867 Error: ZigBee: Use the command:
oct. 02 08:01:33 domoticz domoticz[4217]: 2025-10-02 08:01:33.867 Error: ZigBee: sudo python3 -m pip install -r requirements.txt --upgrade
oct. 02 08:01:33 domoticz domoticz[4217]: 2025-10-02 08:01:33.867 ZigBee: onStop()
Concernant l'environnement, c'est ici qu'il faut regarder :
https://wiki.domoticz.com/Linux
il faut modifier domoticz.service:
Ajouter dans la section [Service] la ligne :
et créer le fichier domoticz.env contenant juste :