With HA 0.102.3 in VENV and Python 3.7.5, after upgrade and then also clean install, the component ‘cloud’ fails to initialize somehow.
ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Unable to import component
ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of mobile_app. Setup failed for dependencies: cloud
ERROR (MainThread) [homeassistant.setup] Setup failed for mobile_app: Could not set up all dependencies.
ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: cloud, mobile_app
ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.
Could not get any more clues despite loglevel set to ‘debug’.
How can I find out more about the error, or the name of the involved files ?
Python was compiled without package uuid-dev available, tough recompile did not solve the problem.
Next step was downgrade to HA 0.101.0, which logged dutyful:
ERROR (MainThread) [homeassistant.config] Unable to import cloud: /usr/lib/arm-linux-gnueabihf/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /srv/homeassistant/lib/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so)
2019-12-07 21:59:29 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Invalid config.
Have to install package gnutls-openssl-dev and rebuild python.
I have the very same problem, home assistant installed on top of raspbian, and after updating python and hass, can’t load cloud and mobile app… Btw, lovelace won’t show up either, but let’s go step by step.
Could you please tell me which steps to follow to get everything working nicely ?
I’m not very experimented with python related problems, and I’m not sure how to install uuid-dev (inside venv ? As which user ?) or “rebuild python”…
Thanks in advance and sorry for these noob questions !
First of all, downgrade HA to -version=0.101.0 because the most recent wont show the cause of any errors which seems to be a nasty bug.
Python 3.7.x requires OpenSSL 1.1.1, or will be simply built without.
Now with LD_LIBRARY_PATH=/usr/local/lib python will be able to use openssl 1.1.1.
But then new problems arise: HA now suddenly wants libc 2.25 and then segfaults:
ERROR (MainThread) [homeassistant.config] Unable to import mobile_app: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.25' not found (required by /srv/homeassistant/lib/python3.7/site-packages/nacl/_sodium.abi3.so)
Process: 12303 ExecStart=/srv/homeassistant/bin/hass -c /home/homeassistant/.homeassistant (code=killed, signal=SEGV)
Upgrading libc on poor Raspbian is no choice if you dont want to mess everything up.
Raspbian is simply not compatible with the latest HA-VENV.
Use docker instead, but install via get-docker.sh and not from the package-manager.
Then everything will work nicely out of the box, to start HA on boot from systemd, cron or /etc/rc.local use the command:
I had to install older version of HA (–version=0.101.0 in my case) to get any meaningful logging.
libssl.so.1.0.0 seems rather old. Did you really installed openssl-1.1.1 ?
In my case Python3.7 compiled succesfully with openssl-1.1.0 (from libssl.so.1.1) but insisted on openssl-1.1.1 at runtime or ‘cloud’ would not load.
I’ve HA run version 0.101.0 as suggested above and get the following error.
The python-build.sh gives
OpenSSL 1.0.2o 27 Mar 2018
OpenSSL 1.0.2o 27 Mar 2018
OpenSSL 1.1.1d 10 Sep 2019
I running in the virtual environment, its been working fine, so don’t really want to have to go the docker route.
I’ve tried add LD_LIBRARY_PATH to the bin/activate script, for the SSL libraries.
I’ve also tried the ‘ln’ suggested by forge.
Can anyone else suggest what to do?
The error I am seeing is
Unable to import cloud: /usr/src/openssl-1.1.1d/lib/libssl.so.1.1: version `OPENSSL_1.0.1' not found (required by /srv/homeassistant/lib/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so)
Where is the reference to OPENSSL_1.0.1 in /srv/homeassistant/lib/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so coming from?
How do I make it use 1.1?
Any help appreciated.
I have things working for now, by reverting to a python 3.6 based virual environment.
But that means I can no longer upgrade HA, as it requires 3.7!
UPDATE Jan 01 2020.
I decide to complete rebuild my server from scratch, so have now side stepped this issue.