Upgrade to 0.45.1 problems

I’m trying to upgrade from 0.44 to 0.45.1 and i keep getting the same error:

Main PID: 1582 (hass)
CGroup: /system.slice/system-home\x2dassistant.slice/[email protected]
├─1582 /usr/bin/python3 /usr/local/bin/hass --config /var/opt/homeassistant
├─1628 /usr/bin/python3 -m pip install --quiet python_openzwave==0.4.0.31 --upgrade --target /var/opt/homeassistant/deps --constraint /usr/local/lib/python3.4/dist-packages/homeassistant/package_constraints.txt
├─1652 /usr/bin/python3 -u -c import setuptools, tokenize;file=‘/tmp/pip-build-9dbj_uts/python-openzwave/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’)) bdist_wheel -d /tmp/tmpdx3cwpr6pip-wheel- --python-tag cp34
├─1696 arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPY_LIB_VERSION=0.4.0.31 -DPY_SSIZE_T_CLEAN=1 -DPY_LIB_FLAVOR=embed -Isrc-lib/libopenzwave/ -Iopenzwave-embed/open-zwave-master/cpp/src -Iopenzwave-embed/open-zwave-master/cpp/src/value_classes -Iopenzwave-embed/open-zwave-master/cpp/src/platform -Iopenzwave-embed/open-zwave-master/cpp/build/linux -I/usr/include/python3.4m -c openzwave-embed/open-zwave-master/python-openzwave/src-lib/libopenzwave/libopenzwave.cpp -o build/temp.linux-armv7l-3.4/openzwave-embed/open-zwave-master/python-openzwave/src-lib/libopenzwave/libopenzwave.o
└─1697 /usr/lib/gcc/arm-linux-gnueabihf/4.9/cc1plus -quiet -I src-lib/libopenzwave/ -I openzwave-embed/open-zwave-master/cpp/src -I openzwave-embed/open-zwave-master/cpp/src/value_classes -I openzwave-embed/open-zwave-master/cpp/src/platform -I openzwave-embed/open-zwave-master/cpp/build/linux -I /usr/include/python3.4m -imultilib . -imultiarch arm-linux-gnueabihf -D_GNU_SOURCE -D_REENTRANT -D NDEBUG -D _FORTIFY_SOURCE=2 -D PY_LIB_VERSION=0.4.0.31 -D PY_SSIZE_T_CLEAN=1 -D PY_LIB_FLAVOR=embed openzwave-embed/open-zwave-master/python-openzwave/src-lib/libopenzwave/libopenzwave.cpp -quiet -dumpbase libopenzwave.cpp -march=armv6 -mfloat-abi=hard -mfpu=vfp -mtls-dialect=gnu -auxbase-strip build/temp.linux-armv7l-3.4/openzwave-embed/open-zwave-master/python-openzwave/src-lib/libopenzwave/libopenzwave.o -g -g -O2 -Wall -Wstrict-prototypes -Wformat=1 -Werror=format-security -fwrapv -fstack-protector-strong -fPIC -o /tmp/ccXoPvie.s

then it eventually fails with the following:

May 25 21:30:38 RPi3 hass[1582]: WARNING:homeassistant.components.sensor:Setup of platform template is taking over 10 seconds.
May 25 21:35:18 RPi3 hass[1582]: ERROR:homeassistant.util.package:Unable to install package python_openzwave==0.4.0.31: Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-9dbj_uts/python-openzwave/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-yvfjtxyk-record/install-record.txt --single-version-externally-managed --compile --home=/tmp/tmpsy77u682” failed with error code 1 in /tmp/pip-build-9dbj_uts/python-openzwave/
May 25 21:35:18 RPi3 hass[1582]: ERROR:homeassistant.setup:Not initializing zwave because could not install dependency python_openzwave==0.4.0.31
May 25 21:35:18 RPi3 hass[1582]: ERROR:homeassistant.setup:Setup failed for zwave: Could not install all requirements.

Do i have to manually upgrade openzwave?

i manually installed python_openzwave 0.4.0.34 and ran sudo pyozw_check -i -d /dev/zwave to make sure it installed properly and everything looks good. Ihowever, when i try to startup hass it keeps trying to do the same thing and install python_openzwave 0.4.0.31.

My configuration.yaml file shows the correct location:

zwave:
  usb_path: /dev/zwave
  config_path: /usr/local/lib/python3.4/dist-packages/python_openzwave/ozw_config

fixed by downgrading python_openzwave to 0.4.0.31 which is weird because 0.4.0.34 works with hass version 0.44.1

4 Likes

Worked, thanks.