Problem with upgrade

Hello,

I installed my Pi 3 with HASSbian 1.1 installer.
When I follow the upgrade procedure I got stuck on the “change to virtual enviroment”.
When I type:

source /srv/homeassistant/homeassistant_venv/bin/activate

I got this error:

bash: /srv/homeassistant/homeassistant_venv/bin/activate: No such file or directory

WHen I try to proceed with the installation I got:

homeassistant@hassbian:/srv/homeassistant $ pip3 install --upgrade homeassistant Requirement already up-to-date: homeassistant in /usr/local/lib/python3.4/dist-packages
Requirement already up-to-date: pyyaml<4,>=3.11 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Requirement already up-to-date: typing<4,>=3 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Requirement already up-to-date: requests<3,>=2 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Requirement already up-to-date: voluptuous==0.9.3 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Requirement already up-to-date: async-timeout==1.1.0 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Requirement already up-to-date: aiohttp==1.3.3 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Requirement already up-to-date: jinja2>=2.9.5 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Requirement already up-to-date: pip>=7.1.0 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Requirement already up-to-date: pytz>=2016.10 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Requirement already up-to-date: setuptools>=0.6b1 in /usr/local/lib/python3.4/dist-packages (from voluptuous==0.9.3->homeassistant)
Requirement already up-to-date: chardet in /usr/lib/python3/dist-packages (from aiohttp==1.3.3->homeassistant)
Requirement already up-to-date: multidict>=2.1.4 in /usr/local/lib/python3.4/dist-packages (from aiohttp==1.3.3->homeassistant)
Requirement already up-to-date: yarl<0.10,>=0.9.8 in /usr/local/lib/python3.4/dist-packages (from aiohttp==1.3.3->homeassistant)
Collecting MarkupSafe>=0.23 (from jinja2>=2.9.5->homeassistant)
Using cached MarkupSafe-1.0.tar.gz
Could not import setuptools which is required to install from a source distribution.
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/pip/req/req_install.py”, line 387, in setup_py
import setuptools # noqa
File “/usr/local/lib/python3.4/dist-packages/setuptools/init.py”, line 12, in
import setuptools.version
File “/usr/local/lib/python3.4/dist-packages/setuptools/version.py”, line 1, in
import pkg_resources
File “/usr/local/lib/python3.4/dist-packages/pkg_resources/init.py”, line 70, in
import packaging.version
ImportError: No module named ‘packaging’

What’s wrong here?

Erik

Should be:

source /srv/homeassistant/bin/activate

https://home-assistant.io/docs/hassbian/common-tasks/#update-home-assistant

1 Like