Page 1 sur 1

problème mise à jour plugin

Publié : 25 nov. 2024, 10:52
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

Re: problème mise à jour plugin

Publié : 25 nov. 2024, 11:15
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

Re: problème mise à jour plugin

Publié : 25 nov. 2024, 14:49
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