Help upgrade 0.57.2 to 0.57.3

pi@raspberrypi:~ $ sudo su -s /bin/bash homeassistant
homeassistant@raspberrypi:/home/pi$ pip3 install --upgrade homeassistant
Collecting homeassistant
Using cached homeassistant-0.57.3-py2.py3-none-any.whl
Collecting typing<4,>=3 (from homeassistant)
Using cached typing-3.6.2-py2-none-any.whl
Collecting aiohttp==2.2.5 (from homeassistant)
Using cached aiohttp-2.2.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-LN7gYC/aiohttp/setup.py”, line 66, in
raise RuntimeError(“aiohttp requires Python 3.4.2+”)
RuntimeError: aiohttp requires Python 3.4.2+

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-LN7gYC/aiohttp/

Anyone can help me with this error

Assuming you have one, you need to activate the virtual environment before doing the upgrade - something like

source /srv/homeassistant/bin/activate

depending on how you installed it.

1 Like

Thanks gpbenton, :smile:

you are absolutely right

This is the correct :
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/homeassistant_venv/bin/activate
pip3 install --upgrade homeassistant

1 Like