Update from 0.75 to 0.77.3

Hello,

I ty to update my Hassbian to 0.77.3 with the script:
sudo hassbian-config upgrade homeassistant

At the end I get this:

Collecting multidict<5.0,>=4.0 (from aiohttp==3.4.0->homeassistant==0.77.3)
  Downloading https://www.piwheels.org/simple/multidict/multidict-4.4.0-cp35-cp35m-linux_armv7l.whl (378kB)
Collecting pycparser (from cffi!=1.11.3,>=1.7->cryptography==2.3.1->homeassistant==0.77.3)
  Downloading https://www.piwheels.org/simple/pycparser/pycparser-2.18-py2.py3-none-any.whl (209kB)
Installing collected packages: PyJWT, pycparser, cffi, asn1crypto, cryptography, certifi, pip, bcrypt, multidict, aiohttp, homeassistant
  Found existing installation: certifi 2018.8.13
    Uninstalling certifi-2018.8.13:
      Successfully uninstalled certifi-2018.8.13
  Found existing installation: pip 9.0.1
Exception:
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/commands/install.py", line 360, in run
    prefix=options.prefix_path,
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_set.py", line 778, in install
    requirement.uninstall(auto_confirm=True)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_install.py", line 734, in uninstall
    FakeFile(dist.get_metadata_lines('entry_points.txt'))
  File "/srv/homeassistant/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 1467, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/srv/homeassistant/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 1464, in get_metadata
    return value.decode('utf-8') if six.PY3 else value
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Deactivating virtualenv
Restarting Home Assistant
Checking the installation...

Upgrade complete..
Note that it may take some time to start up after an upgrade.

When I restart the version on the frontend still says 0.75.3.

Is there an other way to update?

Thanks

Erik

You have an old version of pip try upgrading that first.

OK, thank you for the fast reply but how?

I tryed:

sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 install --upgrade pip

Outcome:

(homeassistant) homeassistant@hassbian:/home/pi $ pip3 install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 9.0.1
Exception:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/srv/homeassistant/lib/python3.5/site-packages/pip/commands/install.py”, line 360, in run
prefix=options.prefix_path,
File “/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_set.py”, line 778, in install
requirement.uninstall(auto_confirm=True)
File “/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_install.py”, line 734, in uninstall
FakeFile(dist.get_metadata_lines(‘entry_points.txt’))
File “/srv/homeassistant/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/init.py”, line 1467, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File “/srv/homeassistant/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/init.py”, line 1464, in get_metadata
return value.decode(‘utf-8’) if six.PY3 else value
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte

E.

hmmm…
How about:

sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 install --upgrade setuptools wheel
pip3 install --upgrade pip
deactivate
exit

And then:

sudo hassbian-config upgrade homeassistant

Same thing:

pi@hassbian:~ $ sudo su -s /bin/bash homeassistant
homeassistant@hassbian:/home/pi $ source /srv/homeassistant/bin/activate
(homeassistant) homeassistant@hassbian:/home/pi $ pip3 install --upgrade setuptools wheel
Requirement already up-to-date: setuptools in /srv/homeassistant/lib/python3.5/site-packages
Requirement already up-to-date: wheel in /srv/homeassistant/lib/python3.5/site-packages
(homeassistant) homeassistant@hassbian:/home/pi $ pip3 install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 9.0.1
Exception:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/srv/homeassistant/lib/python3.5/site-packages/pip/commands/install.py”, line 360, in run
prefix=options.prefix_path,
File “/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_set.py”, line 778, in install
requirement.uninstall(auto_confirm=True)
File “/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_install.py”, line 734, in uninstall
FakeFile(dist.get_metadata_lines(‘entry_points.txt’))
File “/srv/homeassistant/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/init.py”, line 1467, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File “/srv/homeassistant/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/init.py”, line 1464, in get_metadata
return value.decode(‘utf-8’) if six.PY3 else value
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte
(homeassistant) homeassistant@hassbian:/home/pi $

You could try this

sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant
deactivate
exit

That will not fix your pip issue, but may get HA upgraded.