Core: Can't set up Homekit component on fresh install

Created on 26 Nov 2018  路  3Comments  路  Source: home-assistant/core

Home Assistant release with the issue:
0.82.1

Last working Home Assistant release (if known):
NA

Operating environment (Hass.io/Docker/Windows/etc.):
Hassbian on raspberry pi b+

Component/platform:
https://www.home-assistant.io/components/homekit/

Description of problem:
On a fresh install, I just added "homekit:" to the last line of my configuration.yaml file.

Homekit is unable to load. Have the following error

2018-11-26 02:47:18 ERROR (Thread-8) [homeassistant.util.package] Unable to install package HAP-python==2.2.2: Failed building wheel for pycryptodome
Command "/srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-_vpxypyg/pycryptodome/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-ls5p1abj/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.5/pycryptodome" failed with error code 1 in /tmp/pip-install-_vpxypyg/pycryptodome/
2018-11-26 02:47:18 ERROR (MainThread) [homeassistant.requirements] Not initializing homekit because could not install requirement HAP-python==2.2.2
2018-11-26 02:47:18 ERROR (MainThread) [homeassistant.setup] Setup failed for homekit: Could not install all requirements.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
homekit:

Traceback (if applicable):
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/src/strxor.o -o build/lib.linux-armv7l-3.5/Crypto/Util/_strxor.cpython-35m-arm-linux-gnueabihf.so
building 'Crypto.Math._montgomery' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_X86INTRIN_H -DPYCRYPTO_LITTLE_ENDIAN -DLTC_NO_ASM -DHAVE_POSIX_MEMALIGN -Isrc/ -I/srv/homeassistant/include -I/usr/include/python3.5m -c src/montgomery.c -o build/temp.linux-armv7l-3.5/src/montgomery.o -O3
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_X86INTRIN_H -DPYCRYPTO_LITTLE_ENDIAN -DLTC_NO_ASM -DHAVE_POSIX_MEMALIGN -Isrc/ -I/srv/homeassistant/include -I/usr/include/python3.5m -c src/siphash.c -o build/temp.linux-armv7l-3.5/src/siphash.o -O3
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_X86INTRIN_H -DPYCRYPTO_LITTLE_ENDIAN -DLTC_NO_ASM -DHAVE_POSIX_MEMALIGN -Isrc/ -I/srv/homeassistant/include -I/usr/include/python3.5m -c src/montgomery_utils.c -o build/temp.linux-armv7l-3.5/src/montgomery_utils.o -O3
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_X86INTRIN_H -DPYCRYPTO_LITTLE_ENDIAN -DLTC_NO_ASM -DHAVE_POSIX_MEMALIGN -Isrc/ -I/srv/homeassistant/include -I/usr/include/python3.5m -c src/multiply_32.c -o build/temp.linux-armv7l-3.5/src/multiply_32.o -O3
src/multiply_32.c:39:23: fatal error: x86intrin.h: No such file or directory
#include
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1


Failed building wheel for pycryptodome
Running setup.py clean for pycryptodome
Failed to build pycryptodome

Additional information:

homekit

Most helpful comment

It was a problem with the pycryptodome package. See here. It was fixed yesterday.

All 3 comments

That isn't necessarily a homekit error. Somehow it failed to install a dependency for the homekit component: pycryptodome. I'm running Hassbian myself without any issues.

Have you tried restarting Home Assistant?
Since you have a fresh install of Hassbian, it would also try the setup again (from the beginning) if a restart doesn't work. Sometimes packages doesn't install as they are supposed to.

It was a problem with the pycryptodome package. See here. It was fixed yesterday.

Thank you so much.

Was this page helpful?
0 / 5 - 0 ratings