我一直在我的Google驱动器中使用Jupyter Notebook
,它工作得很好。最近我被迫切换到新版本Drive File Stream
。我创建了文件夹Available offline
,这意味着我将文件夹保存在本地存储空间中。当我启动Jupyter Notebook
时,它运行得很好,但是尝试Save and Checkpoint
会给我一个错误Checkpoint failed
。它似乎以某种方式正确地保存了文件,但返回了一个错误。在
我通过在Anaconda Prompt
中运行Jupyter Notebook
来启动jupyter笔记本。当我尝试Save and Checkpoint
时,会得到以下错误。它似乎在抱怨保存的文件是一样的-shutil.SameFileError
这真的很奇怪,因为我确实通过增加一个Save Attempt x
来帮助我判断是否保存了笔记本。我还试图删除文件夹.ipynb_checkpoints
和do Save and Checkpoint
中相应的检查点,但仍然得到相同的错误。。。在
我向Jupyter Notebookgithub page提交了一张问题单,似乎其他几个人也遇到了同样的问题,但没有得到任何帮助。在
以下是我的日志:
[I 10:49:44.573 NotebookApp] Saving file at /Writing_MVUE_2d.ipynb
[E 10:49:44.690 NotebookApp] Unhandled error in API request
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\base\handlers.py", line 516, in wrapper
result = yield gen.maybe_future(method(self, *args, **kwargs))
File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\gen.py", line 1015, in run
value = future.result()
File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\concurrent.py", line 237, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\gen.py", line 285, in wrapper
yielded = next(result)
File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\services\contents\handlers.py", line 278, in post
checkpoint = yield gen.maybe_future(cm.create_checkpoint(path))
File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\services\contents\manager.py", line 468, in create_checkpoint
return self.checkpoints.create_checkpoint(self, path)
File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\services\contents\filecheckpoints.py", line 56, in create_checkpoint
self._copy(src_path, dest_path)
File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\services\contents\fileio.py", line 241, in _copy
copy2_safe(src, dest, log=self.log)
File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\services\contents\fileio.py", line 51, in copy2_safe
shutil.copyfile(src, dst)
File "C:\ProgramData\Anaconda3\lib\shutil.py", line 98, in copyfile
raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
shutil.SameFileError: 'G:\\My Drive\\Research\\Camera_Project\\Writing_MVUE_2d.ipynb' and 'G:\\My Drive\\Research\\Camera_Project\\.ipynb_checkpoints\\Writing_MVUE_2d-checkpoint.ipynb' are the same file
[E 10:49:44.698 NotebookApp] {
"Cache-Control": "no-cache",
"Cookie": "username-localhost-8891=\"2|1:0|10:1525749572|23:username-localhost-8891|44:ZGE5NjFkMTgwOTI3NDFjMWJhMzY1NDIwNjhlODk5ODA=|52cc6ad64c261ccd78d2f66a0c14a95edc8468e7e4ac9c27770ce2bbebd8cd55\"; _xsrf=2|f34c78bf|7c7913196386a495e7fb6a7c3c7bbf7e|1525206477; username-localhost-8890=\"2|1:0|10:1525723124|23:username-localhost-8890|44:MGFhNmE2ZjMxZmFmNDU0M2IyMTgzNWE2NDdmMmRhMDc=|73c556d569c5f55b60a18dd36f06850f90c89c2dc329e11a4041a6c5ede7cb38\"; username-localhost-8889=\"2|1:0|10:1526327000|23:username-localhost-8889|44:YjdmMTExODQyNjNmNGM5MWIzZmM0OWIzYjE3NDgzZmM=|43a55e40b88869d8e054546feca0fbf7efae9c993b450311f5046f4c0ba45a66\"; username-localhost-8888=\"2|1:0|10:1526395222|23:username-localhost-8888|44:ZDJmZWNjZWUzZDJjNDVmMjkwMTZhNWZmNTI1MjhhMTE=|9cd671557f9b67b203088e3852aaf37de56ad7c8ad45f26798bc3e0d47a49c43\"",
"Referer": "http://localhost:8888/notebooks/Writing_MVUE_2d.ipynb",
"X-Xsrftoken": "2|f34c78bf|7c7913196386a495e7fb6a7c3c7bbf7e|1525206477",
"Origin": "http://localhost:8888",
"Content-Length": "0",
"Connection": "Keep-Alive",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json, text/javascript, */*; q=0.01",
"Accept-Language": "en-US",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299",
"X-Requested-With": "XMLHttpRequest",
"Host": "localhost:8888"
}
[E 10:49:44.698 NotebookApp] 500 POST /api/contents/Writing_MVUE_2d.ipynb/checkpoints (::1) 12.00ms referer=http://localhost:8888/notebooks/Writing_MVUE_2d.ipynb
非常感谢任何帮助!在
deniz195的一些伟大的调试导致了一个伟大的答案!这个临时解决方案适用于我和其他许多github朋友!在
引用他最初的回答:
相关问题 更多 >
编程相关推荐