Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

Impossible d'installer les dépendances ZWave

Retrouvez ici des sujets concernant le protocole Z-Wave et les modules domotiques de type Z-Wave utilisés avec JEEDOM
etrimaille
Timide
Messages : 8
Inscription : 30 mai 2019, 22:03

Impossible d'installer les dépendances ZWave

Message par etrimaille » 22 oct. 2019, 23:38

Bonjour,

J'ai beau chercher sur internet, mais je ne trouve pas comment résoudre ce problème.
J'ai lu la page: https://jeedom.github.io/plugin-openzwave/fr_FR/

J'ai déjà installer le plugin OpenZWave sans problème. Je viens de réinstaller un Raspberry Pi avec Buster

Code : Tout sélectionner

pi@domotique-mtp:~ $ cat /etc/os-release 
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
J'ai réinstaller Jeedom en faisait:

Code : Tout sélectionner

cd /tmp
wget https://raw.githubusercontent.com/jeedom/core/master/install/install.sh
chmod u+x install.sh
sudo ./install.sh -m Jeedom
```
Mais ensuite, impossible d'avoir le plugin ZWave fonctionnel. L'installation des dépendances n'arrêtent pas de se mettre en route toutes les X minutes et s'arrête au bout de 2-3 minutes. Aucun message d'erreur n'apparaît, juste "NOK". Dans les logs de Jeedom, je peux juste lire "Installation des dépendances lancée", rien concernant les erreurs.

Je viens juste de trouver que je pouvais cliquer sur les boutons bleus dans l'interface ZWave:

Code : Tout sélectionner

Lancement de l'installation/mise à jour des dépendances openzwave
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists...
Installation des dependances
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.6).
g++ is already the newest version (4:8.3.0-1+rpi2).
gcc is already the newest version (4:8.3.0-1+rpi2).
git is already the newest version (1:2.20.1-2).
libjpeg-dev is already the newest version (1:1.5.2-2).
libudev-dev is already the newest version (241-7~deb10u1+rpi1).
make is already the newest version (4.2.1-1.2).
python-dev is already the newest version (2.7.16-1).
python-louie is already the newest version (1.1-4).
python-lxml is already the newest version (4.3.2-1).
python-pyudev is already the newest version (0.21.0-1).
python-requests is already the newest version (2.21.0-1).
python-serial is already the newest version (3.4-4).
python-setuptools is already the newest version (40.8.0-1).
unzip is already the newest version (6.0-23+deb10u1).
python-pip is already the newest version (18.1-5+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Installation des dependances Python
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: urwid in /usr/local/lib/python2.7/dist-packages (2.0.1)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: louie in /usr/lib/python2.7/dist-packages (1.1)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (1.12.0)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: tornado in /usr/local/lib/python2.7/dist-packages (5.1.1)
Requirement already satisfied: backports-abc>=0.4 in /usr/local/lib/python2.7/dist-packages (from tornado) (0.5)
Requirement already satisfied: singledispatch in /usr/local/lib/python2.7/dist-packages (from tornado) (3.4.0.3)
Requirement already satisfied: futures in /usr/local/lib/python2.7/dist-packages (from tornado) (3.3.0)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from singledispatch->tornado) (1.12.0)
mkdir: cannot create directory ‘/opt’: File exists
Désinstallation de la version précédente
Installation de Python-OpenZwave
Not uninstalling cython at /usr/lib/python2.7/dist-packages, outside environment /usr
Can't uninstall 'Cython'. No files were found to uninstall.
apt-get install --force-yes -y cython
Reading package lists...
Building dependency tree...
Reading state information...
cython is already the newest version (0.29.2-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
Installing dependencies for python : 2 7 16
apt-get install --force-yes -y python-pip python-dev python-docutils python-setuptools python-louie
Reading package lists...
Building dependency tree...
Reading state information...
python-dev is already the newest version (2.7.16-1).
python-docutils is already the newest version (0.14+dfsg-4).
python-louie is already the newest version (1.1-4).
python-setuptools is already the newest version (40.8.0-1).
python-pip is already the newest version (18.1-5+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
apt-get install --force-yes -y build-essential libudev-dev g++
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.6).
g++ is already the newest version (4:8.3.0-1+rpi2).
libudev-dev is already the newest version (241-7~deb10u1+rpi1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
apt-get install --force-yes -y cython
Reading package lists...
Building dependency tree...
Reading state information...
cython is already the newest version (0.29.2-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
pip install nose-html
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: nose-html in /usr/local/lib/python2.7/dist-packages (1.1)
Requirement already satisfied: nose>=0.11.1 in /usr/lib/python2.7/dist-packages (from nose-html) (1.3.7)
pip install nose-progressive
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: nose-progressive in /usr/local/lib/python2.7/dist-packages (1.5.2)
Requirement already satisfied: blessings<2.0,>=1.3 in /usr/local/lib/python2.7/dist-packages (from nose-progressive) (1.7)
Requirement already satisfied: nose>=1.2.1 in /usr/lib/python2.7/dist-packages (from nose-progressive) (1.3.7)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from blessings<2.0,>=1.3->nose-progressive) (1.12.0)
pip install coverage
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: coverage in /usr/local/lib/python2.7/dist-packages (4.5.4)
pip install nose
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: nose in /usr/lib/python2.7/dist-packages (1.3.7)
pip install pylint
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pylint in /usr/local/lib/python2.7/dist-packages (1.9.5)
Requirement already satisfied: isort>=4.2.5 in /usr/local/lib/python2.7/dist-packages (from pylint) (4.3.21)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from pylint) (1.12.0)
Requirement already satisfied: astroid<2.0,>=1.6 in /usr/local/lib/python2.7/dist-packages (from pylint) (1.6.6)
Requirement already satisfied: singledispatch; python_version < "3.4" in /usr/local/lib/python2.7/dist-packages (from pylint) (3.4.0.3)
Requirement already satisfied: configparser; python_version == "2.7" in /usr/lib/python2.7/dist-packages (from pylint) (3.5.0b2)
Requirement already satisfied: backports.functools-lru-cache; python_version == "2.7" in /usr/lib/python2.7/dist-packages (from pylint) (1.5)
Requirement already satisfied: mccabe in /usr/local/lib/python2.7/dist-packages (from pylint) (0.6.1)
Requirement already satisfied: futures; python_version < "3.2" in /usr/local/lib/python2.7/dist-packages (from isort>=4.2.5->pylint) (3.3.0)
Requirement already satisfied: enum34>=1.1.3; python_version < "3.4" in /usr/lib/python2.7/dist-packages (from astroid<2.0,>=1.6->pylint) (1.1.6)
Requirement already satisfied: lazy-object-proxy in /usr/local/lib/python2.7/dist-packages (from astroid<2.0,>=1.6->pylint) (1.4.2)
Requirement already satisfied: wrapt in /usr/local/lib/python2.7/dist-packages (from astroid<2.0,>=1.6->pylint) (1.11.2)
#pip install docutils
#pip install setuptools
#The following line crashes with a core dump
#pip install "Cython==0.22"
Dependencies for users installed (python 2 7 16)
sed -i -e '253s/.*//' openzwave/cpp/src/value_classes/ValueID.h
cd openzwave && make
make[1]: Entering directory '/opt/python-openzwave/openzwave'
CPPFLAGS= make -C /opt/python-openzwave/openzwave/cpp/build/ -w
make[2]: Entering directory '/opt/python-openzwave/openzwave/cpp/build'
Building OpenZWave Version 1.4.-1
Building tinystr.o
Building tinyxmlerror.o
Building tinyxml.o
Building tinyxmlparser.o
Building hid.o
/opt/python-openzwave/openzwave/cpp/hidapi/linux/hid.c:44:10: fatal error: linux/version.h: No such file or directory
#include <linux/version.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [/opt/python-openzwave/openzwave/cpp/build/support.mk:147: /opt/python-openzwave/openzwave/.lib/hid.o] Error 1
make[2]: Leaving directory '/opt/python-openzwave/openzwave/cpp/build'
make[1]: *** [Makefile:20: all] Error 2
make[1]: Leaving directory '/opt/python-openzwave/openzwave'
make: *** [Makefile:273: openzwave/.lib/] Error 2
sed: can't read /etc/inittab: No such file or directory
Raspberry Pi 3 Detected. If you use a Razberry board you must Disabling Bluetooth
Please add 'dtoverlay=pi3-miniuart-bt' to the end of the file /boot/config.txt
And reboot your Raspberry Pi
Everything is successfully installed!
Le dernier message ne semble pas correct. Une recherche sur le net m'indique qu'il faut installer les headers, mais sans résultats non plus:

Code : Tout sélectionner

pi@domotique-mtp:~ $ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-4.19.75-v7
E: Couldn't find any package by glob 'linux-headers-4.19.75-v7'
E: Couldn't find any package by regex 'linux-headers-4.19.75-v7'
pi@domotique-mtp:~ $ uname -r
4.19.75-v7+
Merci d'avance.

Rvitch
Actif
Messages : 683
Inscription : 21 juin 2016, 10:31

Re: Impossible d'installer les dépendances ZWave

Message par Rvitch » 24 oct. 2019, 09:18

Prends le lien d'installation de la doc jeedom, tous les sujet qui traînent sur le net ne sont pas à jour.

Envoyé de mon Mi 9 SE en utilisant Tapatalk


Répondre

Revenir vers « [Plugin Officiel] Z-Wave »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 1 invité