Jeedom V4 Plugin Openzwave

Bonsoir,

Suite à une mise à jour de mon système Raspbian (5.4.51-v7) j’ai Jeedom en version 4 qui n’arrive plus à lancer le démon d’openzwave.
J’ai essayé la réinstallation des dépendances (où tout est au vert) depuis l’interface Jeedom et en ligne de commande via le script d’install d’Openzwave (/var/www/html/plugins/openzwave/resources/install_apt.sh).
Rien y fait le démon ne veut pas se lancer : impossible d’inclure un package/lib python visiblement avec le message d’erreur suivant : ImportError: cannot import name py31compat

Est-ce que quelqu’un à rencontrer le soucis suite à dernière mise à jour des packages systèmes (en date du 13 août) ?

Voici les logs du lancement du démon :

[2020-08-15 22:08:32][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
Traceback (most recent call last):
File "/var/www/html/plugins/openzwave/core/class/../../resources/openzwaved/openzwaved.py", line 18, in <module>
from ozwave import globals,server_utils,rest_server
File "/var/www/html/plugins/openzwave/resources/openzwaved/ozwave/globals.py", line 1, in <module>
import utils,network_utils,controller_utils,node_utils
File "/var/www/html/plugins/openzwave/resources/openzwaved/ozwave/utils.py", line 6, in <module>
import network_utils
File "/var/www/html/plugins/openzwave/resources/openzwaved/ozwave/network_utils.py", line 7, in <module>
from openzwave.network import ZWaveNetwork,ZWaveController
File "/usr/local/lib/python2.7/dist-packages/openzwave-0.3.1-py2.7.egg/openzwave/network.py", line 38, in <module>
import libopenzwave
File "src-lib/libopenzwave/libopenzwave.pyx", line 74, in init libopenzwave
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 79, in <module>
from . import py31compat
ImportError: cannot import name py31compat
[2020-08-15 22:09:04][ERROR] : Impossible de lancer le démon openzwave, relancer le démon en debug et vérifiez la log

Une idée / des pistes ?
Merci par avance

Bonjour,
Pourrait on avoir une copie de la page santé jeedom pour avoir les infos de versions ainsi que le log des dépendances ?

Bonjour,

Voici la vue depuis la page « Santé » :


et voici les logs de l’installation des dépendances :

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
Hit:3 https://deb.nodesource.com/node_12.x 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+deb10u3).
libjpeg-dev is already the newest version (1:1.5.2-2).
libudev-dev is already the newest version (241-7~deb10u4+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.1.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~deb10u4+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 (5.2.1)
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.5.1)
Requirement already satisfied: wrapt in /usr/local/lib/python2.7/dist-packages (from astroid<2.0,>=1.6->pylint) (1.12.1)
#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 SensorAlarm.o
Building Proprietary.o
Building Basic.o
Building SwitchToggleMultilevel.o
Building MeterPulse.o
Building SensorBinary.o
Building Language.o
Building MultiChannelAssociation.o
Building SwitchMultilevel.o
Building Meter.o
Building Indicator.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: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict]
snprintf(usercode, sizeof(usercode), "%s %d", usercode, (int)_data[12+i]);
^~~~~~~~                             ~~~~~~~~
Building ThermostatFanMode.o
Building Configuration.o
Building CommandClass.o
Building Hail.o
Building SwitchToggleBinary.o
Building Association.o
Building TimeParameters.o
Building UserCode.o
Building ApplicationStatus.o
Building BarrierOperator.o
Building ThermostatFanState.o
Building MultiInstance.o
Building ManufacturerSpecific.o
In file included from /usr/include/c++/8/map:60,
from /opt/python-openzwave/openzwave/cpp/src/command_classes/CommandClasses.h:32,
from /opt/python-openzwave/openzwave/cpp/src/command_classes/ManufacturerSpecific.cpp:28:
/usr/include/c++/8/bits/stl_tree.h: In function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<long long int&&>, std::tuple<>}; _Key = long long int; _Val = std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*>; _KeyOfValue = std::_Select1st<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> >; _Compare = std::less<long long int>; _Alloc = std::allocator<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> >]':
/usr/include/c++/8/bits/stl_tree.h:2411:7: note: parameter passing for argument of type 'std::_Rb_tree<long long int, std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*>, std::_Select1st<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> >, std::less<long long int>, std::allocator<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> >'} changed in GCC 7.1
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/map:61,
from /opt/python-openzwave/openzwave/cpp/src/command_classes/CommandClasses.h:32,
from /opt/python-openzwave/openzwave/cpp/src/command_classes/ManufacturerSpecific.cpp:28:
/usr/include/c++/8/bits/stl_map.h: In static member function 'static bool OpenZWave::ManufacturerSpecific::LoadProductXML()':
/usr/include/c++/8/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree<long long int, std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*>, std::_Select1st<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> >, std::less<long long int>, std::allocator<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> >'} changed in GCC 7.1
__i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct,
/usr/include/c++/8/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree<long long int, std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*>, std::_Select1st<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> >, std::less<long long int>, std::allocator<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> >'} changed in GCC 7.1
__i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct,
/usr/include/c++/8/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree<long long int, std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*>, std::_Select1st<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> >, std::less<long long int>, std::allocator<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator<std::pair<const long long int, OpenZWave::ManufacturerSpecific::Product*> >'} changed in GCC 7.1
__i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct,
Building SoundSwitch.o
Building CentralScene.o
Building Powerlevel.o
Building ClimateControlSchedule.o
Building Lock.o
Building NodeNaming.o
Building WakeUp.o
Building ManufacturerProprietary.o
Building SwitchAll.o
Building MultiCmd.o
Building Color.o
Building Clock.o
Building SceneActivation.o
Building ControllerReplication.o
Building DoorLock.o
Building AssociationCommandConfiguration.o
Building SensorMultilevel.o
Building ThermostatOperatingState.o
Building Battery.o
Building CRC16Encap.o
Building Version.o
Building ZWavePlusInfo.o
Building Security.o
Building Alarm.o
Building CommandClasses.o
Building ThermostatSetpoint.o
Building NoOperation.o
Building BasicWindowCovering.o
Building EnergyProduction.o
Building DeviceResetLocally.o
Building ThermostatMode.o
Building Protection.o
Building SwitchBinary.o
Building Value.o
Building ValueList.o
Building ValueButton.o
Building ValueInt.o
Building ValueStore.o
Building ValueDecimal.o
Building ValueRaw.o
Building ValueString.o
Building ValueByte.o
Building ValueBool.o
Building ValueSchedule.o
Building ValueShort.o
Building Controller.o
Building Wait.o
Building Thread.o
Building Stream.o
Building Log.o
Building HidController.o
Building Mutex.o
Building SerialController.o
Building Event.o
Building FileOps.o
Building TimeStamp.o
Building FileOpsImpl.o
Building TimeStampImpl.o
Building WaitImpl.o
Building ThreadImpl.o
Building LogImpl.o
Building MutexImpl.o
Building SerialControllerImpl.o
Building EventImpl.o
Building Options.o
Building Scene.o
Building Utils.o
Building Driver.o
Building ZWSecurity.o
Building Group.o
Building Node.o
Building Manager.o
Building Msg.o
Building Notification.o
Creating vers.cpp
Building vers.o
Linking Static Library
Linking Shared Library
Making ozw_config file
make[2]: Leaving directory '/opt/python-openzwave/openzwave/cpp/build'
CPPFLAGS= make -C /opt/python-openzwave/openzwave/cpp/examples/MinOZW/ -w
make[2]: Entering directory '/opt/python-openzwave/openzwave/cpp/examples/MinOZW'
Building Main.o
Linking /opt/python-openzwave/openzwave/.lib/MinOZW
g++   -o /opt/python-openzwave/openzwave/.lib/MinOZW /opt/python-openzwave/openzwave/.lib/Main.o /opt/python-openzwave/openzwave/libopenzwave.so -pthread
Creating Temporary Shell Launch Script
make[2]: Leaving directory '/opt/python-openzwave/openzwave/cpp/examples/MinOZW'
make[1]: Leaving directory '/opt/python-openzwave/openzwave'
python setup-lib.py build
running build
running build_ext
cythoning src-lib/libopenzwave/libopenzwave.pyx to src-lib/libopenzwave/libopenzwave.cpp
/usr/lib/python2.7/dist-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /opt/python-openzwave/src-lib/libopenzwave/libopenzwave.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'libopenzwave' extension
creating build
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/src-lib
creating build/temp.linux-armv7l-2.7/src-lib/libopenzwave
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-InigCj/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPY_SSIZE_T_CLEAN=1 -Iopenzwave/cpp/src/ -Iopenzwave/cpp/src/value_classes/ -Iopenzwave/cpp/src/platform/ -Iopenzwave/cpp/build/linux/ -I/usr/include/python2.7 -c src-lib/libopenzwave/libopenzwave.cpp -o build/temp.linux-armv7l-2.7/src-lib/libopenzwave/libopenzwave.o
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
src-lib/libopenzwave/libopenzwave.cpp:3: warning: "PY_SSIZE_T_CLEAN" redefined
#define PY_SSIZE_T_CLEAN
<command-line>: note: this is the location of the previous definition
In file included from openzwave/cpp/src/aes/aescpp.h:26,
from openzwave/cpp/src/Driver.h:42,
from src-lib/libopenzwave/libopenzwave.cpp:638:
openzwave/cpp/src/aes/aes.h:75: warning: ignoring #pragma warning  [-Wunknown-pragmas]
#pragma warning( disable : 4324 )
openzwave/cpp/src/aes/aes.h:93: warning: ignoring #pragma warning  [-Wunknown-pragmas]
#pragma warning( default : 4324 )
src-lib/libopenzwave/libopenzwave.cpp: In function 'PyObject* __pyx_pf_12libopenzwave_9PyManager_268beginControllerCommand(__pyx_obj_12libopenzwave_PyManager*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*, PyObject*)':
src-lib/libopenzwave/libopenzwave.cpp:30325:204: warning: 'bool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)' is deprecated [-Wdeprecated-declarations]
__pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_self->manager->BeginControllerCommand(__pyx_t_1, __pyx_t_2, __pyx_f_12libopenzwave_ctrl_callback, ((void *)__pyx_v_pythonfunc), __pyx_t_3, __pyx_t_4, __pyx_t_5)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4120, __pyx_L1_error)
^
In file included from src-lib/libopenzwave/libopenzwave.cpp:643:
openzwave/cpp/src/Manager.h:1731:19: note: declared here
DEPRECATED bool BeginControllerCommand( uint32 const _homeId, Driver::ControllerCommand _command, Driver::pfnControllerCallback_t _callback = NULL, void* _context = NULL, bool _highPower = false, uint8 _nodeId = 0xff, uint8 _arg = 0 );
^~~~~~~~~~~~~~~~~~~~~~
creating build/lib.linux-armv7l-2.7
arm-linux-gnueabihf-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-InigCj/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-InigCj/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/src-lib/libopenzwave/libopenzwave.o openzwave/libopenzwave.a -ludev -lstdc++ -o build/lib.linux-armv7l-2.7/libopenzwave.so
python setup-lib.py install
running install
running bdist_egg
running egg_info
creating src-lib/libopenzwave.egg-info
writing requirements to src-lib/libopenzwave.egg-info/requires.txt
writing src-lib/libopenzwave.egg-info/PKG-INFO
writing top-level names to src-lib/libopenzwave.egg-info/top_level.txt
writing dependency_links to src-lib/libopenzwave.egg-info/dependency_links.txt
writing manifest file 'src-lib/libopenzwave.egg-info/SOURCES.txt'
reading manifest file 'src-lib/libopenzwave.egg-info/SOURCES.txt'
writing manifest file 'src-lib/libopenzwave.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_ext
skipping 'src-lib/libopenzwave/libopenzwave.cpp' Cython extension (up-to-date)
creating build/bdist.linux-armv7l
creating build/bdist.linux-armv7l/egg
copying build/lib.linux-armv7l-2.7/libopenzwave.so -> build/bdist.linux-armv7l/egg
creating stub loader for libopenzwave.so
byte-compiling build/bdist.linux-armv7l/egg/libopenzwave.py to libopenzwave.pyc
installing package data to build/bdist.linux-armv7l/egg
running install_data
creating build/bdist.linux-armv7l/egg/config
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying src-lib/libopenzwave.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying src-lib/libopenzwave.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying src-lib/libopenzwave.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying src-lib/libopenzwave.egg-info/not-zip-safe -> build/bdist.linux-armv7l/egg/EGG-INFO
copying src-lib/libopenzwave.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying src-lib/libopenzwave.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
writing build/bdist.linux-armv7l/egg/EGG-INFO/native_libs.txt
creating dist
creating 'dist/libopenzwave-0.3.1-py2.7-linux-armv7l.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing libopenzwave-0.3.1-py2.7-linux-armv7l.egg
creating /usr/local/lib/python2.7/dist-packages/libopenzwave-0.3.1-py2.7-linux-armv7l.egg
Extracting libopenzwave-0.3.1-py2.7-linux-armv7l.egg to /usr/local/lib/python2.7/dist-packages
Adding libopenzwave 0.3.1 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/libopenzwave-0.3.1-py2.7-linux-armv7l.egg
Processing dependencies for libopenzwave==0.3.1
Searching for six==1.12.0
Best match: six 1.12.0
Adding six 1.12.0 to easy-install.pth file
Using /usr/lib/python2.7/dist-packages
Finished processing dependencies for libopenzwave==0.3.1
Installation of lib finished.
python setup-api.py install
running install
running bdist_egg
running egg_info
creating src-api/openzwave.egg-info
writing requirements to src-api/openzwave.egg-info/requires.txt
writing src-api/openzwave.egg-info/PKG-INFO
writing top-level names to src-api/openzwave.egg-info/top_level.txt
writing dependency_links to src-api/openzwave.egg-info/dependency_links.txt
writing manifest file 'src-api/openzwave.egg-info/SOURCES.txt'
reading manifest file 'src-api/openzwave.egg-info/SOURCES.txt'
writing manifest file 'src-api/openzwave.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build/lib.linux-armv7l-2.7/openzwave
copying src-api/openzwave/value.py -> build/lib.linux-armv7l-2.7/openzwave
copying src-api/openzwave/singleton.py -> build/lib.linux-armv7l-2.7/openzwave
copying src-api/openzwave/command.py -> build/lib.linux-armv7l-2.7/openzwave
copying src-api/openzwave/network.py -> build/lib.linux-armv7l-2.7/openzwave
copying src-api/openzwave/controller.py -> build/lib.linux-armv7l-2.7/openzwave
copying src-api/openzwave/group.py -> build/lib.linux-armv7l-2.7/openzwave
copying src-api/openzwave/option.py -> build/lib.linux-armv7l-2.7/openzwave
copying src-api/openzwave/scene.py -> build/lib.linux-armv7l-2.7/openzwave
copying src-api/openzwave/__init__.py -> build/lib.linux-armv7l-2.7/openzwave
copying src-api/openzwave/object.py -> build/lib.linux-armv7l-2.7/openzwave
copying src-api/openzwave/node.py -> build/lib.linux-armv7l-2.7/openzwave
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/openzwave
copying build/lib.linux-armv7l-2.7/openzwave/value.py -> build/bdist.linux-armv7l/egg/openzwave
copying build/lib.linux-armv7l-2.7/openzwave/singleton.py -> build/bdist.linux-armv7l/egg/openzwave
copying build/lib.linux-armv7l-2.7/openzwave/command.py -> build/bdist.linux-armv7l/egg/openzwave
copying build/lib.linux-armv7l-2.7/openzwave/network.py -> build/bdist.linux-armv7l/egg/openzwave
copying build/lib.linux-armv7l-2.7/openzwave/controller.py -> build/bdist.linux-armv7l/egg/openzwave
copying build/lib.linux-armv7l-2.7/openzwave/group.py -> build/bdist.linux-armv7l/egg/openzwave
copying build/lib.linux-armv7l-2.7/openzwave/option.py -> build/bdist.linux-armv7l/egg/openzwave
copying build/lib.linux-armv7l-2.7/openzwave/scene.py -> build/bdist.linux-armv7l/egg/openzwave
copying build/lib.linux-armv7l-2.7/openzwave/__init__.py -> build/bdist.linux-armv7l/egg/openzwave
copying build/lib.linux-armv7l-2.7/openzwave/object.py -> build/bdist.linux-armv7l/egg/openzwave
copying build/lib.linux-armv7l-2.7/openzwave/node.py -> build/bdist.linux-armv7l/egg/openzwave
copying build/lib.linux-armv7l-2.7/libopenzwave.so -> build/bdist.linux-armv7l/egg
byte-compiling build/bdist.linux-armv7l/egg/openzwave/value.py to value.pyc
byte-compiling build/bdist.linux-armv7l/egg/openzwave/singleton.py to singleton.pyc
byte-compiling build/bdist.linux-armv7l/egg/openzwave/command.py to command.pyc
byte-compiling build/bdist.linux-armv7l/egg/openzwave/network.py to network.pyc
byte-compiling build/bdist.linux-armv7l/egg/openzwave/controller.py to controller.pyc
byte-compiling build/bdist.linux-armv7l/egg/openzwave/group.py to group.pyc
byte-compiling build/bdist.linux-armv7l/egg/openzwave/option.py to option.pyc
byte-compiling build/bdist.linux-armv7l/egg/openzwave/scene.py to scene.pyc
byte-compiling build/bdist.linux-armv7l/egg/openzwave/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-armv7l/egg/openzwave/object.py to object.pyc
byte-compiling build/bdist.linux-armv7l/egg/openzwave/node.py to node.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying src-api/openzwave.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying src-api/openzwave.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying src-api/openzwave.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying src-api/openzwave.egg-info/not-zip-safe -> build/bdist.linux-armv7l/egg/EGG-INFO
copying src-api/openzwave.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying src-api/openzwave.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
writing build/bdist.linux-armv7l/egg/EGG-INFO/native_libs.txt
creating 'dist/openzwave-0.3.1-py2.7.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing openzwave-0.3.1-py2.7.egg
creating /usr/local/lib/python2.7/dist-packages/openzwave-0.3.1-py2.7.egg
Extracting openzwave-0.3.1-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding openzwave 0.3.1 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/openzwave-0.3.1-py2.7.egg
Processing dependencies for openzwave==0.3.1
Searching for libopenzwave==0.3.1
Best match: libopenzwave 0.3.1
Processing libopenzwave-0.3.1-py2.7-linux-armv7l.egg
libopenzwave 0.3.1 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/libopenzwave-0.3.1-py2.7-linux-armv7l.egg
Searching for Louie==1.1
Best match: Louie 1.1
Adding Louie 1.1 to easy-install.pth file
Using /usr/lib/python2.7/dist-packages
Searching for six==1.12.0
Best match: six 1.12.0
Adding six 1.12.0 to easy-install.pth file
Using /usr/lib/python2.7/dist-packages
Finished processing dependencies for openzwave==0.3.1
Installation of API finished.
sed: can't read /etc/inittab: No such file or directory
Everything is successfully installed!

Un GRAND merci par avance pour toute piste trouvée.

et voici un diff des logs de dépendances entre leur dernière compilation lorsque tout fonctionnait et aujourd’hui (je ne vois pas d’éléments me permettant de trouver une piste ^^)

ca veut dire quoi concrètement ca? tu as executé quelle commande?
en passant ca (5.4.51-v7) n’aide pas, c’est les chiffres à la fin de la ligne sur la page santé qu’il faut donner: [10.4]

c’est « ta mise à jour » qui a du casser les dépendances, voila pourquoi il faudrait savoir exactement ce que tu as fait

ensuite execute les commande pour vérifier la version retournée

pip --version
python --version

si c’est bien la version 2.7 qui est retournée et seulement dans ce cas-là, tu peux exécuter ceci et donner le résultat

sudo pip install setuptools

Je me retrouve avec mon problème après avoir fait un apt-get update suivi d’un apt-get upgrade.

Voici :

fgl@jeedom:~ $ sudo pip --version
pip 18.1 from /usr/lib/python2.7/dist-packages/pip (python 2.7)

Voici :

fgl@jeedom:~ $ sudo python --version
Python 2.7.16

et concernant le package setuptools, il semble déjà bien installé :

fgl@jeedom:~ $ sudo pip install setuptools
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: setuptools in /usr/lib/python2.7/dist-packages (40.8.0)

Depuis j’ai refait une installation from scratch (Raspbien Buster + Jeedom V4 + reimport de ma sauvegarde), j’ai toujours le même problème ; grrr

Bon, je viens de trouver une piste sérieuse !!
En lancant le daemon en ligne de commande via la commande lancée par Jeedom, j’ai le même genre d’ erreur à savoir :

/usr/bin/python /var/www/html/plugins/openzwave/core/class/../../resources/openzwaved/openzwaved.py  --device auto --loglevel debug --port 8083 --config_folder /var/www/html/plugins/openzwave/core/class/../../resources/openzwaved/config --data_folder /var/www/html/plugins/openzwave/core/class/../../data --callback http://127.0.0.1:80/plugins/openzwave/core/php/jeeZwave.php --apikey MY_API_KEY --suppressRefresh 0 --cycle 0.3 --pid /tmp/jeedom/openzwave/deamon.pid

Traceback (most recent call last):
  File "/var/www/html/plugins/openzwave/core/class/../../resources/openzwaved/openzwaved.py", line 18, in <module>
    from ozwave import globals,server_utils,rest_server
  File "/var/www/html/plugins/openzwave/resources/openzwaved/ozwave/globals.py", line 1, in <module>
    import utils,network_utils,controller_utils,node_utils
  File "/var/www/html/plugins/openzwave/resources/openzwaved/ozwave/utils.py", line 6, in <module>
    import network_utils
  File "/var/www/html/plugins/openzwave/resources/openzwaved/ozwave/network_utils.py", line 7, in <module>
    from openzwave.network import ZWaveNetwork,ZWaveController
  File "/usr/local/lib/python2.7/dist-packages/openzwave-0.3.1-py2.7.egg/openzwave/network.py", line 38, in <module>
    import libopenzwave
  File "src-lib/libopenzwave/libopenzwave.pyx", line 74, in init libopenzwave
ImportError: cannot import name get_distribution

EN REVANCHE, si le lance avec un petit « sudo » ; le daemon se lance :

sudo /usr/bin/python /var/www/html/plugins/openzwave/core/class/../../resources/openzwaved/openzwaved.py --device auto --loglevel debug --port 8083 --config_folder /var/www/html/plugins/openzwave/core/class/../../resources/openzwaved/config --data_folder /var/www/html/plugins/openzwave/core/class/../../data --callback http://127.0.0.1:80/plugins/openzwave/core/php/jeeZwave.php --apikey MY_API_KEY --suppressRefresh 0 --cycle 0.3 --pid /tmp/jeedom/openzwave/deamon.pid

[2020-08-16 13:42:54][INFO] : Start openzwaved
[2020-08-16 13:42:54][INFO] : Log level : debug
[2020-08-16 13:42:54][DEBUG] : PID file : /tmp/jeedom/openzwave/deamon.pid
[2020-08-16 13:42:54][INFO] : Device : auto

Ca semble être un problème de droits d’execution plutôt que de dépendance. Comment je peux faire pour que Jeedom lance la commande avec le petit « sudo » qui va bien ?

Les démons sont toujours lancé en sudo.
On peut voir la page santé de ta nouvelle install jeedom ?

Je viens de trouver où ajouter le petit « sudo » qui va bien, ca semble marchait visiblement (le daemon se lance bien depuis l’interface) ; je teste avant de confirmer que ca résout bien mon problème.

En attendant voici le changement apporté :
Ligne 310 de la classe PHP openZwave de Jeedom ( /var/www/html/plugins/openzwave/core/class/ openzwave.class.php) :

$cmd = 'sudo /usr/bin/python ' . $openzwave_path . '/openzwaved/openzwaved.py ';

Voici @Mips :


Au temps pour moi, le démon openzwave n’est pas lancé en sudo.

C’est tout de même curieux que ce problème arrive chez toi et chez personne d’autre…

Le problème avec ton changement c’est qu’il va sauter à la prochaine mise à jour du plugin

En effet ce n’est pas viable, ne relève que du contournement ; en attendant ca me sort d’une belle galère.

Je ferme le topic puisqu’après différents tests et reboot, ca remarche bien.
MERCI à toi pour ton support / aide !!

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.