I can’t update my HA to the last version.
When I try to do it I receive the following error:
Uninstalling homeassistant-0.50.1:
Exception:
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/shutil.py”, line 522, in move
os.rename(src, real_dst)
PermissionError: [Errno 13] Permesso negato: ‘/sr
v/homeassistant/homeassistant_venv/lib/python3.4/
site-packages/homeassistant-0.50.1.dist-info/DESC
RIPTION.rst’ -> ‘/tmp/pip-pq9lw61v-uninstall/srv/
homeassistant/homeassistant_venv/lib/python3.4/si
te-packages/homeassistant-0.50.1.dist-info/DESCRI
PTION.rst’
During handling of the above exception, another e
xception occurred:
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/site-packages/pip/basecommand.py”, lin
e 215, in main
status = self.run(options, args)
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/site-packages/pip/commands/install.py”
, line 342, in run
prefix=options.prefix_path,
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/site-packages/pip/req/req_set.py”, lin
e 778, in install
requirement.uninstall(auto_confirm=True)
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/site-packages/pip/req/req_install.py”,
line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File "/srv/homeassistant/homeassistant_venv/lib
/python3.4/site-packages/pip/req/req_uninstall.py
", line 115, in remove
renames(path, new_path)
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/site-packages/pip/utils/init.py”,
line 267, in renames
shutil.move(old, new)
File “/srv/homeassistant/homeassistant_venv/lib
/python3.4/shutil.py”, line 535, in move
os.unlink(src)
PermissionError: [Errno 13] Permesso negato: ‘/sr
v/homeassistant/homeassistant_venv/lib/python3.4/
site-packages/homeassistant-0.50.1.dist-info/DESC
RIPTION.rst’
I have the same issue. As Treno already said I believe you have to use sudo to update (it’s missing in the tutorial).
I tried that and then the update did finish correctly. Unfortunately there is still something wrong. My frontend keeps saying that there is another update (0.51.2). The update command stated everything is up to date. but when i check my version it says 0.50.2.
Somethng is going wrong with the latest updates…
my config:
Raspberry Pi 3B
Raspian Jessie (full, not lite)
HASS-config: in Virtualenv
I did run the update with sudo and with the created user “homeassistant”. I hope somebody can help.
I already found out… When using the Virtualenv the installation tutorial says: repeat steps 3, 5 and 6. That worked.
I just executed the regular update command with the homeassistant user.