Dependencies problems

Hello,

I just run a new HA installation in debian using the following commands:

$ sudo apt-get update
$ sudo apt-get install python3-dev python3-pip
$ sudo pip3 install homeassistant
$ hass --open-ui

And now I am having dependencies errors. Does anyone know why am I getting this when trying to start it?

2019-04-24 18:04:28 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_log. Setup failed for dependencies: http
2019-04-24 18:04:28 ERROR (MainThread) [homeassistant.setup] Setup failed for system_log: Could not set up all dependencies.
2019-04-24 18:04:28 INFO (MainThread) [homeassistant.setup] Setting up introduction
2019-04-24 18:04:28 INFO (MainThread) [homeassistant.components.introduction]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Hello, and welcome to Home Assistant!

    We'll hope that we can make all your dreams come true.

    Here are some resources to get started:

     - Configuring Home Assistant:
       https://home-assistant.io/getting-started/configuration/

     - Available components:
       https://home-assistant.io/components/

     - Troubleshooting your configuration:
       https://home-assistant.io/getting-started/troubleshooting-configuration/

     - Getting help:
       https://home-assistant.io/help/

    This message is generated by the introduction component. You can
    disable it in configuration.yaml.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2019-04-24 18:04:28 INFO (MainThread) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
2019-04-24 18:04:28 INFO (MainThread) [homeassistant.setup] Setup of domain introduction took 0.0 seconds.
2019-04-24 18:04:28 INFO (MainThread) [homeassistant.setup] Setting up lovelace
2019-04-24 18:04:28 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 0.0 seconds.
2019-04-24 18:04:28 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of auth. Setup failed for dependencies: http
2019-04-24 18:04:28 ERROR (MainThread) [homeassistant.setup] Setup failed for auth: Could not set up all dependencies.
2019-04-24 18:04:28 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of api. Setup failed for dependencies: http
2019-04-24 18:04:28 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not set up all dependencies.
2019-04-24 18:04:28 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of websocket_api. Setup failed for dependencies: http
2019-04-24 18:04:28 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not set up all dependencies.
2019-04-24 18:04:28 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: auth, http
2019-04-24 18:04:28 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: Could not set up all dependencies.
2019-04-24 18:04:28 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: api, websocket_api, http, system_log, auth, onboarding
2019-04-24 18:04:28 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
2019-04-24 18:04:28 INFO (Thread-5) [homeassistant.util.package] Attempting install of sqlalchemy==1.3.0
2019-04-24 18:04:29 INFO (MainThread) [homeassistant.setup] Setting up recorder
Exception in thread Recorder:
Traceback (most recent call last):
File “/usr/lib/python3.5/threading.py”, line 914, in _bootstrap_inner
self.run()
File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/recorder/init.py”, line 171, in run
from .models import States, Events
File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/recorder/models.py”, line 6, in
from sqlalchemy import (
ImportError: No module named ‘sqlalchemy’

2019-04-24 18:04:39 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.

Here is the official way to to a manual install. Just ignore the Raspberry Pi reference.

Hello,

Well, I didn’t want to create a virtual environment.
Any idea without the env?

Kind regards

Why not a python venv? A venv helps isolate possibly conflicting Python module requirements.

Home Assistant requires Python 3 and many distros are stuck on 2 even though support completely expires on January 1 for Python 2.

Hello,

Just because I wanted to install it directly in the core, I am not very familiar with phyton venv, and it will be a pin at the moment, I suppose that HA should be also able to be installed directly on debian or ubuntu without any virtual env. And just wondering what dependencies were the ones requires for this.

Kind regards

You need the python virtual environment to prevent dependencies issues…

Here is another official version of installing in a Python venv,. It is really not that difficult!

Hello,

Thanks for the help, will take a look at them :smiley:

Kind regards

I am very familiar with the python 3.7 venv environment. I installed it in precisely the manner described in https://www.home-assistant.io/docs/installation/raspberry-pi/ on an Intel NUC in a Kubuntu 19.10 operating system. I am getting identical errors to those described by el_pedryo. (Surprise pedryo! Become a world-class expert on venv; it won’t resolve the errors.) I did run pip3 with and without a sudo. I have now spent over four days trying to get Home Assistant working - to the point of copying and pastig every single command. Virtually every command has led me down some rabbit hole, starting with the completely undocumented requirement for Python 3.7 when virtually every distro still includes 3.6. I repeat every single command.

Home automation is difficult to set up as it is, but I’ve had a highly functional system in Windows-based Home Control Assistant for over seven years with over 50 highly varied devices. I do know a bit about home automation.

The creators of Home Assistant are beginning to look like a cliquish, haphazard group of folks who are completely uninsterested in developing a user-friendly product capable of handling anything more than a couple of blinking LEDs on an ESP2266.

At this point, I’ve spent far, far, far too much time scouring Google for ways to get this thing working. I have Web development work to get back to, sorely neglected solely because of Home Assistant, not to mention investments in Raspberry Pi and other senseless stuff. I even spent time trying to mk ie work with Docker, something that I quickly decided that I will never, ever stoop to again.

If anyone can give me a way to get beyond this dependency problem in less than three minutes, I might try it. Otherwise, I’ll ditch Home Assistant with nothing but bad reviews and move on to more productive things.

Docker.

Seriously, that’s the point of docker.

This method is a 30 minute install. Just ignore the Raspberry Pi bit. Just tried it now to confirm it works https://www.home-assistant.io/docs/installation/raspberry-pi/

If I was you I’d either pack in home automation or find an alternative to Home Assistant. I wouldn’t like to do anything wrong to you. I was merely pointing out what works for me yet you reckon it doesn’t. No need for the novel to make your point.

May I suggest you drop the attitude?

Hi, I have almost 25 year experience in IT managing Linux, Mac and PC including managing multiple virtual environement including Xenserver, freenas, vmware, VDI and docker. This weekend I tried almost all install method except the raspberry pi hass.io to make it happen. There is something broken in the Pip install. I got plenty of dependecy error with python 2.7, 3.6, 3.7 or 3.8. I tried to install on Ubuntu 18 ubuntu 19, freenas (freebsd), Vmware and I don’t think either of the install methode works. I think Home Assistant is a good idea but it not a finish product yet.

I won’t disagree that the pip install is probably broken, but you know what isn’t broken?

Docker

It was in the last release notes that it had been deprecated. See breaking changes here. 0.101: Airly, Apprise, Sinch, Solar-Log, Microsoft Teams - Home Assistant

Plus your vitriolic attack on someone for merely giving you a link is not required, he may have been reading post on his phone and didn’t show the link correctly.
For someone who has posted twice in the forum’s, the contents of them make you come across as being unhelpful and most folks will steer clear of offering assistance. Remember that windows piece of software you mentioned that works, most likely a paid application, where as HA is free and developed by those cliquish haphazard group of folks you called them in their own freetime. And if you actually look at what people are doing with HA it’s a lot more complex than leds on esp8266. So maybe drop some of the attitude and you may find people around here willing to help you,

1 Like

HassIO isnt installed with PIP, and has no dependency problems whatsoever. I know you prefaced your comment with a lot of bragging of how much experience you have, but it didn’t help you read the documentation or read any threads here. HassIO is the docker based install with the supervisor container. If you’re using PIP I reckon you’re just installing plain vanilla Home-Assistant. Just thought you should know, they aren’t the same.

Ok l’ets be honnest… I’m really enthousiatic about Home Assistant and I’m really determined to make it work. Next step i’ll try the raspberry version but I still think that is something broken in the install process. The PIP install works fine but the first launch script get stuck at some point. By memory on ubuntu (all flavor) it get stuck at something like initiating timer and on frenass it get stuck at INFO (SyncWorker_17) [homeassistant.components.zeroconf] Starting Zeroconf broadcast. And yes I see plenty of dependency error that I can document later but I’m not sure it has someting to do with my install issue. My main goal is to make it happen on freenas. If someone have an idea how to solve my issue, feel free to post or maybe this question belongs to another threads?

Yes but I Hassio is the only method I didn’t try yet… I’ll give it a try and post back the results. Btw, Freenass install would be my first pick.

Just saying the Hass.io is working on a raspberrypi 3b. you can get it working to the web ui with the
given instructions. I’ll try the new freenas instruction set and let you know how it goes soon.

1 Like