Page 2 sur 6

Re: Problème de mise a jour plugin

Publié : 18 mai 2024, 12:01
par Tc2112
J'ai fait :
sudo python3 -m pip install -r requirements.txt --upgrade

mais la mise a jour ne s'est pas effectuée toujours en 7.1.011 [5.260]

ci joint le resultat

Re: Problème de mise a jour plugin

Publié : 18 mai 2024, 12:09
par Bibi49

Code : Tout sélectionner

cd /domoticz/plugins/Domoticz-Zigbee/
sudo git pull 
sudo git reset --hard
sudo git pull --force
sudo python3 -m pip install -r requirements.txt --upgrade

Re: Problème de mise a jour plugin

Publié : 18 mai 2024, 12:51
par Tc2112
suite au code :

Code : Tout sélectionner

sudo git pull 
sudo git reset --hard
sudo git pull --force
sudo python3 -m pip install -r requirements.txt --upgrade
le menu zigate n'apparait plus dans le menu Personnalisé
erreur dans le log :

Code : Tout sélectionner

2024-05-18 12:43:58.470 Error: zigate: (Zigate) failed to load 'plugin.py', Python Path used was '/home/freebox/domoticz/plugins/Domoticz-Zigbee/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
2024-05-18 12:43:58.473 Error: zigate: Traceback (most recent call last):
2024-05-18 12:43:58.473 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 127, in <module>
2024-05-18 12:43:58.473 Error: zigate: from Classes.ZigpyTopology import ZigpyTopology
2024-05-18 12:43:58.473 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTopology.py", line 19, in <module>
2024-05-18 12:43:58.473 Error: zigate: import zigpy.types as t
2024-05-18 12:43:58.473 Error: zigate: File "/usr/local/lib/python3.9/dist-packages/zigpy/types/__init__.py", line 4, in <module>
2024-05-18 12:43:58.473 Error: zigate: from .named import * # noqa: F401,F403
2024-05-18 12:43:58.473 Error: zigate: File "/usr/local/lib/python3.9/dist-packages/zigpy/types/named.py", line 8, in <module>
2024-05-18 12:43:58.473 Error: zigate: import attrs
2024-05-18 12:43:58.473 Error: zigate: ModuleNotFoundError: No module named 'attrs'
2024-05-18 12:45:06.201 Error: zigate hardware (26) thread seems to have ended unexpectedly
2024-05-18 12:45:20.204 Error: zigate hardware (26) thread seems to have ended unexpectedly
2024-05-18 12:45:34.206 Error: zigate hardware (26) thread seems to have ended unexpectedly
2024-05-18 12:45:48.209 Error: zigate hardware (26) thread seems to have ended unexpectedly
2024-05-18 12:46:02.212 Error: zigate hardware (26) thread seems to have ended unexpectedly
2024-05-18 12:46:16.215 Error: zigate hardware (26) thread seems to have ended unexpectedly
2024-05-18 12:46:30.218 Error: zigate hardware (26) thread seems to have ended unexpectedly
2024-05-18 12:46:44.221 Err

Re: Problème de mise a jour plugin

Publié : 18 mai 2024, 12:56
par Bibi49
Redémarre domoticz

Re: Problème de mise a jour plugin

Publié : 18 mai 2024, 12:58
par Tc2112
Déjà fait

Re: Problème de mise a jour plugin

Publié : 18 mai 2024, 13:04
par Bibi49
tu a quoi dans les logs de domoticz au démarrage de zigbeefordomoticz?

Re: Problème de mise a jour plugin

Publié : 18 mai 2024, 13:05
par Tc2112
j'ai ca :

Code : Tout sélectionner

2024-05-18 12:59:25.365 Error: zigate: (Zigate) failed to load 'plugin.py', Python Path used was '/home/freebox/domoticz/plugins/Domoticz-Zigbee/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
2024-05-18 12:59:25.369 Error: zigate: Traceback (most recent call last):
2024-05-18 12:59:25.369 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 127, in <module>
2024-05-18 12:59:25.369 Error: zigate: from Classes.ZigpyTopology import ZigpyTopology
2024-05-18 12:59:25.369 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTopology.py", line 19, in <module>
2024-05-18 12:59:25.369 Error: zigate: import zigpy.types as t
2024-05-18 12:59:25.369 Error: zigate: File "/usr/local/lib/python3.9/dist-packages/zigpy/types/__init__.py", line 4, in <module>
2024-05-18 12:59:25.369 Error: zigate: from .named import * # noqa: F401,F403
2024-05-18 12:59:25.369 Error: zigate: File "/usr/local/lib/python3.9/dist-packages/zigpy/types/named.py", line 8, in <module>
2024-05-18 12:59:25.369 Error: zigate: import attrs
2024-05-18 12:59:25.369 Error: zigate: ModuleNotFoundError: No module named 'attrs'
2024-05-18 13:00:34.520 Error: zigate hardware (26) thread seems to have ended unexpectedly
2024-05-18 13:00:48.523 Error: zigate hardware (26) thread seems to have ended unexpectedly
2024-05-18 13:01:02.526 Error: zigate hardware (26) thread seems to have ended unexpectedly
2024-05-18 13:01:16.529 Error: zigate hardware (26) thread seems to have ended unexpectedly
2024-05-18 13:01:30.531 Error: zigate hardware (26) thread seems to have ended unexpectedly

Re: Problème de mise a jour plugin

Publié : 18 mai 2024, 14:33
par Bibi49
Le log devrait commencer avec:

Code : Tout sélectionner

 Entering work loop.
 Started.
 Initialized version 7.1, author 'pipiche38'
 Welcome to Zigbee for Domoticz (Z4D) plugin.

Re: Problème de mise a jour plugin

Publié : 18 mai 2024, 14:58
par Tc2112
voici le log domoticz au démarrage :

Code : Tout sélectionner

2024-05-18 14:54:36.906 zigate: Worker thread started.
2024-05-18 14:54:36.906 Status: zigate: Started.
2024-05-18 14:54:36.906 Status: zigate: Entering work loop.
2024-05-18 14:54:36.908 Status: Ping: Worker started...
2024-05-18 14:54:36.908 Status: NotificationSystem: thread started...
2024-05-18 14:54:36.909 Status: EventSystem: reset all events...
2024-05-18 14:54:36.912 Status: EventSystem: reset all device statuses...
2024-05-18 14:54:37.089 Status: PluginSystem: 1 plugins started.
2024-05-18 14:54:37.157 Status: Python EventSystem: Initializing event module.
2024-05-18 14:54:37.158 Status: EventSystem: Queue thread started...
2024-05-18 14:54:37.159 Status: EventSystem: Started
2024-05-18 14:54:37.909 Status: MQTT: Connecting to localhost:1883
2024-05-18 14:54:37.425 Error: zigate: (Zigate) failed to load 'plugin.py', Python Path used was '/home/freebox/domoticz/plugins/Domoticz-Zigbee/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
2024-05-18 14:54:37.428 Error: zigate: Traceback (most recent call last):
2024-05-18 14:54:37.428 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 127, in <module>
2024-05-18 14:54:37.428 Error: zigate: from Classes.ZigpyTopology import ZigpyTopology
2024-05-18 14:54:37.428 Error: zigate: File "/home/freebox/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTopology.py", line 19, in <module>
2024-05-18 14:54:37.428 Error: zigate: import zigpy.types as t
2024-05-18 14:54:37.428 Error: zigate: File "/usr/local/lib/python3.9/dist-packages/zigpy/types/__init__.py", line 4, in <module>
2024-05-18 14:54:37.428 Error: zigate: from .named import * # noqa: F401,F403
2024-05-18 14:54:37.428 Error: zigate: File "/usr/local/lib/python3.9/dist-packages/zigpy/types/named.py", line 8, in <module>
2024-05-18 14:54:37.428 Error: zigate: import attrs
2024-05-18 14:54:37.428 Error: zigate: ModuleNotFoundError: No module named 'attrs'
2024-05-18 14:54:38.663 Dummy: Light/Switch (eco_max)
2024-05-18 14:54:38.667 Dummy: Light/Switch (eco_null)
2024-05-18 14:54:38.676 Dummy: Light/Switch (eco_moy)
2024-05-18 14:54:38.335 Dummy: Light/Switch (eco_max)
2024-05-18 14:54:38.339 Dummy: Light/Switch (eco_moy)
2024-05-18 14:54:38.350 Dummy: Light/Switch (eco_null)
2024-05-18 14:54:38.110 Status: MQTT: connected to: localhost:1883
2024-05-18 14:54:38.598 Status: [web:8096] Incoming connection from: 192.168.1.78
2024-05-18 14:54:38.624 Status: EventSystem: Script event triggered: conso
2024-05-18 14:54:38.298 Status: LUA: vente:438
2024-05-18 14:54:38.312 Status: EventSystem: Script event triggered: conso

Re: Problème de mise a jour plugin

Publié : 18 mai 2024, 15:48
par pipiche
A priori tu as une de-synchro avec le repo gthub tu peux faire la commande

Code : Tout sélectionner

sudo rm plugin.py
sudo git reset --hard
sudo git pull
puis

Code : Tout sélectionner

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