Hi,
I am getting a 500 Internal Server error when I try to launch jupyter notebook through the anaconda-navigator. I think it has something to do with the root user and guest user i guess. But i dont know how i can resolve that…i am looking for guidance and help please!!
I am even attaching the error i am getting in my terminal (I am using a macos):
Last login: Mon Aug 1 00:38:18 on ttys000
(base) Anuj@Arus-iMac ~ % JUPYTER NOTEBOOK
[I 2022-08-01 00:39:06.348 LabApp] JupyterLab extension loaded from /Users/Anuj/opt/anaconda3/lib/python3.9/site-packages/jupyterlab
[I 2022-08-01 00:39:06.348 LabApp] JupyterLab application directory is /Users/Anuj/opt/anaconda3/share/jupyter/lab
[I 00:39:06.352 NotebookApp] Serving notebooks from local directory: /Users/Anuj
[I 00:39:06.352 NotebookApp] Jupyter Notebook 6.4.8 is running at:
[I 00:39:06.352 NotebookApp] http://localhost:8888/?token=6ff012b5429a5724d73242c1675b3f09f0209a3e8a73e5b4
[I 00:39:06.352 NotebookApp] or http://127.0.0.1:8888/?token=6ff012b5429a5724d73242c1675b3f09f0209a3e8a73e5b4
[I 00:39:06.352 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 00:39:06.357 NotebookApp]
To access the notebook, open this file in a browser:
file:///Users/Anuj/Library/Jupyter/runtime/nbserver-39289-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=6ff012b5429a5724d73242c1675b3f09f0209a3e8a73e5b4
or http://127.0.0.1:8888/?token=6ff012b5429a5724d73242c1675b3f09f0209a3e8a73e5b4
[E 00:39:22.270 NotebookApp] Uncaught exception GET /notebooks/Desktop/Option%20chain%20live%20data/Option%20Chain%20live%20data.ipynb (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/notebooks/Desktop/Option%20chain%20live%20data/Option%20Chain%20live%20data.ipynb', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/Users/Anuj/opt/anaconda3/lib/python3.9/site-packages/tornado/web.py", line 1704, in _execute
result = await result
File "/Users/Anuj/opt/anaconda3/lib/python3.9/site-packages/tornado/gen.py", line 775, in run
yielded = self.gen.send(value)
File "/Users/Anuj/opt/anaconda3/lib/python3.9/site-packages/notebook/notebook/handlers.py", line 95, in get
self.write(self.render_template('notebook.html',
File "/Users/Anuj/opt/anaconda3/lib/python3.9/site-packages/notebook/base/handlers.py", line 516, in render_template
return template.render(**ns)
File "/Users/Anuj/opt/anaconda3/lib/python3.9/site-packages/jinja2/environment.py", line 1291, in render
self.environment.handle_exception()
File "/Users/Anuj/opt/anaconda3/lib/python3.9/site-packages/jinja2/environment.py", line 925, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/Users/Anuj/opt/anaconda3/lib/python3.9/site-packages/notebook/templates/notebook.html", line 1, in top-level template code
{% extends "page.html" %}
File "/Users/Anuj/opt/anaconda3/lib/python3.9/site-packages/notebook/templates/page.html", line 154, in top-level template code
{% block header %}
File "/Users/Anuj/opt/anaconda3/lib/python3.9/site-packages/notebook/templates/notebook.html", line 115, in block 'header'
{% for exporter in get_frontend_exporters() %}
File "/Users/Anuj/opt/anaconda3/lib/python3.9/site-packages/notebook/notebook/handlers.py", line 40, in get_frontend_exporters
for name in get_export_names():
File "/Users/Anuj/.local/lib/python3.9/site-packages/nbconvert/exporters/base.py", line 149, in get_export_names
e = get_exporter(exporter_name)(config=config)
File "/Users/Anuj/.local/lib/python3.9/site-packages/nbconvert/exporters/base.py", line 101, in get_exporter
if getattr(exporter(config=config), "enabled", True):
File "/Users/Anuj/.local/lib/python3.9/site-packages/nbconvert/exporters/templateexporter.py", line 341, in __init__
super().__init__(config=config, **kw)
File "/Users/Anuj/.local/lib/python3.9/site-packages/nbconvert/exporters/exporter.py", line 117, in __init__
self._init_preprocessors()
File "/Users/Anuj/.local/lib/python3.9/site-packages/nbconvert/exporters/templateexporter.py", line 507, in _init_preprocessors
conf = self._get_conf()
File "/Users/Anuj/.local/lib/python3.9/site-packages/nbconvert/exporters/templateexporter.py", line 527, in _get_conf
if conf_path.exists():
File "/Users/Anuj/opt/anaconda3/lib/python3.9/pathlib.py", line 1424, in exists
self.stat()
File "/Users/Anuj/opt/anaconda3/lib/python3.9/pathlib.py", line 1232, in stat
return self._accessor.stat(self)
PermissionError: [Errno 13] Permission denied: '/usr/local/share/jupyter/nbconvert/templates/conf.json'
[E 00:39:22.281 NotebookApp] {
"Host": "localhost:8888",
"Connection": "keep-alive",
"Sec-Ch-Ua": "\".Not/A)Brand\";v=\"99\", \"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\"",
"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/103.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/Desktop/Option%20chain%20live%20data",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8",
"Cookie": "_xsrf=2|e7dfbca5|1f47088ba99d18e833f752efed8d327f|1659242133; username-localhost-8889=\"2|1:0|10:1659294334|23:username-localhost-8889|44:YzQ1MjY2ZmFhZmM2NDVhNGI3ZDgxZmZjZjU3NDNkMmU=|a50d389d73fecd39171c812e7fd04a006cfc04c8137c43f998bdc465594ff664\"; username-localhost-8888=\"2|1:0|10:1659294547|23:username-localhost-8888|44:ZGRkNTBlZWJhZThhNDE1ZGEyZTg3MzhiMDBmZDcyMDQ=|21e735477460ebd94ae14e4fdc77a630220dd8fff3209f19917efa429b2e4b41\""
}
[E 00:39:22.281 NotebookApp] 500 GET /notebooks/Desktop/Option%20chain%20live%20data/Option%20Chain%20live%20data.ipynb (::1) 200.370000ms referer=http://localhost:8888/tree/Desktop/Option%20chain%20live%20data