Problème plugin suite mise à jour

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
ker49
Messages : 85
Inscription : 08 janv. 2016, 18:13

Problème plugin suite mise à jour

Message 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 ...
Dernière modification par Keros le 13 déc. 2024, 06:05, modifié 1 fois.
Raison : Ajout les balises pour les logs. Merci de lire la section Bien utiliser le forum
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Problème plugin suite mise à jour

Message 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.
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Problème plugin suite mise à jour

Message par pipiche »

A priori il manque les modules pythons nécessaires

sudo python3 -m pip install -r requirements.txt —upgrade
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
ker49
Messages : 85
Inscription : 08 janv. 2016, 18:13

Re: Problème plugin suite mise à jour

Message 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 ...
ker49
Messages : 85
Inscription : 08 janv. 2016, 18:13

Re: Problème plugin suite mise à jour

Message 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]
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Problème plugin suite mise à jour

Message 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 ?
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
ker49
Messages : 85
Inscription : 08 janv. 2016, 18:13

Re: Problème plugin suite mise à jour

Message 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à ...
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Problème plugin suite mise à jour

Message par pipiche »

peux-tu donner le log entier que je puisse comprendre et t'aider
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Problème plugin suite mise à jour

Message 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.
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
ker49
Messages : 85
Inscription : 08 janv. 2016, 18:13

Re: Problème plugin suite mise à jour

Message 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'
Dernière modification par Keros le 14 déc. 2024, 14:52, modifié 1 fois.
Raison : Ajout des balises pour les log
Répondre