Installation of Hass on top of Python 3.6.7


#1

Installing Hass (python3 -m pip install homeassistant) on Ubuntu 16.04 it fails building wheel for ruamel.yaml.
I get the error: “command ‘i686-linux-gnu-gcc’ failed with exit status 1”.
----------------------------------------
Command “/home/st/homeassistant/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-install-y5zwv3pb/ruamel.yaml/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-4ftmqt_t/install-record.txt --single-version-externally-managed --compile --install-headers /home/st/homeassistant/include/site/python3.6/ruamel.yaml” failed with error code 1 in /tmp/pip-install-y5zwv3pb/ruamel.yaml/

Any suggestion?
Thank you


#2

I recently installed hass on my ubuntu box (odroid C1 ) and had very similar problems:

Recipe that worked for was:

sudo apt-get update
sudo apt-get upgrade
sudo apt install python3-pip python3-venv
sudo apt-get install libffi-dev libssl-dev
python3 -m venv homeassistant
cd homeassistant
source bin/activate
python3 -m pip install wheel
python3 -m pip install homeassistant

#3

Not if you did those steps. If you did that you installed homeassistant in a venv.


#4

What is the difference between venv and question asked on the topic ?


#5

There isn’t a difference between venv and the question asked in this topic, but you said that you installed hassio, which you didn’t.


#6

Got it now , Thanks.

I thought it was the same but you are correct I installed home assistant.


#7

Thank you. Installation was successful.
But now I get an unexpected error when running hass (“hass --open-ui”), see below:
2018-11-30 22:34:53 INFO (MainThread) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
2018-11-30 22:34:53 INFO (MainThread) [homeassistant.setup] Setup of domain introduction took 0.0 seconds.
2018-11-30 22:34:53 INFO (MainThread) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
2018-11-30 22:34:53 INFO (MainThread) [homeassistant.loader] Loaded api from homeassistant.components.api
2018-11-30 22:34:53 INFO (MainThread) [homeassistant.loader] Loaded http from homeassistant.components.http
2018-11-30 22:34:53 INFO (MainThread) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log
2018-11-30 22:34:53 INFO (MainThread) [homeassistant.loader] Loaded auth from homeassistant.components.auth
2018-11-30 22:34:53 INFO (MainThread) [homeassistant.loader] Loaded onboarding from homeassistant.components.onboarding
2018-11-30 22:34:53 INFO (MainThread) [homeassistant.loader] Loaded lovelace from homeassistant.components.lovelace
2018-11-30 22:34:53 INFO (MainThread) [homeassistant.loader] Loaded history from homeassistant.components.history
2018-11-30 22:34:53 INFO (MainThread) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
2018-11-30 22:34:53 INFO (MainThread) [homeassistant.setup] Setting up lovelace
2018-11-30 22:34:53 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 0.0 seconds.
2018-11-30 22:34:53 INFO (SyncWorker_11) [homeassistant.util.package] Attempting install of aiohttp_cors==0.7.0
2018-11-30 22:34:55 INFO (MainThread) [homeassistant.setup] Setting up http
2018-11-30 22:34:55 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2018-11-30 22:34:55 INFO (MainThread) [homeassistant.setup] Setting up onboarding
2018-11-30 22:34:55 INFO (MainThread) [homeassistant.setup] Setting up api
2018-11-30 22:34:55 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2018-11-30 22:34:55 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2018-11-30 22:34:55 INFO (MainThread) [homeassistant.setup] Setting up system_log
2018-11-30 22:34:55 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
2018-11-30 22:34:55 INFO (MainThread) [homeassistant.setup] Setting up auth
2018-11-30 22:34:55 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds.
2018-11-30 22:34:55 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
2018-11-30 22:34:55 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.0 seconds.
2018-11-30 22:34:55 INFO (SyncWorker_16) [homeassistant.util.package] Attempting install of sqlalchemy==1.2.14
2018-11-30 22:35:02 INFO (MainThread) [homeassistant.setup] Setting up recorder
2018-11-30 22:35:02 INFO (SyncWorker_19) [homeassistant.util.package] Attempting install of home-assistant-frontend==20181121.1
2018-11-30 22:35:02 WARNING (Recorder) [homeassistant.components.recorder.migration] Database is about to upgrade. Schema version: None
2018-11-30 22:35:02 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.3 seconds.
2018-11-30 22:35:02 INFO (MainThread) [homeassistant.setup] Setting up history
2018-11-30 22:35:02 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setting up frontend
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.2 seconds.
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded updater from homeassistant.components.updater
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded logbook from homeassistant.components.logbook
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded automation from homeassistant.components.automation
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded group from homeassistant.components.group
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded script from homeassistant.components.script
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded sensor.yr from homeassistant.components.sensor.yr
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setting up sensor
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setting up group
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.0 seconds.
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded conversation from homeassistant.components.conversation
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded config from homeassistant.components.config
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded map from homeassistant.components.map
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setting up map
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.0 seconds.
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded cloud from homeassistant.components.cloud
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded tts from homeassistant.components.tts
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded tts.google from homeassistant.components.tts.google
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded discovery from homeassistant.components.discovery
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded sun from homeassistant.components.sun
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setting up sun
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.0 seconds.
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setting up logbook
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setting up automation
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds.
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setting up script
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setting up conversation
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds.
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setting up config
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded config.automation from homeassistant.components.config.automation
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded config.customize from homeassistant.components.config.customize
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded config.auth from homeassistant.components.config.auth
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded config.device_registry from homeassistant.components.config.device_registry
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded config.auth_provider_homeassistant from homeassistant.components.config.auth_provider_homeassistant
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded config.core from homeassistant.components.config.core
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded config.entity_registry from homeassistant.components.config.entity_registry
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded config.group from homeassistant.components.config.group
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded config.config_entries from homeassistant.components.config.config_entries
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded config.hassbian from homeassistant.components.config.hassbian
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.loader] Loaded config.script from homeassistant.components.config.script
2018-11-30 22:35:12 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.0 seconds.
2018-11-30 22:35:12 INFO (SyncWorker_3) [homeassistant.util.package] Attempting install of distro==1.3.0
2018-11-30 22:35:14 INFO (MainThread) [homeassistant.setup] Setting up updater
2018-11-30 22:35:14 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds.
2018-11-30 22:35:14 INFO (SyncWorker_17) [homeassistant.util.package] Attempting install of netdisco==2.2.0
2018-11-30 22:35:17 INFO (MainThread) [homeassistant.setup] Setting up discovery
2018-11-30 22:35:17 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.0 seconds.
2018-11-30 22:35:17 INFO (SyncWorker_5) [homeassistant.util.package] Attempting install of xmltodict==0.11.0
2018-11-30 22:35:18 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.yr
2018-11-30 22:35:18 INFO (SyncWorker_16) [homeassistant.util.package] Attempting install of warrant==0.6.1
2018-11-30 22:35:19 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 6.2 seconds.
2018-11-30 22:35:30 INFO (MainThread) [homeassistant.setup] Setting up cloud
2018-11-30 22:35:30 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.0 seconds.
2018-11-30 22:35:30 INFO (SyncWorker_19) [homeassistant.util.package] Attempting install of mutagen==1.41.1
2018-11-30 22:35:32 INFO (MainThread) [homeassistant.setup] Setting up tts
2018-11-30 22:35:32 INFO (SyncWorker_10) [homeassistant.components.tts] Create cache dir /home/st/.homeassistant/tts.
2018-11-30 22:35:32 INFO (SyncWorker_14) [homeassistant.util.package] Attempting install of gTTS-token==1.1.3
2018-11-30 22:35:35 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 2.8 seconds.
2018-11-30 22:35:35 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 45.91s
2018-11-30 22:35:35 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2018-11-30 22:35:35 INFO (MainThread) [homeassistant.core] Timer:starting
2018-11-30 22:35:48 INFO (MainThread) [homeassistant.loader] Loaded cast from homeassistant.components.cast
2018-11-30 22:35:48 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: igd {‘host’: ‘192.168.1.254’, ‘port’: 5000, ‘ssdp_description’: ‘http://192.168.1.254:5000/rootDesc.xml’, ‘name’: ‘MediaAccess DGA4131FWB (1830JC4W0)’, ‘model_name’: ‘MediaAccess DG’, ‘model_number’: ‘Technicolor DGA4131FWB’, ‘serial’: ‘1830JC4W0’, ‘manufacturer’: ‘Technicolor’, ‘udn’: ‘uuid:f196c83e-3436-47dd-b136-a5539717c138’, ‘upnp_device_type’: ‘urn:schemas-upnp-org:device:InternetGatewayDevice:2’}
2018-11-30 22:35:48 INFO (SyncWorker_19) [homeassistant.util.package] Attempting install of pychromecast==2.1.0
2018-11-30 22:41:01 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {‘host’: ‘192.168.1.254’, ‘port’: 41952, ‘ssdp_description’: ‘http://192.168.1.254:41952/no_nonce_string/’, ‘name’: ‘OpenWrt DLNA Server’, ‘model_name’: ‘MediaAccess DGA4131FWB’, ‘model_number’: ‘Technicolor DGA4131FWB’, ‘serial’: ‘CP1830JC4W0’, ‘manufacturer’: ‘Technicolor’, ‘udn’: ‘uuid:8029cb46-e4f5-4ee9-b016-4a959b433ab1’, ‘upnp_device_type’: ‘urn:schemas-upnp-org:device:MediaServer:1’}
2018-11-30 23:35:14 INFO (MainThread) [homeassistant.loader] Loaded hassio from homeassistant.components.hassio
2018-11-30 23:35:14 INFO (MainThread) [homeassistant.components.updater] Submitted analytics to Home Assistant servers. Information submitted includes {‘arch’: ‘x86_64’, ‘dev’: False, ‘docker’: False, ‘os_name’: ‘Linux’, ‘python_version’: ‘3.6.7’, ‘timezone’: ‘UTC’, ‘version’: ‘0.83.2’, ‘virtualenv’: True, ‘hassio’: False, ‘distribution’: ‘ubuntu’, ‘os_version’: ‘18.04’, ‘huuid’: ‘6359d361b8074589a0b979ecf069f987’}
2018-11-30 23:35:14 ERROR (MainThread) [homeassistant.components.updater] Got unexpected response: None