I’m getting the following error after installing to 0.38.1
(homeassistant_venv) homeassistant@hass2:~/.homeassistant$ hass
Config directory: /home/homeassistant/.homeassistant
17-02-12 10:50:10 INFO (Thread-3) [homeassistant.config] Upgrading config directory from 0.37.1 to 0.38.1
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/bin/hass", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.4/dist-packages/homeassistant/__main__.py", line 381, in main
exit_code = setup_and_run_hass(config_dir, args)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/__main__.py", line 293, in setup_and_run_hass
log_rotate_days=args.log_rotate_days)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 469, in from_config_file
hass.loop.run_until_complete(future)
File "/usr/lib/python3.4/asyncio/base_events.py", line 276, in run_until_complete
return future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 460, in _async_init_from_config_file
config_path, hass, verbose, skip_pip, log_rotate_days)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 502, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 386, in async_from_config_dict
None, conf_util.process_ha_config_upgrade, hass)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/config.py", line 251, in process_ha_config_upgrade
shutil.rmtree(lib_path)
File "/usr/lib/python3.4/shutil.py", line 463, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/usr/lib/python3.4/shutil.py", line 401, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/usr/lib/python3.4/shutil.py", line 421, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/usr/lib/python3.4/shutil.py", line 419, in _rmtree_safe_fd
os.unlink(name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: 'compat.pyc'