[Résolu] Problème installation du plugin

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
Bibi49
Messages : 367
Inscription : 11 mars 2018, 12:42
Localisation : 49

Re: Probleme installation du plugin

Message par Bibi49 »

Merci Deufo pour l'info.

La version lite demande plusieurs installations et bloque avec rust.
Je n'ai pas compris comment résoudre ce souci.

Pour le moment, avec l'installation en desktop , une simple installation de python-dev et le plugin s'est installer sans problème.

Comment on fais pour avoir ce compilateur rust ?
RPI 2 -> Bullseye Lite
DomoticZ -> 2024.7
RFXCom 433E -> Pro1 1041
DongleP - Z-Stack 3.30+ (build 20240710) /Z4D 7.1.025 [7.489]
CC1101 433Mhz "Itron EverBlue Cyble"
PiTInfo v1.4
USB->ùSD = Rpi-clones
Deufo
Messages : 280
Inscription : 26 févr. 2019, 16:25

Re: Probleme installation du plugin

Message par Deufo »

J'ai regardé mon historique :

Code : Tout sélectionner

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update
Le site : https://www.rust-lang.org/tools/install
Bibi49
Messages : 367
Inscription : 11 mars 2018, 12:42
Localisation : 49

Re: Probleme installation du plugin

Message par Bibi49 »

Merci Deufo

Je test ça demain :D
RPI 2 -> Bullseye Lite
DomoticZ -> 2024.7
RFXCom 433E -> Pro1 1041
DongleP - Z-Stack 3.30+ (build 20240710) /Z4D 7.1.025 [7.489]
CC1101 433Mhz "Itron EverBlue Cyble"
PiTInfo v1.4
USB->ùSD = Rpi-clones
Bibi49
Messages : 367
Inscription : 11 mars 2018, 12:42
Localisation : 49

Re: Probleme installation du plugin

Message par Bibi49 »

Bonsoir,

l'installation de rustup c'est passé.

Code : Tout sélectionner

      =============================DEBUG ASSISTANCE=============================
      If you are seeing a compilation error please try the following steps to
      successfully install cryptography:
      1) Upgrade to the latest pip and try again. This will fix errors for most
         users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
      2) Read https://cryptography.io/en/latest/installation/ for specific
         instructions for your platform.
      3) Check our frequently asked questions for more information:
         https://cryptography.io/en/latest/faq/
      4) Ensure you have a recent Rust toolchain installed:
         https://cryptography.io/en/latest/installation/#rust

      Python: 3.9.2
      platform: Linux-5.15.84-v7+-armv7l-with-glibc2.31
      pip: n/a
      setuptools: 67.3.2
      setuptools_rust: 1.5.2
      rustc: n/a
      =============================DEBUG ASSISTANCE=============================

  error: can't find Rust compiler

  If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

  To update pip, run:

      pip install --upgrade pip

  and then retry package installation.

  If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

  This package requires Rust >=1.48.0.
  ----------------------------------------
  ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
pi@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $ pip --version
pip 23.0 from /home/pi/.local/lib/python3.9/site-packages/pip (python 3.9)
pi@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $ rustc --version
rustc 1.67.1 (d5a82bbd2 2023-02-07)
pi@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $
Visiblement j'ai du louper quelque chose
pip install --upgrade pip
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh (avec installation des path)
rustup update
sudo reboot
cd domoticz/plugins/Domoticz-Zigbee/
sudo pip3 install -r requirements.txt

ça serait pas plus simple de passer d'une version desktop vers une lite :oops:

Merci Deufo pour avoir essayer de m'aider.
RPI 2 -> Bullseye Lite
DomoticZ -> 2024.7
RFXCom 433E -> Pro1 1041
DongleP - Z-Stack 3.30+ (build 20240710) /Z4D 7.1.025 [7.489]
CC1101 433Mhz "Itron EverBlue Cyble"
PiTInfo v1.4
USB->ùSD = Rpi-clones
Deufo
Messages : 280
Inscription : 26 févr. 2019, 16:25

Re: Probleme installation du plugin

Message par Deufo »

Tout bête mais ça installe rust pour l'utilisateur courant, si tu essayes un sudo rustc --version ?
Bibi49
Messages : 367
Inscription : 11 mars 2018, 12:42
Localisation : 49

Re: Probleme installation du plugin

Message par Bibi49 »

J'avais juste lancé un :
pi@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $ rustc --version
rustc 1.67.1 (d5a82bbd2 2023-02-07)

Je n'ai pas testé avec le sudo...

Étant incapable d'y arriver, je suis revenu à la version desktop, et j'ai désinstaller gnom, browser internet et vlc. :oops:
RPI 2 -> Bullseye Lite
DomoticZ -> 2024.7
RFXCom 433E -> Pro1 1041
DongleP - Z-Stack 3.30+ (build 20240710) /Z4D 7.1.025 [7.489]
CC1101 433Mhz "Itron EverBlue Cyble"
PiTInfo v1.4
USB->ùSD = Rpi-clones
Répondre