Hello, I have been trying to update Home Assistant for a while now and the update fails every time. The working home assistant installation is running on a raspberry pi 3 (raspbian jesse )and i have tried to update is using
$ pip3 install --upgrade homeassistant
I always get the error below:
Installing collected packages: chardet, requests, pytz, astral, voluptuous, async-timeout, multidict, yarl, aiohttp, typing, MarkupSafe, jinja2, pyyaml, homeassistant
Found existing installation: chardet 2.3.0
Uninstalling chardet-2.3.0:
Exception:
Traceback (most recent call last):
File “/usr/lib/python3.4/shutil.py”, line 522, in move
os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: ‘/usr/bin/chardetect’ -> ‘/tmp/pip-j88l_lmk-uninstall/usr/bin/chardetect’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/local/lib/python3.4/dist-packages/pip/commands/install.py”, line 342, in run
prefix=options.prefix_path,
File “/usr/local/lib/python3.4/dist-packages/pip/req/req_set.py”, line 778, in install
requirement.uninstall(auto_confirm=True)
File “/usr/local/lib/python3.4/dist-packages/pip/req/req_install.py”, line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File “/usr/local/lib/python3.4/dist-packages/pip/req/req_uninstall.py”, line 115, in remove
renames(path, new_path)
File “/usr/local/lib/python3.4/dist-packages/pip/utils/init.py”, line 267, in renames
shutil.move(old, new)
File “/usr/lib/python3.4/shutil.py”, line 535, in move
os.unlink(src)
PermissionError: [Errno 13] Permission denied: ‘/usr/bin/chardetect’
What i have tried:
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
(get an error here, gile not found)
pip3 install --upgrade homeassistant
exit