My Upgrade with following commands:
sudo systemctl stop [email protected]
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant
failed with this error message:
Exception:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/commands/install.py”, line 272, in run
with self._build_session(options) as session:
File “/srv/homeassistant/lib/python3.4/site-packages/pip/basecommand.py”, line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File “/srv/homeassistant/lib/python3.4/site-packages/pip/download.py”, line 329, in init
self.headers[“User-Agent”] = user_agent()
File “/srv/homeassistant/lib/python3.4/site-packages/pip/download.py”, line 93, in user_agent
from pip._vendor import distro
File “/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/distro.py”, line 1050, in
_distro = LinuxDistribution()
File “/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/distro.py”, line 594, in init
if include_lsb else {}
File “/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/distro.py”, line 933, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout)
subprocess.CalledProcessError: Command ‘lsb_release -a’ returned non-zero exit status 1
Traceback (most recent call last):
File “/srv/homeassistant/bin/pip3”, line 11, in
sys.exit(main())
File “/srv/homeassistant/lib/python3.4/site-packages/pip/init.py”, line 233, in main
return command.main(cmd_args)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/basecommand.py”, line 251, in main
timeout=min(5, options.timeout)) as session:
File “/srv/homeassistant/lib/python3.4/site-packages/pip/basecommand.py”, line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File “/srv/homeassistant/lib/python3.4/site-packages/pip/download.py”, line 329, in init
self.headers[“User-Agent”] = user_agent()
File “/srv/homeassistant/lib/python3.4/site-packages/pip/download.py”, line 93, in user_agent
from pip._vendor import distro
File “/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/distro.py”, line 1050, in
_distro = LinuxDistribution()
File “/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/distro.py”, line 594, in init
if include_lsb else {}
File “/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/distro.py”, line 933, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout)
subprocess.CalledProcessError: Command ‘lsb_release -a’ returned non-zero exit status 1
Can someone tell me a solution?