You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing a problem while running pre-commit install inside Gitpod. This is the error I'm getting while running the pre-commit install command in gitpod.
<summary>Error running pre-commit</summary>
<br>
(pandas-dev) gitpod > /workspace/pandas $ pre-commit install
An unexpected error has occurred: PermissionError: [Errno 13] Permission denied: '/home/gitpod/.cache/pre-commit'
Traceback (most recent call last):
File "/home/gitpod/mambaforge3/envs/pandas-dev/lib/python3.8/site-packages/pre_commit/error_handler.py", line 73, in error_handler
yield
File "/home/gitpod/mambaforge3/envs/pandas-dev/lib/python3.8/site-packages/pre_commit/main.py", line 340, in main
store = Store()
File "/home/gitpod/mambaforge3/envs/pandas-dev/lib/python3.8/site-packages/pre_commit/store.py", line 51, in __init__
os.makedirs(self.directory, exist_ok=True)
File "/home/gitpod/mambaforge3/envs/pandas-dev/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/gitpod/.cache/pre-commit'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/gitpod/mambaforge3/envs/pandas-dev/bin/pre-commit", line 11, in <module>
sys.exit(main())
File "/home/gitpod/mambaforge3/envs/pandas-dev/lib/python3.8/site-packages/pre_commit/main.py", line 405, in main
raise AssertionError(
File "/home/gitpod/mambaforge3/envs/pandas-dev/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/home/gitpod/mambaforge3/envs/pandas-dev/lib/python3.8/site-packages/pre_commit/error_handler.py", line 81, in error_handler
_log_and_exit(msg, ret_code, e, traceback.format_exc())
File "/home/gitpod/mambaforge3/envs/pandas-dev/lib/python3.8/site-packages/pre_commit/error_handler.py", line 31, in _log_and_exit
storedir = Store().directory
File "/home/gitpod/mambaforge3/envs/pandas-dev/lib/python3.8/site-packages/pre_commit/store.py", line 51, in __init__
os.makedirs(self.directory, exist_ok=True)
File "/home/gitpod/mambaforge3/envs/pandas-dev/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/gitpod/.cache/pre-commit'
(pandas-dev) gitpod > /workspace/pandas $
Though when I do pip install pre-commit , it says all the requirement are satisfied and no error is shown.
The text was updated successfully, but these errors were encountered:
Yeah, I was going to update the Gitpod this week, so I will try to resolve this issue as well. I'll mention this issue when I open the PR, so you will be notified when it's resolved.
Hi Pandas team,
I am facing a problem while running
pre-commit install
inside Gitpod. This is the error I'm getting while running thepre-commit install
command in gitpod.Though when I do
pip install pre-commit
, it says all the requirement are satisfied and no error is shown.The text was updated successfully, but these errors were encountered: