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'm getting the following error when trying to trash (delete) a notebook (Untitled.ipynb):
Traceback (most recent call last):
File "/ebio/abt3_projects/software/miniconda3_gt4.4/lib/python3.6/site-packages/send2trash/plat_other.py",
line 141, in find_ext_volume_fallback_trash check_create(trash_dir) File "/ebio/abt3_projects/software/miniconda3_gt4.4/lib/python3.6/site-packages/send2trash/plat_other.py",
line 86, in check_create os.makedirs(dir, 0o700) File "/ebio/abt3_projects/software/miniconda3_gt4.4/lib/python3.6/os.py",
line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: b'/ebio/abt3_projects/.Trash-6354'
During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/ebio/abt3_projects/software/miniconda3_gt4.4/lib/python3.6/site-packages/tornado/web.py", line 1512, in _execute result = yield result
File "/ebio/abt3_projects/software/miniconda3_gt4.4/lib/python3.6/site-packages/tornado/gen.py", line 1055, in run value = future.result()
File "/ebio/abt3_projects/software/miniconda3_gt4.4/lib/python3.6/site-packages/tornado/concurrent.py", line 238, in result raise_exc_info(self._exc_info) File "<string>", line 4, in raise_exc_info
File "/ebio/abt3_projects/software/miniconda3_gt4.4/lib/python3.6/site-packages/tornado/gen.py", line 307, in wrapper yielded = next(result)
File "/ebio/abt3_projects/software/miniconda3_gt4.4/lib/python3.6/site-packages/notebook/services/contents/handlers.py", line 235, in delete yield gen.maybe_future(cm.delete(path))
File "/ebio/abt3_projects/software/miniconda3_gt4.4/lib/python3.6/site-packages/notebook/services/contents/manager.py", line 278, in delete self.delete_file(path)
File "/ebio/abt3_projects/software/miniconda3_gt4.4/lib/python3.6/site-packages/notebook/services/contents/filemanager.py", line 499, in delete_file send2trash(os_path)
File "/ebio/abt3_projects/software/miniconda3_gt4.4/lib/python3.6/site-packages/send2trash/plat_other.py", line 191, in send2trash dest_trash = find_ext_volume_trash(topdir)
File "/ebio/abt3_projects/software/miniconda3_gt4.4/lib/python3.6/site-packages/send2trash/plat_other.py", line 151, in find_ext_volume_trash trash_dir = find_ext_volume_fallback_trash(volume_root)
File "/ebio/abt3_projects/software/miniconda3_gt4.4/lib/python3.6/site-packages/send2trash/plat_other.py", line 144, in find_ext_volume_fallback_trash raise TrashPermissionError(e.filename) send2trash.exceptions.TrashPermissionError: [Errno 13] Permission denied: b'/ebio/abt3_projects/.Trash-6354'
Apparently, Jupyter is trying to write to the /ebio/abt3_projects/ folder, but I don't have access to this directory. How do I change the directory for ./Trash-*?
I'm running Jupyter installed in conda 4.4.10 on Ubuntu 16.04.3. Here's my Jupyter install info:
This should be fixed by PR #3304, in that it will just delete the file in that case rather than failing to trash it. The location of the trash directory is determined by a freedesktop spec, so that files show up as trash in file managers.
stefanor
added a commit
to stefanor/notebook
that referenced
this issue
Dec 1, 2020
_check_trash() was added (in jupyter#3304) because TrashPermissionError didn't
exist, yet.
Now that it does, we can use it, and stop guessing what will cause a
permission problem.
Closes: jupyter#3374
I'm getting the following error when trying to trash (delete) a notebook (Untitled.ipynb):
Apparently, Jupyter is trying to write to the
/ebio/abt3_projects/
folder, but I don't have access to this directory. How do I change the directory for ./Trash-*?I'm running Jupyter installed in conda 4.4.10 on Ubuntu 16.04.3. Here's my Jupyter install info:
The text was updated successfully, but these errors were encountered: