I was using HA 0.96.5 and today upgraded to 0.102.3
Unfortunately, z-wave is now not working anymore. I get this error in the logs:
Dec 08 19:56:18 nuc hass[18918]: 2019-12-08 19:56:18 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package homeassistant-pyozw==0.1.4: Failed building wheel for homeassistant-pyozw
Dec 08 19:56:18 nuc hass[18918]: Command "/home/nuc/homeassistant/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-2x1jsqt8/homeassistant-pyozw/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-record-o57dsvda/install-record.txt --single-version-externally-managed --compile --install-headers /home/nuc/homeassistant/include/site/python3.7/homeassistant-pyozw" failed with error code 1 in /tmp/pip-install-2x1jsqt8/homeassistant-pyozw/
Dec 08 19:56:18 nuc hass[18918]: 2019-12-08 19:56:18 ERROR (MainThread) [homeassistant.setup] Setup failed for zwave: Requirements for zwave not found: ['homeassistant-pyozw==0.1.4'].
Dec 08 19:56:18 nuc hass[18918]: 2019-12-08 19:56:18 ERROR (MainThread) [homeassistant.setup] Setup failed for zwave: Requirements for zwave not found: ['homeassistant-pyozw==0.1.4'].
I tried installing pyozw manually from withing the virtual environment of home assistant by executing
pip3 install homeassistant-pyozw==0.1.4
But that is also giving me errors:
Collecting homeassistant-pyozw==0.1.4
Using cached https://files.pythonhosted.org/packages/2e/48/ffc8e03c7249a68bdf35bc5e9fa2af2222acab16eb4f0022d7626c34e83a/homeassistant_pyozw-0.1.4.zip
Requirement already satisfied: six in ./lib/python3.7/site-packages (from homeassistant-pyozw==0.1.4) (1.13.0)
Requirement already satisfied: PyDispatcher>=2.0.5 in ./lib/python3.7/site-packages (from homeassistant-pyozw==0.1.4) (2.0.5)
Building wheels for collected packages: homeassistant-pyozw
Building wheel for homeassistant-pyozw (setup.py) ... error
Complete output from command /home/nuc/homeassistant/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ab7cf8m5/homeassistant-pyozw/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/pip-wheel-shxajmdd --python-tag cp37:
sysargv ['-c', 'bdist_wheel', '-d', '/tmp/pip-wheel-shxajmdd', '--python-tag', 'cp37']
Found SETUP_DIR : /tmp/pip-install-ab7cf8m5/homeassistant-pyozw
<pyozw_setup.EmbedTemplate object at 0x7fb6a487b278>
{'name': 'libopenzwave', 'sources': ['openzwave-embed/open-zwave-hass/python-openzwave/src-lib/libopenzwave/libopenzwave.cpp'], 'include_dirs': ['src-lib/libopenzwave/', 'openzwave-embed/open-zwave-hass/cpp/src', 'openzwave-embed/open-zwave-hass/cpp/src/value_classes', 'openzwave-embed/open-zwave-hass/cpp/src/platform', 'openzwave-embed/open-zwave-hass/cpp/build/linux'], 'define_macros': [('PY_LIB_VERSION', '0.1.4'), ('PY_SSIZE_T_CLEAN', 1), ('PY_LIB_FLAVOR', 'embed'), ('PY_LIB_BACKEND', 'cpp')], 'libraries': ['udev', 'stdc++', 'resolv'], 'extra_objects': ['openzwave-embed/open-zwave-hass/libopenzwave.a'], 'extra_compile_args': [], 'extra_link_args': [], 'language': 'c++'}
['six', 'PyDispatcher>=2.0.5']
running bdist_wheel
running build
running build_openzwave
Found g++ : /usr/bin/g++
Found gcc : /usr/bin/gcc
Found make : /usr/bin/make
Found gmake : None
Found cython : None
Found pkg-config : /usr/bin/pkg-config
Found library udev : True
Found library stdc++ : False
Found library resolv : False
Found library yaml-0.1 : False
Found library libopenzwave : False
Found library python : True
Found library python2 : True
Found library python3 : True
fetching https://raw.githubusercontent.com/home-assistant/python-openzwave/hass/archives/open-zwave-hass-0.1.4.zip into openzwave-embed/open-zwave.zip for version 0.1.4
error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>
----------------------------------------
Failed building wheel for homeassistant-pyozw
Running setup.py clean for homeassistant-pyozw
Failed to build homeassistant-pyozw
Installing collected packages: homeassistant-pyozw
Running setup.py install for homeassistant-pyozw ... error
Complete output from command /home/nuc/homeassistant/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ab7cf8m5/homeassistant-pyozw/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-record-2f8n_6tl/install-record.txt --single-version-externally-managed --compile --install-headers /home/nuc/homeassistant/include/site/python3.7/homeassistant-pyozw:
sysargv ['-c', 'install', '--record', '/tmp/pip-record-2f8n_6tl/install-record.txt', '--single-version-externally-managed', '--compile', '--install-headers', '/home/nuc/homeassistant/include/site/python3.7/homeassistant-pyozw']
Found SETUP_DIR : /tmp/pip-install-ab7cf8m5/homeassistant-pyozw
<pyozw_setup.EmbedTemplate object at 0x7f1a2e5ac198>
{'name': 'libopenzwave', 'sources': ['openzwave-embed/open-zwave-hass/python-openzwave/src-lib/libopenzwave/libopenzwave.cpp'], 'include_dirs': ['src-lib/libopenzwave/', 'openzwave-embed/open-zwave-hass/cpp/src', 'openzwave-embed/open-zwave-hass/cpp/src/value_classes', 'openzwave-embed/open-zwave-hass/cpp/src/platform', 'openzwave-embed/open-zwave-hass/cpp/build/linux'], 'define_macros': [('PY_LIB_VERSION', '0.1.4'), ('PY_SSIZE_T_CLEAN', 1), ('PY_LIB_FLAVOR', 'embed'), ('PY_LIB_BACKEND', 'cpp')], 'libraries': ['udev', 'stdc++', 'resolv'], 'extra_objects': ['openzwave-embed/open-zwave-hass/libopenzwave.a'], 'extra_compile_args': [], 'extra_link_args': [], 'language': 'c++'}
['six', 'PyDispatcher>=2.0.5']
running install
flavor embed
running build_openzwave
Found g++ : /usr/bin/g++
Found gcc : /usr/bin/gcc
Found make : /usr/bin/make
Found gmake : None
Found cython : None
Found pkg-config : /usr/bin/pkg-config
Found library udev : True
Found library stdc++ : False
Found library resolv : False
Found library yaml-0.1 : False
Found library libopenzwave : False
Found library python : True
Found library python2 : True
Found library python3 : True
fetching https://raw.githubusercontent.com/home-assistant/python-openzwave/hass/archives/open-zwave-hass-0.1.4.zip into openzwave-embed/open-zwave.zip for version 0.1.4
error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>
----------------------------------------
Command "/home/nuc/homeassistant/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ab7cf8m5/homeassistant-pyozw/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-record-2f8n_6tl/install-record.txt --single-version-externally-managed --compile --install-headers /home/nuc/homeassistant/include/site/python3.7/homeassistant-pyozw" failed with error code 1 in /tmp/pip-install-ab7cf8m5/homeassistant-pyozw/
Any idea what’s going wrong here? It seems like there’s some problem with the ssl connection to download https://raw.githubusercontent.com/home-assistant/python-openzwave/hass/archives/open-zwave-hass-0.1.4.zip , when I open that url in my browser, I also get a warning.
I tried running pip with --trusted-host raw.githubusercontent.com, but that didn’t make a difference (probably because it’s not pip itself giving the error, but some other script)
Figured it out, apparently I had to run this rather obscure script: https://gist.githubusercontent.com/marschhuynh/31c9375fc34a3e20c2d3b9eb8131d8f3/raw/7f1332892a48e611bffeaba4ae5b827f2b6f4924/Install%20Certificates.command