Cannot upgrade from 0.29.6 to 0.31.1

The upgrade process terminates with the following exception.
Can anyone help ?

Found existing installation: setuptools 28.1.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 0xe8 in position 408: invalid continuation byte

Sorry, never use the installer. You could try to clean out /srv/hass/hass_venv/lib/ before the upgrade.

1 Like

I was having a similar problem and that solved it. Thanks