problème mise à jour plugin

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
f-d-m
Messages : 156
Inscription : 25 juin 2019, 21:36

problème mise à jour plugin

Message par f-d-m »

Bonjour,

Je tourne sur Dz 2024.7
Plugin: 7.1.011 [5.313]
Dongle Sonoff - Firmware: UNK - 6.10.3.0 build 297

@pipiche vient d'annoncer la sortie du plugin 7.1.014 et je suis donc 0.0.003 versions en retard.

J'ai essayé de faire la mise à jour via le bouton dans le plugin -> error
J'ai donc suivi la recette dans le wiki pour le faire à la main, et j'ai exactement la même erreur.

Code : Tout sélectionner

root@rpi3b:/home/pi/domoticz/plugins/Domoticz-Zigbee# git pull
fatal: detected dubious ownership in repository at '/home/pi/domoticz/plugins/Domoticz-Zigbee'
To add an exception for this directory, call:

        git config --global --add safe.directory /home/pi/domoticz/plugins/Domoticz-Zigbee
root@rpi3b:/home/pi/domoticz/plugins/Domoticz-Zigbee# git config --global --add safe.directory /home/pi/domoticz/plugins/Domoticz-Zigbee
root@rpi3b:/home/pi/domoticz/plugins/Domoticz-Zigbee# git pull
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint:
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
Updating 5fea01e2..72127b68
error: Your local changes to the following files would be overwritten by merge:
        plugin.py
Please commit your changes or stash them before you merge.
Aborting
Je ne sais pas quelle option choisir, je n'ai pas envie de tout casser.
Merci de vos conseils éclairés.

Frédéric
---
Bruxelles

RPi 3B, Domoticz 2024.7, SSD, dongle Zigbee Sonoff
IPX-800 V3
multiples Sonoff et similaires (Tasmota, ESPeasy), multiples appareils Zigbee
SMA Sunny Boy 3.6
Ksenia Lares 4.0
Compteur digital à la norme DSMR5 - interface ESP32
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: problème mise à jour plugin

Message par pipiche »

Code : Tout sélectionner

git config --global --add safe.directory /home/pi/domoticz/plugins/Domoticz-Zigbee

Code : Tout sélectionner

git reset --hard
puis

Code : Tout sélectionner

git pull
git checkout stable7
sudo python3 -m pip install -r requirements.txt --upgrade
il est possible qu'il faille utiliser la commande

Code : Tout sélectionner

sudo
si problème de droit d'accès
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
f-d-m
Messages : 156
Inscription : 25 juin 2019, 21:36

Re: problème mise à jour plugin

Message par f-d-m »

Succès total, un tout grand merci

Code : Tout sélectionner

git reset --hard
HEAD is now at 5fea01e2 Update readme.md

Code : Tout sélectionner

git pull
Updating 5fea01e2..72127b68
...
...

Code : Tout sélectionner

git checkout stable7
Already on 'stable7'
Your branch is up to date with 'origin/stable7'.
J'ai tapé aveuglément ce qui suit sans savoir ce que ça fait, mais c'est tout bon.

Code : Tout sélectionner

python3 -m pip install -r requirements.txt --upgrade
...
...
Successfully installed bellows-0.42.0 distro-1.9.0 dnspython-2.6.1 frozendict-2.4.6 jsonschema-4.17.3 pyrsistent-0.20.0 pyserial-asyncio-fast-0.14 requests-2.32.3 z4d-certified-devices-5.345 zigpy-0.72.0 zigpy-cli-1.0.5 zigpy-deconz-0.24.1 zigpy-zboss-1.2.0 zigpy-znp-0.13.1
Frédéric
---
Bruxelles

RPi 3B, Domoticz 2024.7, SSD, dongle Zigbee Sonoff
IPX-800 V3
multiples Sonoff et similaires (Tasmota, ESPeasy), multiples appareils Zigbee
SMA Sunny Boy 3.6
Ksenia Lares 4.0
Compteur digital à la norme DSMR5 - interface ESP32
Répondre