Upgrade error 0.43.1

pi@raspberrypi:~ $ sudo systemctl stop [email protected]
pi@raspberrypi:~ $ sudo su -s /bin/bash homeassistant
homeassistant@raspberrypi:/home/pi $ source /srv/homeassistant/bin/activate
(homeassistant) homeassistant@raspberrypi:/home/pi $ pip3 install --upgrade homeassistant
Traceback (most recent call last):
  File "/srv/homeassistant/bin/pip3", line 7, in <module>
    from pip import main
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/__init__.py", line 28, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/vcs/subversion.py", line 9, in <module>
    from pip.index import Link
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/index.py", line 33, in <module>
    from pip._vendor import html5lib, requests, six
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/html5lib/__init__.py", line 16, in <module>
    from .html5parser import HTMLParser, parse, parseFragment
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/html5lib/html5parser.py", line 11, in <module>
    from . import _inputstream
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/html5lib/_inputstream.py", line 13, in <module>
    from . import _utils
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/html5lib/_utils.py", line 9, in <module>
    import xml.etree.cElementTree as default_etree
  File "/usr/lib/python3.4/xml/etree/cElementTree.py", line 3, in <module>
    from xml.etree.ElementTree import *
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1467, in exec_module
  File "<frozen importlib._bootstrap>", line 1570, in get_code
  File "<frozen importlib._bootstrap>", line 656, in _compile_bytecode
ValueError: bad marshal data (invalid reference)
(homeassistant) homeassistant@raspberrypi:/home/pi $


This may help also:

Ok,I test tomorrow, thank you

Hi everybody,

unfortunately I’ve got exactly the same issue when I try to upgrade (I’m in 0.45) hassbian…

I followed this :

cd /srv/hass/lib/python3.4/site-packages/homeassistant
sudo find . -name "*.pyc" -type f -delete
cd /srv/hass/lib/python3.4/site-packages/pytz/
sudo find . -name "*.pyc" -type f -delete

After this I can upgrade HA, but nothings work… Wemo is out, zwave is out, and other stuffs don’t work…

A reinstallation would be complicated because I’ve got a lot of things (Nginx + certificate, dash buttons, zwave, …)

Do you have a solution ?

thank you !

Finally, I had no solution…
So I reinstalled everything !