-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Bug when renaming file (notebook 6.4.12) #6473
Comments
I faced this same error too. Can someone fix this? |
Me too! |
Same error. I have to rename it in the file folder after I close the jupyter notebook. |
The same. |
Please resolve the bug |
Hi,
After I rename it, it will be fine. I continue to check the information. It may have the same name as a file in the system
Message ID: ***@***.***>
|
I faced this same error too. |
i get the same error |
Just rename it offline and reload the page. It should work |
notebook/services/contents/filemanager.py There is an error on this file rename function (line 500+) The only way how to solve this situation is to downgrade... pip3 install --upgrade notebook=="6.4.11" |
thanks it helps |
This problem also exists in version 6.5.2 |
@zyzand The latest release of Notebook, 6.5.3 should include the fix by @yacchin1205. Would you be able to upgrade to 6.5.3 and see if you still experience this issue? |
It works after I upgrade to version 6.5.3. Thanks.
|
Thank you @zyzand! As there has been a release with a fix for this issue, I will go ahead and close it. |
Describe the bug
In notebook 6.4.12,we cannot rename file sometimes.
To Reproduce
Steps to reproduce the behavior:
root_dir="/home/foobar"
abc
(or any name with lengthlen(root_dir) - len("Untitled") - 1
)Then you should got the error message
Expected behavior
Rename the file successfully.
According to the error message, I found a typo here (
os_path
is not defined, it should beold_path
). .notebook/notebook/services/contents/filemanager.py
Lines 578 to 579 in 3e5b767
is_hidden(old_path, self.root_dir)
is true, this is because the result of"abc/Untitled.ipynb"[len("/home/foobar"):]
is.ipynb
and it is treated as a hidden file.It seems that this bug is introduced by this commit f69eb96 .
The text was updated successfully, but these errors were encountered: