Stuck with Homekit


#1

Trying to add Homekit support to my Home Assistant setup. When I add a simple homekit config to configuration.yaml HA can’t start.

If I start it manually (with hass command) it stucks on “Attempting install of HAP-python”. If try to install HAP-python from command line with pip3 install it stucks on installing pycryptodome

And finally, when I run

pip3 -vvv install pycryptodome

It stucks on

creating build/lib.linux-armv6l-3.5/Crypto/SelfTest/Signature/test_vectors/wycheproof
  copying lib/Crypto/SelfTest/Signature/test_vectors/wycheproof/ecdsa_secp256r1_sha256_test.json -> build/lib.linux-armv6l-3.5/Crypto/SelfTest/Signature/test_vectors/wycheproof
  copying lib/Crypto/SelfTest/Signature/test_vectors/wycheproof/dsa_test.json -> build/lib.linux-armv6l-3.5/Crypto/SelfTest/Signature/test_vectors/wycheproof
  copying lib/Crypto/SelfTest/Signature/test_vectors/wycheproof/ecdsa_test.json -> build/lib.linux-armv6l-3.5/Crypto/SelfTest/Signature/test_vectors/wycheproof
  copying lib/Crypto/SelfTest/Signature/test_vectors/wycheproof/rsa_signature_test.json -> build/lib.linux-armv6l-3.5/Crypto/SelfTest/Signature/test_vectors/wycheproof
  Skipping optional fixer: buffer
  Skipping optional fixer: idioms
  Skipping optional fixer: set_literal
  Skipping optional fixer: ws_comma

How can I fix it?

P.S. I use Hassbian on my Raspberry B+


#2

I just tried installing pycryptodome in an empty virtual environment on my B+, and it fails like yours. Installing on a linux 64 bit desktop didn’t have a problem, so I suspect it is the B+ that is causing the problem.


#3

This is how I installed and used homekit component from home assistant.


#4

Thanks, Sunonline. I use this instruction.

I solve this problem. After installing libgmp-dev library pycryptodome installed successfully

sudo apt-get install python-dev libgmp-dev