When I try to create a new Python 2 notebook (only available option for me) in the path caffe2/tutorials, I get the following error in jupyter:
Creating Notebook Failed
An error occurred while creating a new notebook.
Unexpected error while running post hook save: [Error 2] The system cannot find the file specified
However, I am able to create a new python notebook somewhere else.
My configuration:
Python 2.7
I installed jupyter using pip.
Below the console output
[I 00:29:12.068 NotebookApp] Serving notebooks from local directory: D:\Yeverino\git_projects\caffe2_tutorials
[I 00:29:12.069 NotebookApp] 0 active kernels
[I 00:29:12.069 NotebookApp] The Jupyter Notebook is running at:
[I 00:29:12.069 NotebookApp] http://localhost:8888/?token=62e280100ce0984423306bb702755a42b9523af35656aa55
[I 00:29:12.069 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 00:29:12.071 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=62e280100ce0984423306bb702755a42b9523af35656aa55&token=62e280100ce0984423306bb702755a42b9523af35656aa55
[I 00:29:12.207 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[I 00:29:43.572 NotebookApp] Creating new notebook in
[NbConvertApp] Converting notebook Untitled.ipynb to script
[NbConvertApp] Writing 0 bytes to Untitled.txt
[E 00:29:44.839 NotebookApp] Post-save hook failed o-n D:\Yeverino\git_projects\caffe2_tutorials\Untitled.ipynb
Traceback (most recent call last):
File "c:\python27\lib\site-packages\notebook\services\contents\filemanager.py", line 135, in run_post_save_hook
self.post_save_hook(os_path=os_path, model=model, contents_manager=self)
File "D:\Yeverino\git_projects\caffe2_tutorials\jupyter_notebook_config.py", line 26, in post_save
os.rename(full_py_name, new_py_location)
WindowsError: [Error 2] The system cannot find the file specified
[W 00:29:44.842 NotebookApp] 500 POST /api/contents (::1): Unexpected error while running post hook save: [Error 2] The system cannot find the file specified
[W 00:29:44.844 NotebookApp] Unexpected error while running post hook save: [Error 2] The system cannot find the file specified
[E 00:29:44.844 NotebookApp] {
"Origin": "http://localhost:8888",
"Content-Length": "19",
"Accept-Language": "es-ES,es;q=0.9,de;q=0.8,en;q=0.7",
"Accept-Encoding": "gzip, deflate, br",
"X-Xsrftoken": "2|f594acfd|b21763f337c6c61245f37d965d8f867f|1531174011",
"Host": "localhost:8888",
"Accept": "application/json, text/javascript, /; q=0.01",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
"Connection": "keep-alive",
"X-Requested-With": "XMLHttpRequest",
"Referer": "http://localhost:8888/tree",
"Cookie": "_xsrf=2|f594acfd|b21763f337c6c61245f37d965d8f867f|1531174011; username-localhost-8888=\"2|1:0|10:1531175352|23:username-localhost-8888|44:ZmJhNDZmNGEzMzhiNDEyY2JjM2M2ZTY3MWRmYjVjODk=|54ef5790a66a7d0df4653b14c741d91d3c62591e64adee63afa73a395031e103\"",
"Content-Type": "application/json"
}
[E 00:29:44.845 NotebookApp] 500 POST /api/contents (::1) 1271.00ms referer=http://localhost:8888/tree
When I try to create a new Python 2 notebook (only available option for me) in the path caffe2/tutorials, I get the following error in jupyter: Creating Notebook Failed An error occurred while creating a new notebook. Unexpected error while running post hook save: [Error 2] The system cannot find the file specified
However, I am able to create a new python notebook somewhere else.
My configuration: Python 2.7 I installed jupyter using pip.
Below the console output [I 00:29:12.068 NotebookApp] Serving notebooks from local directory: D:\Yeverino\git_projects\caffe2_tutorials [I 00:29:12.069 NotebookApp] 0 active kernels [I 00:29:12.069 NotebookApp] The Jupyter Notebook is running at: [I 00:29:12.069 NotebookApp] http://localhost:8888/?token=62e280100ce0984423306bb702755a42b9523af35656aa55 [I 00:29:12.069 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 00:29:12.071 NotebookApp]
[I 00:29:12.207 NotebookApp] Accepting one-time-token-authenticated connection from ::1 [I 00:29:43.572 NotebookApp] Creating new notebook in [NbConvertApp] Converting notebook Untitled.ipynb to script [NbConvertApp] Writing 0 bytes to Untitled.txt [E 00:29:44.839 NotebookApp] Post-save hook failed o-n D:\Yeverino\git_projects\caffe2_tutorials\Untitled.ipynb Traceback (most recent call last): File "c:\python27\lib\site-packages\notebook\services\contents\filemanager.py", line 135, in run_post_save_hook self.post_save_hook(os_path=os_path, model=model, contents_manager=self) File "D:\Yeverino\git_projects\caffe2_tutorials\jupyter_notebook_config.py", line 26, in post_save os.rename(full_py_name, new_py_location) WindowsError: [Error 2] The system cannot find the file specified [W 00:29:44.842 NotebookApp] 500 POST /api/contents (::1): Unexpected error while running post hook save: [Error 2] The system cannot find the file specified [W 00:29:44.844 NotebookApp] Unexpected error while running post hook save: [Error 2] The system cannot find the file specified [E 00:29:44.844 NotebookApp] { "Origin": "http://localhost:8888", "Content-Length": "19", "Accept-Language": "es-ES,es;q=0.9,de;q=0.8,en;q=0.7", "Accept-Encoding": "gzip, deflate, br", "X-Xsrftoken": "2|f594acfd|b21763f337c6c61245f37d965d8f867f|1531174011", "Host": "localhost:8888", "Accept": "application/json, text/javascript, /; q=0.01", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", "Connection": "keep-alive", "X-Requested-With": "XMLHttpRequest", "Referer": "http://localhost:8888/tree", "Cookie": "_xsrf=2|f594acfd|b21763f337c6c61245f37d965d8f867f|1531174011; username-localhost-8888=\"2|1:0|10:1531175352|23:username-localhost-8888|44:ZmJhNDZmNGEzMzhiNDEyY2JjM2M2ZTY3MWRmYjVjODk=|54ef5790a66a7d0df4653b14c741d91d3c62591e64adee63afa73a395031e103\"", "Content-Type": "application/json" } [E 00:29:44.845 NotebookApp] 500 POST /api/contents (::1) 1271.00ms referer=http://localhost:8888/tree