当我尝试下载jupyter笔记本时,我收到500内部服务器错误。回溯如下:
[E 16:55:32.238 NotebookApp] Uncaught exception GET /nbconvert/html/Notebooks/ya_dash.ipynb?download=true (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/nbconvert/html/Notebooks/dash.ipynb?download=true', version='HTTP/1.1', remote_ip='::1', headers={'Accept-Language': 'en-US,en;q=0.8,ru;q=0.6', 'Accept-Encoding': 'gzip, deflate, sdch', 'Host': 'localhost:8888', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36', 'Connection': 'keep-alive', 'Referer': 'http://localhost:8888/notebooks/Notebooks/dash.ipynb', 'Upgrade-Insecure-Requests': '1'})
Traceback (most recent call last):
File "/Users/aleksandr/anaconda/lib/python2.7/site-packages/tornado/web.py", line 1443, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/Users/aleksandr/anaconda/lib/python2.7/site-packages/tornado/web.py", line 2800, in wrapper
return method(self, *args, **kwargs)
File "/Users/aleksandr/anaconda/lib/python2.7/site-packages/notebook/nbconvert/handlers.py", line 86, in get
name = model['name']
KeyError: 'name'
[E 16:55:32.251 NotebookApp] {
"Accept-Language": "en-US,en;q=0.8,ru;q=0.6",
"Accept-Encoding": "gzip, deflate, sdch",
"Host": "localhost:8888",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36",
"Connection": "keep-alive",
"Referer": "http://localhost:8888/notebooks/Notebooks/dash.ipynb",
"Upgrade-Insecure-Requests": "1"
}
[E 16:55:32.251 NotebookApp] 500 GET /nbconvert/html/Notebooks/dash.ipynb?download=true (::1) 1229.97ms referer=http://localhost:8888/notebooks/Notebooks/dash.ipynb
当我添加" name"模型变量的关键,它表示" last_modified"钥匙现在不见了。当我添加" last_modified"关键,它说内容存在问题。我认为问题在于这一行
model = self.contents_manager.get(path=path)
在nbconvert库的handlers.py文件中,但我无法得到它应该是什么。
我在Mac OS X上使用带有Anaconda和
的Python 2.7jupyter == 1.0.0
jupyter客户端== 4.2.2
jupyter控制台== 4.1.1
jupyter核== 4.1.0
jupyter的仪表板== 0.5.2
jupyterdrive == 1.1.0
笔记本== 4.2.0
非常感谢您的帮助。