New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot delete file in Jupyter Browser on Android, getting error #7154
Comments
Thank you @iamthekings5 for opening this issue. Would you be able to share the version of Jupyter Server and |
May I know how I can go about doing both? |
Thank you for your reply! You can view the Jupyter subproject versions with the command: |
my jupyter server version is 2.10.0 and my send2trash version is 1.8.2. |
Thank you @iamthekings5, sorry I got a bit ahead of myself in the previous comment, an issue in I found an issue in jupyter_server, with a different version |
Issue has been resolved, thank you. |
Please answer the following questions for yourself before submitting an issue
Description
When I try to delete a file in Jupyter Browser I get an error.
Reproduce
Attempt to delete a file on Jupyter Browser, fails to delete. File can be deleted from Android File Browser
Expected behavior
File should be deleted with no issue.
Context
[W 2023-11-15 21:16:43.262 ServerApp] delete /untitled.py
[W 2023-11-15 21:16:43.270 ServerApp] 400 DELETE /api/contents/untitled.py?1700083003253 (127.0.0.1): send2trash f
1ailed: [Errno 2] No such file or directory: b'/storage/emulated/.Trash-10433' [W 2023-11-15 21:16:43.270 ServerApp] wrote error: "send2trash f
1ailed: [Errno 2] No such file or directory: b'/storage/emulated/.Trash-10433'"Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/jupyter_server/services/contents/filemanager.py", line 981, in delete_file
send2trash(os_path)
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/send2trash/plat_other.py", line 210, in send2trash
dest_trash = find_ext_volume_trash(topdir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/send2trash/plat_other.py", line 169, in find_ext_volume_trash
trash_dir = find_ext_volume_fallback_trash(volume_root)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/send2trash/plat_other.py", line 158, in find_ext_volume_fallback_trash
check_create(trash_dir)
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/send2trash/plat_other.py", line 96, in check_create
os.makedirs(dir, 0o700)
File "", line 225, in makedirs
FileNotFoundError: [Errno 2] No such file or directory: b'/storage/emulated/.Trash-10433'
[W 2023-11-15 21:16:43.274 ServerApp] 400 DELETE /api/contents/untitled.py?1700083003253 (70796d65ece8431daee5ce93086dfa98@127.0.0.1) 13.98ms referer=http://localhost:8888/tree
The text was updated successfully, but these errors were encountered: