Hass stopped

After a reboot HASS won’t start. I get this error

Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/bin/hass", line 11, in <module>
    sys.exit(main())
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/__main__.py", line 352, in main
    args = get_arguments()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/__main__.py", line 85, in get_arguments
    import homeassistant.config as config_util
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/config.py", line 15, in <module>
    from homeassistant import auth
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/auth.py", line 15, in <module>
    from homeassistant import data_entry_flow, requirements
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/data_entry_flow.py", line 5, in <module>
    from .core import callback
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/core.py", line 33, in <module>
    from homeassistant import loader
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/loader.py", line 23, in <module>
    from homeassistant.util import OrderedSet
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 779, in get_code
  File "<frozen importlib._bootstrap_external>", line 487, in _compile_bytecode
ValueError: bad marshal data (unknown type code)

sounds like the compiled version of the loader.py (loader.pyc) is corrupted. Are you using hassbian or hass.io?

I’am running hassbian.

I think you just need to recompile the pyc files by reload() or deleting the files. There’s probably a way to do it from cmd as well.