Update on macOS

Hi,

When I launch the update magic command pip3 install --upgrade home assistant, I have a error message

Installing collected packages: homeassistant
Found existing installation: homeassistant 0.48.0
Uninstalling homeassistant-0.48.0:
Successfully uninstalled homeassistant-0.48.0
Rolling back uninstall of homeassistant
Exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/local/lib/python3.6/site-packages/pip/commands/install.py”, line 342, in run
prefix=options.prefix_path,
File “/usr/local/lib/python3.6/site-packages/pip/req/req_set.py”, line 784, in install
**kwargs
File “/usr/local/lib/python3.6/site-packages/pip/req/req_install.py”, line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File “/usr/local/lib/python3.6/site-packages/pip/req/req_install.py”, line 1064, in move_wheel_files
isolated=self.isolated,
File “/usr/local/lib/python3.6/site-packages/pip/wheel.py”, line 492, in move_wheel_files
maker.make_multiple([’%s = %s’ % kv for kv in console.items()])
File “/usr/local/lib/python3.6/site-packages/pip/_vendor/distlib/scripts.py”, line 383, in make_multiple
filenames.extend(self.make(specification, options))
File “/usr/local/lib/python3.6/site-packages/pip/_vendor/distlib/scripts.py”, line 372, in make
self._make_script(entry, filenames, options=options)
File “/usr/local/lib/python3.6/site-packages/pip/_vendor/distlib/scripts.py”, line 276, in _make_script
self._write_script(scriptnames, shebang, script, filenames, ext)
File “/usr/local/lib/python3.6/site-packages/pip/_vendor/distlib/scripts.py”, line 250, in _write_script
self._fileop.write_binary_file(outname, script_bytes)
File “/usr/local/lib/python3.6/site-packages/pip/_vendor/distlib/util.py”, line 407, in write_binary_file
with open(path, ‘wb’) as f:
PermissionError: [Errno 1] Operation not permitted: ‘/bin/hass’

I think it’s a issue with the rootless feature in OSX but I don’t really understand why the program try to do write operation in /bin directory, while the hass file is in the directory /usr/local/bin/

Thanks,

Pierre