Traceback (most recent call last):
File "/Users/pblair/views/test-project/venv/lib/python3.6/site-packages/hatch/utils.py", line 124, in remove_path
shutil.rmtree(path)
File "/Users/pblair/views/test-project/venv/lib/python3.6/shutil.py", line 480, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/Users/pblair/views/test-project/venv/lib/python3.6/shutil.py", line 438, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/Users/pblair/views/test-project/venv/lib/python3.6/shutil.py", line 436, in _rmtree_safe_fd
os.unlink(name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: '__init__.cpython-36.opt-1.pyc'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/pblair/views/test-project/venv/bin/hatch", line 11, in <module>
sys.exit(hatch())
File "/Users/pblair/views/test-project/venv/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/Users/pblair/views/test-project/venv/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Users/pblair/views/test-project/venv/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/pblair/views/test-project/venv/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/pblair/views/test-project/venv/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/Users/pblair/views/test-project/venv/lib/python3.6/site-packages/hatch/commands/clean.py", line 77, in clean
removed_paths = clean_package(path, editable=package or local)
File "/Users/pblair/views/test-project/venv/lib/python3.6/site-packages/hatch/clean.py", line 76, in clean_package
remove_path(p)
File "/Users/pblair/views/test-project/venv/lib/python3.6/site-packages/hatch/utils.py", line 127, in remove_path
os.remove(path)
PermissionError: [Errno 13] Permission denied: '/Users/pblair/views/test-project/venv/lib/python3.6/importlib/__pycache__'