First of all i would like to say Hello. I am new at this community and new in use HA. Previously i was used OpenHab and Domoticz.
My new installation of HA v 0.117.5.
I tried to add Z-wave integration and just observed very long integration installation then i saw in logs:
2020-11-06 16:53:19 ERROR (SyncWorker_22) [homeassistant.util.package] Unable to install package homeassistant-pyozw==0.1.10: ERROR: Command errored out with exit status 1:
command: /srv/paigo/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ymbeyve7/homeassistant-pyozw/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ymbeyve7/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-b3wvyawy
cwd: /tmp/pip-install-ymbeyve7/homeassistant-pyozw/
Complete output (92 lines):
sysargv ['/tmp/pip-install-ymbeyve7/homeassistant-pyozw/setup.py', 'bdist_wheel', '-d', '/tmp/pip-wheel-b3wvyawy']
Found SETUP_DIR : /tmp/pip-install-ymbeyve7/homeassistant-pyozw
<pyozw_setup.EmbedTemplate object at 0x7f788729a0>
{'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.10'), ('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 : None
fetching https://raw.githubusercontent.com/home-assistant/python-openzwave/hass/archives/open-zwave-hass-0.1.10.zip into openzwave-embed/open-zwave.zip for version 0.1.10
Clean openzwave in openzwave-embed/open-zwave-hass ... be patient ...
Try to copy openzwave-embed/open-zwave-hass/python-openzwave/openzwave.vers.cpp
Build openzwave ... be patient ...
b'In file included from /usr/include/aarch64-linux-gnu/asm/ioctls.h:1:0,\n'
b'In file included from /usr/include/aarch64-linux-gnu/asm/ioctls.h:1:0,\n'
b' from /usr/include/aarch64-linux-gnu/bits/ioctls.h:23,\n'
b' from /usr/include/aarch64-linux-gnu/bits/ioctls.h:23,\n'
...
...
...
<command-line>:0:0: note: this is the location of the previous definition
In file included from /usr/include/aarch64-linux-gnu/bits/posix1_lim.h:160:0,
from /usr/include/limits.h:143,
from /usr/lib/gcc/aarch64-linux-gnu/5/include-fixed/limits.h:168,
from /usr/lib/gcc/aarch64-linux-gnu/5/include-fixed/syslimits.h:7,
from /usr/lib/gcc/aarch64-linux-gnu/5/include-fixed/limits.h:34,
from /usr/include/python3.9/Python.h:11,
from openzwave-embed/open-zwave-hass/python-openzwave/src-lib/libopenzwave/libopenzwave.cpp:4:
/usr/include/aarch64-linux-gnu/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /srv/paigo/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ymbeyve7/homeassistant-pyozw/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ymbeyve7/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-99p9gsv4/install-record.txt --single-version-externally-managed --compile --install-headers /srv/paigo/include/site/python3.9/homeassistant-pyozw Check the logs for full command output.
2020-11-06 16:53:19 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/srv/paigo/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/srv/paigo/lib/python3.9/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/srv/paigo/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/srv/paigo/lib/python3.9/site-packages/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/srv/paigo/lib/python3.9/site-packages/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/srv/paigo/lib/python3.9/site-packages/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/srv/paigo/lib/python3.9/site-packages/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/srv/paigo/lib/python3.9/site-packages/homeassistant/components/config/config_entries.py", line 136, in post
return await super().post(request)
File "/srv/paigo/lib/python3.9/site-packages/homeassistant/components/http/data_validator.py", line 60, in wrapper
result = await method(view, request, *args, **kwargs)
File "/srv/paigo/lib/python3.9/site-packages/homeassistant/helpers/data_entry_flow.py", line 69, in post
result = await self._flow_mgr.async_init(
File "/srv/paigo/lib/python3.9/site-packages/homeassistant/data_entry_flow.py", line 117, in async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/srv/paigo/lib/python3.9/site-packages/homeassistant/config_entries.py", line 530, in async_create_flow
await async_process_deps_reqs(self.hass, self._hass_config, integration)
File "/srv/paigo/lib/python3.9/site-packages/homeassistant/setup.py", line 343, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/srv/paigo/lib/python3.9/site-packages/homeassistant/requirements.py", line 74, in async_get_integration_with_requirements
await async_process_requirements(
File "/srv/paigo/lib/python3.9/site-packages/homeassistant/requirements.py", line 131, in async_process_requirements
raise RequirementsNotFound(name, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for zwave not found: ['homeassistant-pyozw==0.1.10'].
I did install:
sudo apt-get install libudev-dev
Didn’t help
Then I tried to install ozw manually:
pip3 install --upgrade homeassistant-pyozw==0.1.10
And got this error
Collecting homeassistant-pyozw==0.1.10
Using cached homeassistant_pyozw-0.1.10.zip (147 kB)
Requirement already satisfied, skipping upgrade: six in ./lib/python3.9/site-packages (from homeassistant-pyozw==0.1.10) (1.15.0)
Requirement already satisfied, skipping upgrade: PyDispatcher>=2.0.5 in ./lib/python3.9/site-packages (from homeassistant-pyozw==0.1.10) (2.0.5)
Building wheels for collected packages: homeassistant-pyozw
Building wheel for homeassistant-pyozw (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /srv/paigo/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bo1jkc8v/homeassistant-pyozw/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bo1jkc8v/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-p6_m2eb7
cwd: /tmp/pip-install-bo1jkc8v/homeassistant-pyozw/
Complete output (92 lines):
sysargv ['/tmp/pip-install-bo1jkc8v/homeassistant-pyozw/setup.py', 'bdist_wheel', '-d', '/tmp/pip-wheel-p6_m2eb7']
Found SETUP_DIR : /tmp/pip-install-bo1jkc8v/homeassistant-pyozw
<pyozw_setup.EmbedTemplate object at 0x7f9cf8c9a0>
{'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.10'), ('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++'}
...
...
...
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPY_LIB_VERSION=0.1.10 -DPY_SSIZE_T_CLEAN=1 -DPY_LIB_FLAVOR=embed -DPY_LIB_BACKEND=cpp -Isrc-lib/libopenzwave/ -Iopenzwave-embed/open-zwave-hass/cpp/src -Iopenzwave-embed/open-zwave-hass/cpp/src/value_classes -Iopenzwave-embed/open-zwave-hass/cpp/src/platform -Iopenzwave-embed/open-zwave-hass/cpp/build/linux -I/srv/paigo/include -I/usr/include/python3.9 -c openzwave-embed/open-zwave-hass/python-openzwave/src-lib/libopenzwave/libopenzwave.cpp -o build/temp.linux-aarch64-3.9/openzwave-embed/open-zwave-hass/python-openzwave/src-lib/libopenzwave/libopenzwave.o
openzwave-embed/open-zwave-hass/python-openzwave/src-lib/libopenzwave/libopenzwave.cpp:3:0: warning: "PY_SSIZE_T_CLEAN" redefined
#define PY_SSIZE_T_CLEAN
^
<command-line>:0:0: note: this is the location of the previous definition
In file included from /usr/include/aarch64-linux-gnu/bits/posix1_lim.h:160:0,
from /usr/include/limits.h:143,
from /usr/lib/gcc/aarch64-linux-gnu/5/include-fixed/limits.h:168,
from /usr/lib/gcc/aarch64-linux-gnu/5/include-fixed/syslimits.h:7,
from /usr/lib/gcc/aarch64-linux-gnu/5/include-fixed/limits.h:34,
from /usr/include/python3.9/Python.h:11,
from openzwave-embed/open-zwave-hass/python-openzwave/src-lib/libopenzwave/libopenzwave.cpp:4:
/usr/include/aarch64-linux-gnu/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /srv/paigo/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bo1jkc8v/homeassistant-pyozw/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bo1jkc8v/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-7a94up8b/install-record.txt --single-version-externally-managed --compile --install-headers /srv/paigo/include/site/python3.9/homeassistant-pyozw Check the logs for full command output.
Appreciate your help. I really would like to mvoe to HA.
Best regards,
Kamil