[Résolu]Error: Zigate: (Zigate) failed to load 'plugin.py' -- après upgrade debian 11 > debian 12
Publié : 28 sept. 2024, 15:25
hello les experts
ma config :
machine: debian 12
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, Aug 26 2024, 07:20:54) [GCC 12.2.0]
version plugin v7 (mais pas plus d'info)
j'ai, cette semaine, fais un upgrade de ma machine debian 11 vers 12. en oubliant complètement que cela pouvait poser éventuellement un problème. tout fonctionne donc pourquoi ça partirait en cacahouète???
bref, maintenant c'est fait...
le plugin ne se lance plus : plus d'accès à la page web et les appareil zigbee ne sont plus accessibles
dans domoticz le log:
1ère idée: le système est plus récent, donc une maj du plug est nécéssaire
et la je sèche un peu.
qu'est ce que cette histoire de fusion? pourquoi ça abandonne plutôt que de me demander si oui ou non je veux continuer, ça serait pas plus "simple" pour les pseudo-noob
et ce "error: externally-managed-environment" j'ai trouvé ça qui m'explique un peu le bazard mais ca ne va pas résoudre mon problème
jai essayé et cela ne changent rien
une idée?
merci bcp
ma config :
machine: debian 12
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, Aug 26 2024, 07:20:54) [GCC 12.2.0]
version plugin v7 (mais pas plus d'info)
j'ai, cette semaine, fais un upgrade de ma machine debian 11 vers 12. en oubliant complètement que cela pouvait poser éventuellement un problème. tout fonctionne donc pourquoi ça partirait en cacahouète???
bref, maintenant c'est fait...
le plugin ne se lance plus : plus d'accès à la page web et les appareil zigbee ne sont plus accessibles
dans domoticz le log:
Code : Tout sélectionner
2024-09-28 14:59:03.743 Status: Domoticz V2024.7 (c)2012-2024 GizMoCuz
2024-09-28 14:59:03.743 Status: Build Hash: b317cfab1, Date: 2024-07-13 16:59:31
2024-09-28 14:59:03.743 Status: Startup Path: /home/Papouu/domoticz/
2024-09-28 14:59:03.769 Sunrise: 08:03:00 SunSet: 19:53:00
2024-09-28 14:59:03.769 Day length: 11:50:00 Sun at south: 13:58:00
2024-09-28 14:59:03.769 Civil twilight start: 07:33:00 Civil twilight end: 20:23:00
2024-09-28 14:59:03.769 Nautical twilight start: 06:57:00 Nautical twilight end: 20:58:00
2024-09-28 14:59:03.769 Astronomical twilight start: 06:22:00 Astronomical twilight end: 21:34:00
2024-09-28 14:59:03.820 Status: PluginSystem: Started, Python version '3.11.2', 2 plugin definitions loaded.
2024-09-28 14:59:03.827 Active notification Subsystems: pushover, telegram (2/13)
2024-09-28 14:59:03.829 Status: WebServer(HTTP) started on address: :: with port 8080
2024-09-28 14:59:03.835 Status: WebServer(SSL) started on address: :: with port 8443
2024-09-28 14:59:03.837 Starting shared server on: :::6144
2024-09-28 14:59:03.837 Status: TCPServer: shared server started...
2024-09-28 14:59:03.839 Status: RxQueue: queue worker started...
2024-09-28 14:59:05.840 Zigate: Worker thread started.
2024-09-28 14:59:05.840 Status: Zigate: Started.
2024-09-28 14:59:05.840 Status: Zigate: Entering work loop.
2024-09-28 14:59:05.840 Status: NotificationSystem: thread started...
2024-09-28 14:59:05.841 Status: EventSystem: reset all events...
2024-09-28 14:59:05.844 Status: EventSystem: reset all device statuses...
2024-09-28 14:59:05.937 Status: Python EventSystem: Initializing event module.
2024-09-28 14:59:05.938 Status: EventSystem: Started
2024-09-28 14:59:05.938 Status: EventSystem: Queue thread started...
2024-09-28 14:59:06.017 Error: Zigate: (Zigate) failed to load 'plugin.py', Python Path used was '/home/Papouu/domoticz/plugins/Domoticz-Zigate/:/usr/lib/python311.zip:/usr/lib/python3.11:/usr/lib/python3.11/lib-dynload:/usr/local/lib/python3.11/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.11/dist-packages'.
2024-09-28 14:59:06.030 Error: Zigate: Traceback (most recent call last):
2024-09-28 14:59:06.030 Error: Zigate: File "/home/Papouu/domoticz/plugins/Domoticz-Zigate/plugin.py", line 103, in <module>
2024-09-28 14:59:06.030 Error: Zigate: import z4d_certified_devices
2024-09-28 14:59:06.030 Error: Zigate: ModuleNotFoundError: No module named 'z4d_certified_devices'
2024-09-28 14:59:06.276 Status: PluginSystem: 1 plugins started.
2024-09-28 14:59:06.841 Status: mqtt: Connecting to localhost:1883
2024-09-28 14:59:07.043 Status: mqtt: Connected to: localhost:1883
2024-09-28 14:59:35.845 Status: [web:8443] Incoming connection from: 192.168.1.28
2024-09-28 15:01:14.426 Status: [web:8443] Incoming connection from: 192.168.1.28
2024-09-28 15:04:21.321 Status: Zigate: Stop directive received.Code : Tout sélectionner
~/domoticz/plugins/Domoticz-Zigate$ git pull
sudo python3 -m pip install -r requirements.txt --upgrade
Mise à jour 64952b7e..7b6f080e
erreur : Les fichiers suivants non suivis de la copie de travail seraient effacés par la fusion :
Classes/WebServer/rest_Device_Settings_Help.py
Classes/ZigpyTopology.py
Modules/ballast_settings.py
Tools/plugin-ping.py
constraints.txt
www/z4d/12.3967806234088415.js
www/z4d/317.59bbe14d2339e649.js
www/z4d/521.4a2e700ea1ed6d2d.js
www/z4d/577.d8ab166ec1c4b8d8.js
www/z4d/644.e5bbcc7e1d18b79d.js
www/z4d/837.e9d5b18d020927e4.js
www/z4d/846.e10721e2f1184a6d.js
www/z4d/908.08c26a5f1272a6a5.js
www/z4d/Inter-italic.var.958a0b9742fb3ae8.woff2
www/z4d/Inter-roman.var.b2129c009ce46d43.woff2
www/z4d/common.481b903deeb9dee7.js
www/z4d/fa-brands-400.8bf6ccf0176a7567.ttf
www/z4d/fa-brands-400.e465758e13df1d72.woff2
www/z4d/fa-regular-400.a937b755f79cb30d.ttf
www/z4d/fa-regular-400.f386b6b7c6bf65a5.woff2
www/z4d/fa-solid-900.081655f2111aa667.ttf
www/z4d/fa-solid-900.ce4938a30389d90a.woff2
www/z4d/main.db7703bbf8c2ef86.js
www/z4d/polyfills.43d8bf88a73d5232.js
www/z4d/runtime.a7a9d52a9859177d.js
www/z4d/styles.529f7cdd97c836ce.css
Veuillez renommer ou effacer ces fichiers avant la fusion.
Abandon
error: externally-managed-environment
× 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.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
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.
qu'est ce que cette histoire de fusion? pourquoi ça abandonne plutôt que de me demander si oui ou non je veux continuer, ça serait pas plus "simple" pour les pseudo-noob
et ce "error: externally-managed-environment" j'ai trouvé ça qui m'explique un peu le bazard mais ca ne va pas résoudre mon problème
jai essayé
Code : Tout sélectionner
git reset --hard
git pull --forceune idée?
merci bcp