Page 2 sur 3

Re: Erreur au lancement et a la mise a jour

Publié : 29 déc. 2023, 18:57
par padbol2002
ça a fonctionné pour rustc

maintenant j'ai relancé la commande 3 qui me semble longue.

Code : Tout sélectionner

pi@raspberrypi:~ $ sudo python3 -m pip install cryptography==40.0.2 --upgrade
Collecting cryptography==40.0.2
  Using cached cryptography-40.0.2.tar.gz (625 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting cffi>=1.12
  Using cached cffi-1.16.0-cp39-cp39-linux_armv7l.whl
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: cryptography
  Building wheel for cryptography (PEP 517) ... -


Re: Erreur au lancement et a la mise a jour

Publié : 29 déc. 2023, 19:27
par pipiche
oui ca prend un certain, il est probable que ca ai besoin d'antropie

Re: Erreur au lancement et a la mise a jour

Publié : 29 déc. 2023, 20:28
par padbol2002
On avance, rustc s'est bien installé en version 1.48

Quand je lance la commande 4 ci dessus j'obtient :

Code : Tout sélectionner

error: Rust 1.48.0 does not match extension requirement >=1.56.0

Re: Erreur instalaltion sur Raspberry Pi OS Lite

Publié : 29 déc. 2023, 20:56
par Keros
Curieux que cela n'ait pas installé la dernière version :roll:

Tu peux essayer un sudo apt update puis un sudo apt upgrade ?

Après, je ne sais pas. Regarde sur les moteurs de recherche si tu trouves des problèmes équivalents.

Re: Erreur instalaltion sur Raspberry Pi OS Lite

Publié : 29 déc. 2023, 22:58
par padbol2002
exact c'est super bizarre,

surtout que j'ai 2 version de rustc
la 1.75 en "rustc --version"
et la 1.48 en "sudo rustc --version"

et oui j'ai fait la mise a jour des paquets et meme un reboot avant de test.

Re: Erreur instalaltion sur Raspberry Pi OS Lite

Publié : 30 déc. 2023, 09:49
par pipiche
pour moi le plus simple est d'installer une version debian standard (pas une lite) tu ne devrais pas avoir de soucis.
Au niveau du plugin on ne peut pas beaucoup t'aider

sinon voici ce que j'ai trouvé sur le net

https://community.home-assistant.io/t/i ... problems-1

Re: Erreur instalaltion sur Raspberry Pi OS Lite

Publié : 30 déc. 2023, 10:22
par padbol2002
Oui je vais repartir de 0,

Je vais verser une larme après 5 ans de version stock (et de mise a jour)

Merci à tous d'avoir pris la peine de regarder.

Joyeuses fêtes.

Re: Erreur installation sur Raspberry Pi OS Lite

Publié : 30 déc. 2023, 15:18
par padbol2002
Après installation de la version "non lite" ça marche du 1er coup...

encore merci

Re: Erreur installation sur Raspberry Pi OS Lite

Publié : 30 déc. 2023, 17:09
par Keros
Je viens de rajouter une note dans le wiki pour indiquer la problématique.

Si le sujet est terminé, merci de bien vouloir modifier le premier message de cette discussion pour indiquer [Résolu] dans le titre du sujet. Comment faire ? Voir le sujet [A lire avant de poster] Guide pour bien formuler une demande.

[Résolu] Re: Erreur installation sur Raspberry Pi OS Lite

Publié : 30 déc. 2023, 22:55
par padbol2002
padbol2002 a écrit : 29 déc. 2023, 12:34 Bonjour,

J'ai eu a noel une clé ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus
j'ai donc fait les commandes suivantes dans le répertoires du plugin :

Code : Tout sélectionner

git pull
sudo python3 -m pip install -r requirements.txt --upgrade
j'obtient

Code : Tout sélectionner

pi@raspberrypi:~/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 25df3399..83653834
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
et :

Code : Tout sélectionner

Collecting cryptography
  Using cached cryptography-41.0.7.tar.gz (630 kB)
  .....
  .....
  .....
  .....(tout un paquet de ligne rouge)
  .....
  .....
  
  creating build/temp.linux-armv7l-cpython-39/src/c
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=.                                                                                                 -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/                                                                                                include/ffi -I/usr/include/libffi -I/usr/include/python3.9 -c src/c/_cffi_backend.c -o build/temp.linux-armv7l-cpython-39/src/c/_cffi_backend                                                                                                .o
    src/c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
       15 | #include <ffi.h>
          |          ^~~~~~~
    compilation terminated.
    error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
    ----------------------------------------
    ERROR: Failed building wheel for cffi
  Failed to build cffi
  ERROR: Could not build wheels for cffi which use PEP 517 and cannot be installed directly
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/ce/b3/13a12ea7edb068de0f62bac88a8ffd92cc2901881b391839851846b84a81/cryptography-4  1.0.7.tar.gz#sha256=13f93ce9bea8016c253b34afc6bd6a75993e5c40672ed5405a9c832f0d4a00bc (from https://pypi.org/simple/cryptography/) (requires-python:>=3.7). Command errored out with exit status 1: 
/usr/bin/python3 /usr/lib/python3/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-qz1306jw/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -'setuptools>=61.0.0' wheel 'cffi>=1.12; platform_python_implementation != '"'"'PyPy'"'"'' 'setuptools-rust>=0.11.4' Check the logs for full command output.

j'ai aussi installé rustc :

Code : Tout sélectionner

pi@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $ rustc --version
rustc 1.75.0 (82e1608df 2023-12-21)
et dans le log domoticz 2023.2 j'ai ceci :

Code : Tout sélectionner

Error: Zigbee: (Zigate) failed to load 'plugin.py', Python Path used was '/home/pi/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'.
2023-12-29 12:33:29.339 Error: Zigbee: Traceback (most recent call last):
2023-12-29 12:33:29.340 Error: Zigbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 113, in <module>
2023-12-29 12:33:29.340 Error: Zigbee: from Classes.WebServer.WebServer import WebServer
2023-12-29 12:33:29.340 Error: Zigbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/WebServer/WebServer.py", line 55, in <module>
2023-12-29 12:33:29.340 Error: Zigbee: class WebServer(object):
2023-12-29 12:33:29.340 Error: Zigbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/WebServer/WebServer.py", line 86, in WebServer
2023-12-29 12:33:29.340 Error: Zigbee: from Classes.WebServer.rest_PluginUpgrade import (
2023-12-29 12:33:29.340 Error: Zigbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/WebServer/rest_PluginUpgrade.py", line 6, in <module>
2023-12-29 12:33:29.340 Error: Zigbee: import z4d_certified_devices
2023-12-29 12:33:29.340 Error: Zigbee: ModuleNotFoundError: No module named 'z4d_certified_devices'
merci pour vos éclaircissements