Page 1 sur 3

Problème plugin suite mise à jour

Publié : 12 déc. 2024, 23:39
par ker49
Bonjour à vous tous,

J'ai réinstallé toute ma config sur un Raspi plus récent (avec SSD) mais je rencontre un problème avec le plugin ZigbeeForDomoticz (qui fonctionne très bien sur mon ancienne version mais que je vais quitter prochainement).
Comme je suis reparti de zéro pour installer proprement Domoticz, je me retrouve avec un module qui n'est pas pris en charge.

J'ai l'erreur suivante :
2024-12-08 13:28:13.999 Status: ZigbeeForDomoticz2: - zigpy==0.73.1 version required 0.73.1 installed 0.73.1
2024-12-08 13:28:14.002 Status: ZigbeeForDomoticz2: - zigpy_znp==0.13.1 version required 0.13.1 installed 0.13.1
2024-12-08 13:28:14.003 Status: ZigbeeForDomoticz2: - zigpy_deconz==0.24.1 version required 0.24.1 installed 0.24.1
2024-12-08 13:28:14.006 Status: ZigbeeForDomoticz2: - bellows==0.42.2 version required 0.42.2 installed 0.42.2
2024-12-08 13:28:14.008 Status: ZigbeeForDomoticz2: - dnspython==2.6.1 version required 2.6.1 installed 2.6.1
2024-12-08 13:28:14.009 Status: ZigbeeForDomoticz2: - pyserial>=3.5 version required 3.5 installed 3.5
2024-12-08 13:28:14.013 Error: ZigbeeForDomoticz2: Looks like charset-normalizer==2.0.11 Python module is not installed or does not meet the required version. Requires 2.0.11, Installed 3.0.1.Make sure to install the required Python3 module with the correct version.
Est-ce que quelqu'un à une idée comment il faut faire pour revenir sur l'ancienne version du module qui pose problème ?
De mon côté, j'en suis bien incapable.

Merci pour vos retours ...

Re: Problème plugin suite mise à jour

Publié : 13 déc. 2024, 06:05
par Keros
Nous avons regroupé dans le sujet [A lire avant de poster] Guide pour bien formuler une demande une première liste d’informations qui nous sont utiles pour commencer à analyser les demandes. En complétant tes informations, nous pourrons t’apporter plus rapidement des réponses pertinentes. Merci.

Re: Problème plugin suite mise à jour

Publié : 13 déc. 2024, 09:56
par pipiche
A priori il manque les modules pythons nécessaires

sudo python3 -m pip install -r requirements.txt —upgrade

Re: Problème plugin suite mise à jour

Publié : 13 déc. 2024, 12:24
par ker49
Bonjour et merci pour cette réponse.

Malheureusement, j'ai déjà essayé ceci mais cela ne fonctionne pas. J'ai le message suivant :

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
error: externally-managed-environment

Après différentes recherches, infructueuses, j'ai fini par solliciter votre aide ...

Re: Problème plugin suite mise à jour

Publié : 13 déc. 2024, 12:26
par ker49
oups, j'ai oublié de préciser ma config (toute "neuve" comme indiqué en présentation) :

À propos de Domoticz
Version: 2024.7
Build Hash: b317cfab1
Compile Date: 2024-07-13 16:59:31
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Mar 23 2024, 16:12:05) [GCC 8.3.0]

Re: Problème plugin suite mise à jour

Publié : 13 déc. 2024, 13:15
par pipiche
ker49 a écrit : 13 déc. 2024, 12:24 Bonjour et merci pour cette réponse.

Malheureusement, j'ai déjà essayé ceci mais cela ne fonctionne pas. J'ai le message suivant :

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
error: externally-managed-environment

Après différentes recherches, infructueuses, j'ai fini par solliciter votre aide ...
De quel package parles-tu ?

Re: Problème plugin suite mise à jour

Publié : 13 déc. 2024, 17:18
par ker49
En fait c'est bien là le problème. J'ai eu ce message quand je fais ceci :
sudo python3 -m pip install -r requirements.txt —upgrade

j'avais déjà essayé la manipulation et sur le conseil donné j'ai essayé de nouveau mais après validation de cette commande j'ai l'erreur ci dessous :
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
error: externally-managed-environment


Je ne comprends pas car je suis parti de l'OS Raspi puis installation de Domoticz (dernière version stable) avec Python à jour comme indiqué dans post précédent
J'avoue être un peu perdu là ...

Re: Problème plugin suite mise à jour

Publié : 13 déc. 2024, 20:19
par pipiche
peux-tu donner le log entier que je puisse comprendre et t'aider

Re: Problème plugin suite mise à jour

Publié : 13 déc. 2024, 20:20
par pipiche
ker49 a écrit : 13 déc. 2024, 12:26 oups, j'ai oublié de préciser ma config (toute "neuve" comme indiqué en présentation) :

À propos de Domoticz
Version: 2024.7
Build Hash: b317cfab1
Compile Date: 2024-07-13 16:59:31
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Mar 23 2024, 16:12:05) [GCC 8.3.0]
de ce que je vois Domoticz utilise Python Version: 3.7.3 alors que le plugin ne supporte que 3.9 et au-dessus.

Re: Problème plugin suite mise à jour

Publié : 14 déc. 2024, 11:30
par ker49
re bonjour et merci pour le retour

pour la version mes infos sont les suivantes (j'ai déposé hier l'ancienne mais je suis bien en 3.11.2) :
"Version: 2024.7
Build Hash: b317cfab1
Compile Date: 2024-07-13 16:59:31
dzVents Version: 3.1.8
Python Version: 3.11.2 (main, Sep 14 2024, 03:00:30) [GCC 12.2.0]
Active User: admin

Uptime: 5 Jours, 21 Heures, 56 Minutes, 35 Secondes"

pour le log (est-ce bien celui ci qu'il faut, sinon ou faut-il le trouver ?) j'ai ceci :
"

Code : Tout sélectionner

 2024-12-14 11:27:06.120 Status: ZigbeeForDomoticz2: Exiting work loop.
2024-12-14 11:27:06.166 Status: ZigbeeForDomoticz2: Stopping threads.
2024-12-14 11:27:06.166 Status: ZigbeeForDomoticz2: Stopped.
2024-12-14 11:27:06.166 ZigbeeForDomoticz2: Worker thread started.
2024-12-14 11:27:06.166 Status: ZigbeeForDomoticz2: Entering work loop.
2024-12-14 11:27:06.166 Status: ZigbeeForDomoticz2: Started.
2024-12-14 11:27:07.524 Status: ZigbeeForDomoticz2: Initialized version 7.1, author 'pipiche38'
2024-12-14 11:27:07.525 Status: ZigbeeForDomoticz2: Welcome to Zigbee for Domoticz (Z4D) plugin.
2024-12-14 11:27:07.525 Status: ZigbeeForDomoticz2: Z4D requires python3.9 or above and you are running 3.11
2024-12-14 11:27:07.526 ZigbeeForDomoticz2: Z4D loading PluginConf
2024-12-14 11:27:07.527 ZigbeeForDomoticz2: Loading PluginConf - from Domoticz sqlite Db
2024-12-14 11:27:07.527 ZigbeeForDomoticz2: /home/acndomo/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-02.json timestamp is 1733659528.0651176
2024-12-14 11:27:07.527 ZigbeeForDomoticz2: Dz PluginConf is older than Json Dz: 0 Json: 1733659528.0651176
2024-12-14 11:27:07.528 Status: ZigbeeForDomoticz2: filename set to /home/acndomo/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-02.json
2024-12-14 11:27:07.528 Status: ZigbeeForDomoticz2: pluginHome set to /home/acndomo/domoticz/plugins/Domoticz-Zigbee
2024-12-14 11:27:07.528 Status: ZigbeeForDomoticz2: homedirectory set to /home/acndomo/domoticz/plugins/Domoticz-Zigbee
2024-12-14 11:27:07.528 Status: ZigbeeForDomoticz2: pluginData set to /home/acndomo/domoticz/plugins/Domoticz-Zigbee/Data
2024-12-14 11:27:07.528 Status: ZigbeeForDomoticz2: pluginConfig set to /home/acndomo/domoticz/plugins/Domoticz-Zigbee/Conf
2024-12-14 11:27:07.528 Status: ZigbeeForDomoticz2: pluginOTAFirmware set to /home/acndomo/domoticz/plugins/Domoticz-Zigbee/OTAFirmware
2024-12-14 11:27:07.528 Status: ZigbeeForDomoticz2: pluginReports set to /home/acndomo/domoticz/plugins/Domoticz-Zigbee/Reports
2024-12-14 11:27:07.528 Status: ZigbeeForDomoticz2: pluginWWW set to /home/acndomo/domoticz/plugins/Domoticz-Zigbee/www
2024-12-14 11:27:07.528 Status: ZigbeeForDomoticz2: pluginLogs set to /home/acndomo/domoticz/plugins/Domoticz-Zigbee/Logs
2024-12-14 11:27:07.528 Status: ZigbeeForDomoticz2: SSLCertificate set to /home/acndomo/domoticz/plugins/Domoticz-Zigbee/certs/server.crt
2024-12-14 11:27:07.528 Status: ZigbeeForDomoticz2: SSLPrivateKey set to /home/acndomo/domoticz/plugins/Domoticz-Zigbee/certs/server.key
2024-12-14 11:27:07.528 Status: ZigbeeForDomoticz2: expJsonDatabase set to 0
2024-12-14 11:27:07.634 Status: ZigbeeForDomoticz2: Checking Python modules /home/acndomo/domoticz/plugins/Domoticz-Zigbee/constraints.txt
2024-12-14 11:27:07.636 Status: ZigbeeForDomoticz2: - zigpy==0.73.1 version required 0.73.1 installed 0.73.1
2024-12-14 11:27:07.638 Status: ZigbeeForDomoticz2: - zigpy_znp==0.13.1 version required 0.13.1 installed 0.13.1
2024-12-14 11:27:07.639 Status: ZigbeeForDomoticz2: - zigpy_deconz==0.24.1 version required 0.24.1 installed 0.24.1
2024-12-14 11:27:07.640 Status: ZigbeeForDomoticz2: - bellows==0.42.2 version required 0.42.2 installed 0.42.2
2024-12-14 11:27:07.642 Status: ZigbeeForDomoticz2: - dnspython==2.6.1 version required 2.6.1 installed 2.6.1
2024-12-14 11:27:07.643 Status: ZigbeeForDomoticz2: - pyserial>=3.5 version required 3.5 installed 3.5
2024-12-14 11:27:07.646 Error: ZigbeeForDomoticz2: Looks like charset-normalizer==2.0.11 Python module is not installed or does not meet the required version. Requires 2.0.11, Installed 3.0.1.Make sure to install the required Python3 module with the correct version.
2024-12-14 11:27:07.646 Error: ZigbeeForDomoticz2: Use the command:
2024-12-14 11:27:07.646 Error: ZigbeeForDomoticz2: sudo python3 -m pip install -r requirements.txt --upgrade
2024-12-14 11:27:07.646 ZigbeeForDomoticz2: onStop()
2024-12-14 11:27:07.646 Error: ZigbeeForDomoticz2: Call to function 'onStart' failed, exception details:
2024-12-14 11:27:07.649 Error: ZigbeeForDomoticz2: Traceback (most recent call last):
2024-12-14 11:27:07.649 Error: ZigbeeForDomoticz2: File "/home/acndomo/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1566, in onStart
2024-12-14 11:27:07.649 Error: ZigbeeForDomoticz2: _plugin.onStart()
2024-12-14 11:27:07.649 Error: ZigbeeForDomoticz2: File "/home/acndomo/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 404, in onStart
2024-12-14 11:27:07.649 Error: ZigbeeForDomoticz2: self.onStop()
2024-12-14 11:27:07.649 Error: ZigbeeForDomoticz2: File "/home/acndomo/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 607, in onStop
2024-12-14 11:27:07.649 Error: ZigbeeForDomoticz2: matomo_plugin_shutdown(self)
2024-12-14 11:27:07.649 Error: ZigbeeForDomoticz2: File "/home/acndomo/domoticz/plugins/Domoticz-Zigbee/Modules/matomo_request.py", line 127, in matomo_plugin_shutdown
2024-12-14 11:27:07.649 Error: ZigbeeForDomoticz2: send_matomo_request( self, action_name="Plugin Action", event_category="Plugin", event_action="Shutdown", event_name="Plugin Shutdown" )
2024-12-14 11:27:07.649 Error: ZigbeeForDomoticz2: File "/home/acndomo/domoticz/plugins/Domoticz-Zigbee/Modules/matomo_request.py", line 159, in send_matomo_request
2024-12-14 11:27:07.649 Error: ZigbeeForDomoticz2: self.log.logging( "Matomo", "Debug", f"send_matomo_request - Clien_id {client_id}")
2024-12-14 11:27:07.649 Error: ZigbeeForDomoticz2: ^^^^^^^^^^^^^^^^
2024-12-14 11:27:07.649 Error: ZigbeeForDomoticz2: AttributeError: 'NoneType' object has no attribute 'logging'