Error when restarting hass

Hi all,

I just restarted the Pi with HA and found this error in the log:

Jun 25 12:05:47 dyaHomeAutomation systemd[1]: Starting Home Assistant...
Jun 25 12:05:47 dyaHomeAutomation systemd[1]: Started Home Assistant.
Jun 25 12:05:47 dyaHomeAutomation hass[3802]: Traceback (most recent call last):
Jun 25 12:05:47 dyaHomeAutomation hass[3802]: File "/srv/hass/hass_venv/bin/hass", line 7, in <module>
Jun 25 12:05:47 dyaHomeAutomation hass[3802]: from homeassistant.__main__ import main
Jun 25 12:05:47 dyaHomeAutomation hass[3802]: ImportError: No module named 'homeassistant'
Jun 25 12:05:47 dyaHomeAutomation systemd[1]: home-assistant.service: main process exited, code=exited, status=1/FAILURE
Jun 25 12:05:47 dyaHomeAutomation systemd[1]: Unit home-assistant.service entered failed state.

ideas? … HA is completely stopped right now. :frowning:

thanks in advance!

just a quick update on this one.

I re-installed everything :frowning:

I have the same, happened yesterday and cant seem to fix this.

HASS was running normally for the last couple weeks.

update:

upgrade seems to fail as well:

(hass_venv) hass@raspberrypi:~/.homeassistant$ pip3 install --upgrade homeassistant
Collecting homeassistant
Using cached homeassistant-0.28.2-py2.py3-none-any.whl
Requirement already up-to-date: typing<4,>=3 in /srv/hass/hass_venv/lib/python3.4/site-packages (from homeassistant)
Requirement already up-to-date: requests<3,>=2 in /srv/hass/hass_venv/lib/python3.4/site-packages (from homeassistant)
Requirement already up-to-date: pyyaml<4,>=3.11 in /srv/hass/hass_venv/lib/python3.4/site-packages (from homeassistant)
Requirement already up-to-date: pytz>=2016.6.1 in /srv/hass/hass_venv/lib/python3.4/site-packages (from homeassistant)
Requirement already up-to-date: voluptuous==0.9.2 in /srv/hass/hass_venv/lib/python3.4/site-packages (from homeassistant)
Requirement already up-to-date: jinja2>=2.8 in /srv/hass/hass_venv/lib/python3.4/site-packages (from homeassistant)
Requirement already up-to-date: pip>=7.0.0 in /srv/hass/hass_venv/lib/python3.4/site-packages (from homeassistant)
Collecting setuptools>=0.6b1 (from voluptuous==0.9.2->homeassistant)
Using cached setuptools-27.3.0-py2.py3-none-any.whl
Requirement already up-to-date: MarkupSafe in /srv/hass/hass_venv/lib/python3.4/site-packages (from jinja2>=2.8->homeassistant)
Installing collected packages: homeassistant, setuptools
Found existing installation: homeassistant 0.27.0
Exception:
Traceback (most recent call last):
File “/srv/hass/hass_venv/lib/python3.4/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/srv/hass/hass_venv/lib/python3.4/site-packages/pip/commands/install.py”, line 317, in run
prefix=options.prefix_path,
File “/srv/hass/hass_venv/lib/python3.4/site-packages/pip/req/req_set.py”, line 736, in install
requirement.uninstall(auto_confirm=True)
File “/srv/hass/hass_venv/lib/python3.4/site-packages/pip/req/req_install.py”, line 695, in uninstall
for path in pip.wheel.uninstallation_paths(dist):
File “/srv/hass/hass_venv/lib/python3.4/site-packages/pip/wheel.py”, line 535, in unique
for item in fn(*args, **kw):
File “/srv/hass/hass_venv/lib/python3.4/site-packages/pip/wheel.py”, line 554, in uninstallation_paths
r = csv.reader(FakeFile(dist.get_metadata_lines(‘RECORD’)))
File “/srv/hass/hass_venv/lib/python3.4/site-packages/pip/_vendor/pkg_resources/init.py”, line 1477, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File “/srv/hass/hass_venv/lib/python3.4/site-packages/pip/_vendor/pkg_resources/init.py”, line 1474, in get_metadata
return self._get(self._fn(self.egg_info, name)).decode(“utf-8”)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xc2 in position 23589: invalid continuation byte

yeah, I tried that too …

eventually, the only way I made it work back was re-installing.

I have now move to Docker so, re-install is done in a matter of minutes. :slight_smile:

Thank you for your answer, I am still hoping it is a small thing :stuck_out_tongue_winking_eye:

Please see if this will work…

thank you @hareeshmu, unfortunately that did not do the trick for me :frowning:

also initiated a reinstall :slight_smile: