Problème Dépendances Openzwave

Bonjour,

Suite à la mise à jour en 4.1.17 d’une Smart … (et donc de Debian) … le demon zwave refuse de se lancer (problème de dépendances).

L’installation des dépendances échoue et impossible de trouver d’autres personnes sur le forum avec la même erreur…

Lancement de l'installation/mise à jour des dépendances openzwave
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://ftp.uk.debian.org/debian buster InRelease
Hit:4 http://ftp.uk.debian.org/debian buster-updates InRelease
Hit:5 http://www.deb-multimedia.org buster InRelease
Err:2 https://repo.jeedom.com/odroid stable InRelease
  502  Bad Gateway [IP: 51.178.69.128 443]
Hit:6 https://oph.mdrjr.net/meveric all InRelease
Hit:7 https://oph.mdrjr.net/meveric buster InRelease
Reading package lists...
W: Failed to fetch http://repo.jeedom.com/odroid/dists/stable/InRelease  502  Bad Gateway [IP: 51.178.69.128 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
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).
gcc is already the newest version (4:8.3.0-1).
git is already the newest version (1:2.20.1-2+deb10u3).
libjpeg-dev is already the newest version (1:1.5.2-2+deb10u1).
python-louie is already the newest version (1.1-4).
make is already the newest version (4.2.1-1.2).
python-serial is already the newest version (3.4-4).
python-dev is already the newest version (2.7.16-1).
python-pip is already the newest version (18.1-5).
python-setuptools is already the newest version (40.8.0-1).
python-pyudev is already the newest version (0.21.0-1).
python-requests is already the newest version (2.21.0-1).
libudev-dev is already the newest version (241-7~deb10u5).
unzip is already the newest version (6.0-23+deb10u1).
python-lxml is already the newest version (4.3.2-1+deb10u2).
0 upgraded, 0 newly installed, 0 to remove and 82 not upgraded.
Installation des dependances Python
Requirement already satisfied: urwid in /usr/local/lib/python2.7/dist-packages (2.1.0)
Requirement already satisfied: louie in /usr/lib/python2.7/dist-packages (1.1)
Requirement already satisfied: six in /usr/local/lib/python2.7/dist-packages (1.15.0)
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: futures in /usr/local/lib/python2.7/dist-packages (from tornado) (3.3.0)
Requirement already satisfied: singledispatch in /usr/local/lib/python2.7/dist-packages (from tornado) (3.4.0.3)
Requirement already satisfied: six in /usr/local/lib/python2.7/dist-packages (from singledispatch->tornado) (1.15.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 82 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-louie is already the newest version (1.1-4).
python-dev is already the newest version (2.7.16-1).
python-docutils is already the newest version (0.14+dfsg-4).
python-pip is already the newest version (18.1-5).
python-setuptools is already the newest version (40.8.0-1).
0 upgraded, 0 newly installed, 0 to remove and 82 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).
libudev-dev is already the newest version (241-7~deb10u5).
0 upgraded, 0 newly installed, 0 to remove and 82 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 82 not upgraded.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
pip install nose-html
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
Requirement already satisfied: nose-progressive in /usr/local/lib/python2.7/dist-packages (1.5.2)
Requirement already satisfied: nose>=1.2.1 in /usr/lib/python2.7/dist-packages (from nose-progressive) (1.3.7)
Requirement already satisfied: blessings<2.0,>=1.3 in /usr/local/lib/python2.7/dist-packages (from nose-progressive) (1.7)
Requirement already satisfied: six in /usr/local/lib/python2.7/dist-packages (from blessings<2.0,>=1.3->nose-progressive) (1.15.0)
pip install coverage
Requirement already satisfied: coverage in /usr/local/lib/python2.7/dist-packages (5.2)
pip install nose
Requirement already satisfied: nose in /usr/lib/python2.7/dist-packages (1.3.7)
pip install pylint
Requirement already satisfied: pylint in /usr/local/lib/python2.7/dist-packages (1.9.5)
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: mccabe in /usr/local/lib/python2.7/dist-packages (from pylint) (0.6.1)
Requirement already satisfied: configparser; python_version == "2.7" in /usr/local/lib/python2.7/dist-packages (from pylint) (4.0.2)
Requirement already satisfied: astroid<2.0,>=1.6 in /usr/local/lib/python2.7/dist-packages (from pylint) (1.6.6)
Requirement already satisfied: isort>=4.2.5 in /usr/local/lib/python2.7/dist-packages (from pylint) (4.3.21)
Requirement already satisfied: backports.functools-lru-cache; python_version == "2.7" in /usr/local/lib/python2.7/dist-packages (from pylint) (1.6.1)
Requirement already satisfied: six in /usr/local/lib/python2.7/dist-packages (from pylint) (1.15.0)
Requirement already satisfied: enum34>=1.1.3; python_version < "3.4" in /usr/local/lib/python2.7/dist-packages (from astroid<2.0,>=1.6->pylint) (1.1.10)
Requirement already satisfied: lazy-object-proxy in /usr/local/lib/python2.7/dist-packages (from astroid<2.0,>=1.6->pylint) (1.5.0)
Requirement already satisfied: wrapt in /usr/local/lib/python2.7/dist-packages (from astroid<2.0,>=1.6->pylint) (1.12.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)
#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
Building aeskey.o
Building aescrypt.o
Building aestab.o
Building aes_modes.o
Building Proprietary.o
Building EnergyProduction.o
Building SensorBinary.o
Building Language.o
Building MultiChannelAssociation.o
Building SwitchMultilevel.o
Building Color.o
Building ZWavePlusInfo.o
Building Indicator.o
Building CRC16Encap.o
Building MultiInstance.o
Building SoundSwitch.o
Building DoorLock.o
Building ControllerReplication.o
Building ThermostatFanMode.o
Building Clock.o
Building Configuration.o
Building CommandClass.o
Building SwitchToggleBinary.o
Building UserCode.o
Building TimeParameters.o
Building ClimateControlSchedule.o
Building SensorAlarm.o
Building MeterPulse.o
Building BarrierOperator.o
Building Lock.o
Building ThermostatSetpoint.o
Building ApplicationStatus.o
Building SwitchToggleMultilevel.o
Building NodeNaming.o
Building DoorLockLogging.o
/opt/python-openzwave/openzwave/cpp/src/command_classes/DoorLockLogging.cpp: In member function ‘virtual bool OpenZWave::DoorLockLogging::HandleMsg(const uint8*, uint32, uint32)’:
/opt/python-openzwave/openzwave/cpp/src/command_classes/DoorLockLogging.cpp:312:15: error: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
      snprintf(usercode, sizeof(usercode), "%s %d", usercode, (int)_data[12+i]);
               ^~~~~~~~                             ~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [/opt/python-openzwave/openzwave/cpp/build/support.mk:136: /opt/python-openzwave/openzwave/.lib/DoorLockLogging.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
Everything is successfully installed!

Et l’installation des dépendances reessaye en boucle.

J’ai essayé de désinstallé / réinstaller zwave sans succès.

J’avoue que le « W: Failed to fetch http://repo.jeedom.com/odroid/dists/stable/InRelease » me fait un peu peur :wink:

Quelqu’un aurait une idée ? En attendant la box est incapable d’agir sur le zwave (80% de mon parc d’installation).

Ok…

Le passage du plugin en version beta a l’air de corriger le problème
(un nombre incroyable de warnings à la compilation… mais ça passe).

C’est étrange de livrer en 4.1 stable avec un plugin de base qu’on doit passer en beta non ?

Cela n’engage que toi, je suis en 4.1.17 stable, le plugin stable et je n’ai pas de souci.
Mais je sais au moins que mon linux est a jour et que tout est correctement installé.

J’ai passé deux smart en buster puis 4.1 avec open zwave stable et aucun soucis. Doucement sur les conclusions hasardeuses. 22000 users de zwave quand même …

C’est pas faux…

Et en prime… depuis… impossible d’exécuter la moindre commande…
Aucune erreur, juste… rien ne se passe…

Et pour finir en beauté…

Réinstallation stable => ok (pas de réinstallation des dépendances qui étaient passées en « beta »)
Daemon => ok (ouf)
Commandes => ok ( YES !!!)

J’ai beau être un unix guy, architecte système, et autre, l’informatique ça peut parfois rester abscon !

On va voir après quelques jours comment ça se comporte…