HA stopped working after updating to 0.38.3

hi folks,

after updating my raspberry hass image setup i get strange warning and can’t (re)start my instance.

journalctl -fu [email protected]:

Feb 17 01:34:17 pi3 systemd[1]: Started Home Assistant for homeassistant.
Feb 17 01:34:18 pi3 hass[3355]: Traceback (most recent call last):
Feb 17 01:34:18 pi3 hass[3355]: File “/srv/homeassistant/lib/python3.4/site-packages/voluptuous/init.py”, line 4, in
Feb 17 01:34:18 pi3 hass[3355]: from schema_builder import *
Feb 17 01:34:18 pi3 hass[3355]: ImportError: No module named ‘schema_builder’
Feb 17 01:34:18 pi3 hass[3355]: During handling of the above exception, another exception occurred:
Feb 17 01:34:18 pi3 hass[3355]: Traceback (most recent call last):
Feb 17 01:34:18 pi3 hass[3355]: File “/srv/homeassistant/lib/python3.4/site-packages/voluptuous/schema_builder.py”, line 9, in
Feb 17 01:34:18 pi3 hass[3355]: import error as er
Feb 17 01:34:18 pi3 hass[3355]: ImportError: No module named ‘error’
Feb 17 01:34:18 pi3 hass[3355]: During handling of the above exception, another exception occurred:
Feb 17 01:34:18 pi3 hass[3355]: Traceback (most recent call last):
Feb 17 01:34:18 pi3 hass[3355]: File “/srv/homeassistant/bin/hass”, line 11, in
Feb 17 01:34:18 pi3 hass[3355]: sys.exit(main())
Feb 17 01:34:18 pi3 hass[3355]: File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/main.py”, line 364, in main
Feb 17 01:34:18 pi3 hass[3355]: args = get_arguments()
Feb 17 01:34:18 pi3 hass[3355]: File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/main.py”, line 121, in get_arguments
Feb 17 01:34:18 pi3 hass[3355]: import homeassistant.config as config_util
Feb 17 01:34:18 pi3 hass[3355]: File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/config.py”, line 12, in
Feb 17 01:34:18 pi3 hass[3355]: import voluptuous as vol
Feb 17 01:34:18 pi3 hass[3355]: File “/srv/homeassistant/lib/python3.4/site-packages/voluptuous/init.py”, line 9, in
Feb 17 01:34:18 pi3 hass[3355]: from .schema_builder import *
Feb 17 01:34:18 pi3 hass[3355]: File “/srv/homeassistant/lib/python3.4/site-packages/voluptuous/schema_builder.py”, line 11, in
Feb 17 01:34:18 pi3 hass[3355]: from . import error as er
Feb 17 01:34:18 pi3 hass[3355]: TypeError: source code string cannot contain null bytes
Feb 17 01:34:18 pi3 systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Feb 17 01:34:18 pi3 systemd[1]: Unit [email protected] entered failed state.

i found an old thread advising the deletion of *pyc files and i did that without success :confused:

any help is appreciated!

I “solved” it.

reinstalling “voluptuous” inside the virtual env via pip3 did the trick.

Hi!
I’m having a similar issue:

journalctl -f -u [email protected] 
-- Logs begin at Sa 2017-02-18 14:07:43 CET. --
Feb 18 14:32:36 pi3 hass[3747]: import homeassistant.config as config_util
Feb 18 14:32:36 pi3 hass[3747]: File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/config.py", line 21, in <module>
Feb 18 14:32:36 pi3 hass[3747]: import homeassistant.helpers.config_validation as cv
Feb 18 14:32:36 pi3 hass[3747]: File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/config_validation.py", line 23, in <module>
Feb 18 14:32:36 pi3 hass[3747]: from homeassistant.helpers import template as template_helper
Feb 18 14:32:36 pi3 hass[3747]: File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/template.py", line 8, in <module>
Feb 18 14:32:36 pi3 hass[3747]: from jinja2.sandbox import ImmutableSandboxedEnvironment
Feb 18 14:32:36 pi3 hass[3747]: ImportError: No module named 'jinja2.sandbox'
Feb 18 14:32:36 pi3 systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Feb 18 14:32:36 pi3 systemd[1]: Unit [email protected] entered failed state.

reinstalling jinja2 didn’t help.

Are there any other suggestions but reinstalling the mentioned module?

Thanks!!

dunno what fixed it really. first i installed an old HA version than uninstalled and reinstalled the corrupted module followed by the regular update to 0.38.3.

hope that works for you!