【发布时间】:2022-06-12 23:09:26
【问题描述】:
我完全不确定问题出在哪里,但我最近让我的 jupyterlab 停止工作。 我完全删除了 anaconda 并重新安装了它,但我仍然收到此错误。
我在我的笔记本电脑上创建了一个新用户并安装了 anaconda,它工作正常,所以我不确定问题是什么 - 当我卸载它时,我按照文档使用 anaconda clean 做了。
当我运行 jupyter 并打开笔记本时,我收到此错误,并在我的终端上显示:
[E 16:03:20.378 NotebookApp] 未捕获的异常 GET /notebooks/BBK/CS_assembly%20line.ipynb (::1) HTTPServerRequest(protocol='http', host='localhost:8888', method='GET ', uri='/notebooks/BBK/CS_assembly%20line.ipynb', version='HTTP/1.1', remote_ip='::1') Traceback (最近一次调用最后): File "/Users/adamG/opt/ anaconda3/lib/python3.9/site-packages/tornado/web.py”,第 1704 行,在 _execute 结果 = 等待结果文件“/Users/adamG/opt/anaconda3/lib/python3.9/site-packages/tornado /gen.py”,第 775 行,运行中产生 = self.gen.send(value) 文件“/Users/adamG/opt/anaconda3/lib/python3.9/site-packages/notebook/notebook/handlers.py” ,第 95 行,在 get self.write(self.render_template('notebook.html', File "/Users/adamG/opt/anaconda3/lib/python3.9/site-packages/notebook/base/handlers.py",第 516 行,在 render_template 返回 template.render(**ns) 文件“/Users/adamG/opt/anaconda3/lib/python3.9/site-packages/jinja2/environment.py”,第 1090 行,在渲染 self.environment .handle_exception() 文件“/用户/adamG/opt/anaconda3/lib/python3.9/site-packages/jinja2/environment.py”,第 832 行,在 handle_exception reraise(rewrite_traceback_stack(source=source)) 文件“/Users/adamG/opt/ anaconda3/lib/python3.9/site-packages/jinja2/_compat.py”,第 28 行,在 reraise raise value.with_traceback(tb) 文件“/Users/adamG/opt/anaconda3/lib/python3.9/site- packages/notebook/templates/notebook.html",第 1 行,在顶级模板代码中 {% extends "page.html" %} File "/Users/adamG/opt/anaconda3/lib/python3.9/site-packages /notebook/templates/page.html”,第 154 行,在顶级模板代码 {% block header %} 文件“/Users/adamG/opt/anaconda3/lib/python3.9/site-packages/notebook/templates/ notebook.html”,第 115 行,块“标题”{% for exporter in get_frontend_exporters() %} 文件“/Users/adamG/opt/anaconda3/lib/python3.9/site-packages/notebook/notebook/handlers. py”,第 40 行,在 get_frontend_exporters 中获取 get_export_names() 中的名称:文件“/Users/adamG/opt/anaconda3/lib/python3.9/site-packages/nbconvert/export ers/base.py”,第 146 行,在 get_export_names e = get_exporter(exporter_name)(config=config) 文件“/Users/adamG/opt/anaconda3/lib/python3.9/site-packages/nbconvert/exporters/base. py",第 103 行,在 get_exporter if getattr(exporter(config=config), 'enabled', True): File "/Users/adamG/opt/anaconda3/lib/python3.9/site-packages/nbconvert/exporters/ templateexporter.py”,第 332 行,在 init super().init(config=config, **kw) 文件“/Users/adamG/opt/anaconda3/lib /python3.9/site-packages/nbconvert/exporters/exporter.py”,第 118 行,在 init self._init_preprocessors() 文件“/Users/adamG/opt/anaconda3/lib/python3. 9/site-packages/nbconvert/exporters/templateexporter.py”,第 499 行,在 _init_preprocessors conf = self._get_conf() 文件“/Users/adamG/opt/anaconda3/lib/python3.9/site-packages/nbconvert/ exporters/templateexporter.py”,第 519 行,在 _get_conf 如果 conf_path.exists():文件“/Users/adamG/opt/anaconda3/lib/python3.9/pathlib.py”,第 1424 行,存在 se lf.stat() 文件“/Users/adamG/opt/anaconda3/lib/python3.9/pathlib.py”,第 1232 行,在 stat 返回 self._accessor.stat(self) PermissionError: [Errno 13] Permission denied: '/usr/local/share/jupyter/nbconvert/templates/conf.json' [E 16:03:20.387 NotebookApp] { "Host": "localhost:8888", "Connection": "keep-alive", "Sec -Ch-Ua": "" Not A;Brand";v="99", "Chromium";v="102", "Google Chrome";v="102"", "Sec-Ch-Ua-Mobile ": "?0", "Sec-Ch-Ua-Platform": ""macOS"", "Upgrade-Insecure-Requests": "1", "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/ avif,image/webp,image/apng,/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "Sec-Fetch-Site": "same-origin", “Sec-Fetch-Mode”:“navigate”,“Sec-Fetch-User”:“?1”,“Sec-Fetch-Dest”:“document”,“Referer”:“http://localhost:8888/ tree/BBK", "Accept-Encoding": "gzip, deflate, br", "Accept-Language": "en-US,en;q=0.9,fr;q=0.8", "Cookie": "ajs_user_id= %22d21ecb9d-1d78-5284-bc28-daa9b9167df2%22; ajs_anonymous_id=%2231c13a26-3e4a-4e30-8949-a5795c40ff1b%22; _hp2_id.1823968819=%7B%22userId%22%3A%225637540572742626%22%2C%22pageviewId%22%3A%221850228112917969%22%2C%22sessionId%22%3A%222171140005424539%22%2C%22identity%22%3A%22d21ecb9d -1d78-5284-bc28-daa9b9167df2%22%2C%22trackerVersion%22%3A%224.0%22%2C%22identityField%22%3Anull%2C%22isIdentified%22%3A1%7D; _xsrf=2|c558a997|1b5045b946e7c589eaae4f9d66b15b84|1652689505;用户名-localhost-8890="2|1:0|10:1652710435|23:用户名-localhost-8890|44:MjMzOWVlZjIwOGQ2NDY0YThmmDc0Y2Q2ODQxODM2MTU=|c0183ed254e15bfacd1883eb108385def581fe0f2df549d6a9dcdace6f"用户名-localhost-8889="2|1:0|10:1655015365|23:用户名-localhost-8889|44:YThlZDg0NjM2Y2NjNDk5MDk1MzY1NjlhYTRhYzBlMDY=|b8e962de87fa7b79549e1e80702cf7176b44204375542a" username-localhost-8888="2|1:0|10:1655046195|23:username-localhost-8888|44:ZDc4YTgxZTIyNzhkNGM3MTg2NzgxMWYyOTQ1YWIyOTU=|e86c46963dc028120bc326bfc09b3cadf7f5f5f7485dbb3f7cd56505482f5e88"" } [E 16:03:20.387 NotebookApp] 500 GET /notebooks/BBK/ pandas.ipynb (::1) 2135.900000ms referer=http://localhost:8888/tree/BBK
【问题讨论】:
-
请编辑问题以将其限制为具有足够详细信息的特定问题,以确定适当的答案。
标签: python jupyter-notebook anaconda internal-server-error