Error upgrading to 0.45.1

I am upgrading from 0.44.1 to 0.45.1 and I am encountering an error I have not seen before. Any ideas on the permission error. I am running in a virtualenv. Python version is 3.5.2. Everything works fine in 0.44.1

Traceback (most recent call last):
File "/srv/homeassistant/bin/hass", line 11, in <module>
  sys.exit(main())
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/__main__.py", line 396, in main
  exit_code = setup_and_run_hass(config_dir, args)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/__main__.py", line 307, in setup_and_run_hass
  log_rotate_days=args.log_rotate_days)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/bootstrap.py", line 167, in from_config_file
  config_path, hass, verbose, skip_pip, log_rotate_days)
File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
  return future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
  raise self._exception
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
  result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/bootstrap.py", line 202, in async_from_config_file
  config_dict, hass, enable_log=False, skip_pip=skip_pip)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/bootstrap.py", line 87, in async_from_config_dict
  None, conf_util.process_ha_config_upgrade, hass)
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
  yield self  # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
  future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
  raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
  result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config.py", line 290, in process_ha_config_upgrade
  shutil.rmtree(lib_path)
File "/srv/homeassistant/lib/python3.5/shutil.py", line 474, in rmtree
  _rmtree_safe_fd(fd, path, onerror)
File "/srv/homeassistant/lib/python3.5/shutil.py", line 412, in _rmtree_safe_fd
  _rmtree_safe_fd(dirfd, fullname, onerror)
File "/srv/homeassistant/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
  onerror(os.unlink, fullname, sys.exc_info())
File "/srv/homeassistant/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
  os.unlink(name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: 'top_level.txt'

I got this when trying to upgrade

root@hassbian:/home/homeassistant/.homeassistant# pip3 install --upgrade homeassistant
Downloading/unpacking homeassistant
Downloading homeassistant-0.45.1-py2.py3-none-any.whl (7.2MB): 7.2MB downloaded
Downloading/unpacking jinja2>=2.9.5 (from homeassistant)
Downloading Jinja2-2.9.6-py2.py3-none-any.whl (340kB): 340kB downloaded
Downloading/unpacking typing>=3,<4 (from homeassistant)
Downloading typing-3.6.1.tar.gz (66kB): 66kB downloaded
Running setup.py (path:/tmp/pip-build-92chp70s/typing/setup.py) egg_info for package typing

Requirement already up-to-date: aiohttp==2.0.7 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Downloading/unpacking astral==1.4 (from homeassistant)
Downloading astral-1.4-py2.py3-none-any.whl
Downloading/unpacking pytz>=2017.02 (from homeassistant)
Downloading pytz-2017.2-py2.py3-none-any.whl (484kB): 484kB downloaded
Downloading/unpacking chardet==3.0.2 (from homeassistant)
Downloading chardet-3.0.2-py2.py3-none-any.whl (133kB): 133kB downloaded
Downloading/unpacking pip>=7.1.0 (from homeassistant)
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Downloading/unpacking requests>=2,<3 from https://pypi.python.org/packages/e4/b0/286e8a936158e5cc5791d5fa3bc4b1d5a7e1ff4e5b3f3766b63d8e97708a/requests-2.14.2-py2.py3-none-any.whl#md5=a1b2f02e7ba45dff7c76f621cde042c4 (from homeassistant)
Downloading requests-2.14.2-py2.py3-none-any.whl (560kB): 560kB downloaded
Downloading/unpacking voluptuous==0.10.5 (from homeassistant)
Downloading voluptuous-0.10.5.tar.gz (41kB): 41kB downloaded
Running setup.py (path:/tmp/pip-build-92chp70s/voluptuous/setup.py) egg_info for package voluptuous
WARNING: Could not locate pandoc, using Markdown long_description.

Requirement already up-to-date: async-timeout==1.2.1 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Downloading/unpacking pyyaml>=3.11,<4 (from homeassistant)
Downloading PyYAML-3.12.tar.gz (253kB): 253kB downloaded
Running setup.py (path:/tmp/pip-build-92chp70s/pyyaml/setup.py) egg_info for package pyyaml

Downloading/unpacking MarkupSafe>=0.23 (from jinja2>=2.9.5->homeassistant)
Downloading MarkupSafe-1.0.tar.gz
Running setup.py (path:/tmp/pip-build-92chp70s/MarkupSafe/setup.py) egg_info for package MarkupSafe

Requirement already up-to-date: multidict>=2.1.4 in /usr/local/lib/python3.4/dist-packages (from aiohttp==2.0.7->homeassistant)
Requirement already up-to-date: yarl>=0.10.0,<0.11 in /usr/local/lib/python3.4/dist-packages (from aiohttp==2.0.7->homeassistant)
Installing collected packages: homeassistant, jinja2, typing, astral, pytz, chardet, pip, requests, voluptuous, pyyaml, MarkupSafe
*** Error compiling ‘/tmp/pip-build-92chp70s/jinja2/jinja2/asyncfilters.py’…
File “/tmp/pip-build-92chp70s/jinja2/jinja2/asyncfilters.py”, line 7
async def auto_to_seq(value):
^
SyntaxError: invalid syntax

*** Error compiling ‘/tmp/pip-build-92chp70s/jinja2/jinja2/asyncsupport.py’…
File “/tmp/pip-build-92chp70s/jinja2/jinja2/asyncsupport.py”, line 22
async def concat_async(async_gen):
^
SyntaxError: invalid syntax

Running setup.py install for typing

Found existing installation: chardet 3.0.3
Uninstalling chardet:
Successfully uninstalled chardet
Found existing installation: pip 1.5.6
Not uninstalling pip at /usr/lib/python3/dist-packages, owned by OS
Found existing installation: requests 2.4.3
Not uninstalling requests at /usr/lib/python3/dist-packages, owned by OS
Running setup.py install for voluptuous
WARNING: Could not locate pandoc, using Markdown long_description.

Running setup.py install for pyyaml
checking if libyaml is compilable
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-armv7l-3.4/check_libyaml.c -o build/temp.linux-armv7l-3.4/check_libyaml.o
build/temp.linux-armv7l-3.4/check_libyaml.c:2:18: fatal error: yaml.h: No such file or directory
#include <yaml.h>
^
compilation terminated.

libyaml is not found or a compiler error: forcing --without-libyaml
(if libyaml is installed correctly, you may need to
 specify the option --include-dirs or uncomment and
 modify the parameter include_dirs in setup.cfg)

Running setup.py install for MarkupSafe

building 'markupsafe._speedups' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c markupsafe/_speedups.c -o build/temp.linux-armv7l-3.4/markupsafe/_speedups.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/markupsafe/_speedups.o -o build/lib.linux-armv7l-3.4/markupsafe/_speedups.cpython-34m.so

Successfully installed homeassistant jinja2 typing astral pytz chardet pip requests voluptuous pyyaml MarkupSafe
Cleaning up…
root@hassbian:/home/homeassistant/.homeassistant#