Description of problem:
I can't restart homeassistant from the UI (/config/core). The command is always unsuccesful and generates a warning about the inability to install package colorlog. The only chance to restart homeassistant is by host_reboot, which takes forever to get the system up and running again. I'm sorry if this has been already covered, I'm relatively new to Home Assistant and couldn't find any hint about this issue elsewhere. Thanks for cooperation!
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
homeassistant:
# Name of the location where Home Assistant is running
name: My Smart Home
# Location required to calculate the time the sun rises and sets
latitude: !secret latitude_home
longitude: !secret longitude_home
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 55
# metric for Metric, imperial for Imperial
unit_system: metric
# C for Celcius, F for Fahrenheit
temperature_unit: C
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: CET
# Customization file
customize: !include customize.yaml
customize_glob: !include customize_glob.yaml
packages: !include_dir_named packages
# Show links to resources in log and frontend
#introduction:
frontend:
themes: !include themes.yaml
weather:
- platform: yweather
name: yweather
woeid: !secret woeid
- platform: darksky
api_key: !secret darksky_api_key
mode: daily
ffmpeg:
updater:
include_used_components: true
# Enables configuration UI
config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
http:
base_url: !secret base_url
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
# Discover some devices automatically
# discovery:
# ignore:
# - apple_tv
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
hassio:
# Enables support for tracking state changes over time
history:
# purge recorder for smaller db
recorder:
purge_keep_days: 5
purge_interval: 1
exclude:
domains:
- group
- weblink
- updater
- history_graph
- scan_store
- zone
- zwave
entities:
- sun.sun
- sensor.date
- sensor.time
- sensor.date__time
- sensor.last_boot
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
# Sensors
sensor: !include sensors.yaml
# Text to speech
tts:
- platform: google
language: 'it'
# Cloud
cloud:
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
panel_iframe:
device_tracker:
- platform: nmap_tracker
hosts:
- 192.168.1.94
- 192.168.1.77
- 192.168.1.95
consider_home: 300
track_new_devices: yes
home_interval: 10
exclude:
zone: !include zones.yaml
camera: !include cameras.yaml
tuya:
username: !secret tuya_user
password: !secret tuya_password
country_code: 39
platform: smart_life
google_assistant:
project_id: !secret google_project_id
api_key: !secret google_project_api_key
exposed_domains:
- switch
- light
- group
ifttt:
key: !secret ifttt_key
input_boolean: !include input_booleans.yaml
switch: !include switches.yaml
google:
client_id: !secret google_client_id
client_secret: !secret google_client_secret
media_player:
- platform: samsungtv
host: 192.168.1.71
name: TV Samsung 46 Soggiorno
mac: !secret samsungtv_mac
wake_on_lan:
input_select:
change_theme:
name: Cambia Tema
options:
- seleziona
- default
- Dark - Blue
- Dark - Cyan
- Dark - Green
- Dark - Light Red
- Gray & Green
- Light - Cyan
- Light - Green
- Light - Purple
initial: seleziona
icon: mdi:format-paint
shopping_list:
netatmo2:
api_key: !secret netatmo2_api_key
secret_key: !secret netatmo2_secret_key
username: !secret netatmo2_username
password: !secret netatmo2_password
discovery: False
climate:
- platform: netatmo2
notify:
- name: Telegram
platform: telegram
chat_id: !secret telegram_chat_id
telegram_bot:
- platform: polling
api_key: !secret telegram_bot_api_key
allowed_chat_ids:
- !secret telegram_bot_allowed_chat_ids
lovelace:
mode: yaml
owntracks:
max_gps_accuracy: 200
events_only: false
rest_command:
google_backup:
url: !secret rest_command_google_backup_url
timeout: '300'
xiaomi_aqara:
discovery_retry: 5
gateways:
- host: 192.168.1.113
key: !secret xiaomi_aqara_key
mac: !secret xiaomi_aqara_mac
Traceback (if applicable):
INFO:homeassistant.util.package:Attempting install of colorlog==4.0.2
ERROR:homeassistant.util.package:Unable to install package colorlog==4.0.2: Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2869, in _dep_map
return self.__dep_map
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2663, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2860, in _parsed_pkg_info
return self._pkg_info
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2663, in __getattr__
raise AttributeError(attr)
AttributeError: _pkg_info
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pip/_internal/basecommand.py", line 141, in main
status = self.run(options, args)
File "/usr/local/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 330, in run
self._warn_about_conflicts(to_install)
File "/usr/local/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 456, in _warn_about_conflicts
package_set, _dep_info = check_install_conflicts(to_install)
File "/usr/local/lib/python3.6/site-packages/pip/_internal/operations/check.py", line 98, in check_install_conflicts
package_set = create_package_set_from_installed()
File "/usr/local/lib/python3.6/site-packages/pip/_internal/operations/check.py", line 41, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dist.requires())
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2607, in requires
dm = self._dep_map
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2871, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2880, in _compute_dependencies
for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2862, in _parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1788, in get_metadata
raise KeyError("No metadata except PKG-INFO is available")
KeyError: 'No metadata except PKG-INFO is available'
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Aborting script, could not install dependency colorlog==4.0.2
Additional information:
I cannot replicate the change in configuration that led to this issue, but the problem was present also in previous releases (at least 0.84) of HA
Home Assistant release with the issue:
0.85.1
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io **Component/platform:**Raspberry Pi 3 B+
Description of problem: I can't restart homeassistant from the UI (/config/core). The command is always unsuccesful and generates a warning about the inability to install package colorlog. The only chance to restart homeassistant is by host_reboot, which takes forever to get the system up and running again. I'm sorry if this has been already covered, I'm relatively new to Home Assistant and couldn't find any hint about this issue elsewhere. Thanks for cooperation!
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information: I cannot replicate the change in configuration that led to this issue, but the problem was present also in previous releases (at least 0.84) of HA