(Just ran into this myself) Dlib needs some libraries compiled for it to load and the hass.io image doesn’t have them pre-loaded. I was able to get it installed in my instance by attaching to the homeassistant container and adding the packages as such…
apologies, forgot to report back. I raised a PR for the documentation. Needs cmake it seems (well it did on my ubuntu build. Seemingly AIO and docker does not)
Well, I found solution.
Home assistant previously (afaik <0.50 version) stored dependences in /deps folder under config folder. So, we are able to place missing packages here.
What I did:
ssh to Hassio (not Home Assistant container, but Resin instance)
docker ps to get homeassistant container id
docker exec -it <ID_here> ash to get to the container shell
pip3 install face_recognition to install dependences
cp -r /usr/lib/python3.6/site-packages/face-recognition /config/deps/lib/python3.6/site-packages/ config folder is persistant, so it would survive container restart
ctrl+p ctrl+q to detach from container
ssh to Home Assistant container as usual and restart it
Thats it, dlib component now initializes properly.
But I have another error
RuntimeError: Error deserializing object of type int64
while deserializing a floating point number.
while deserializing a dlib::matrix
while deserializing object of type std::vector
while deserializing object of type std::vector
while deserializing object of type std::vector
Can’t get this to work anymore home assistant moved on to python3.7 and the package copied to either /config/deps/lib/python3.6/site-packages/ or /config/deps/lib/python3.7/site-packages/ is not picked up anymore. Any ideas?