`Could not open static file ''` on macOS
- Dominant language
- Jupyter Notebook
- Stars
- 13.3k
- Forks
- 5.8k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 7
Description
CrossLinked: https://stackoverflow.com/questions/57843695/jupyter-notebook-gives-error-could-not-open-static-file-on-macos
I am aware the same symptom has been presented in previously issues. However I am unable to successfully apply the solutions presented.
*SYMPTOM*
```
> jupyter notebook
[I 10:44:20.102 NotebookApp] JupyterLab extension loaded from /usr/local/anaconda3/lib/python3.7/site-packages/jupyterlab
[I 10:44:20.102 NotebookApp] JupyterLab application directory is /usr/local/anaconda3/share/jupyter/lab
[I 10:44:20.104 NotebookApp] Serving notebooks from local directory: /Users/pi
[I 10:44:20.104 NotebookApp] The Jupyter Notebook is running at:
[I 10:44:20.104 NotebookApp] http://localhost:8888/?token=586797fb9049c0faea24f2583c4de32c08d45c89051fb07d
[I 10:44:20.104 NotebookApp] or http://127.0.0.1:8888/?token=586797fb9049c0faea24f2583c4de32c08d45c89051fb07d
[I 10:44:20.104 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 10:44:20.110 NotebookApp]
To access the notebook, open this file in a browser:
file:///Users/pi/Library/Jupyter/runtime/nbserver-65385-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=586797fb9049c0faea24f2583c4de32c08d45c89051fb07d
or http://127.0.0.1:8888/?token=586797fb9049c0faea24f2583c4de32c08d45c89051fb07d
[E 10:44:21.457 NotebookApp] Could not open static file ''
[W 10:44:21.512 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (::1) 9.02ms referer=http://localhost:8888/tree?token=586797fb9049c0faea24f2583c4de32c08d45c89051fb07d
[W 10:44:21.548 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (::1) 0.99ms referer=http://localhost:8888/tree?token=586797fb9049c0faea24f2583c4de32c08d45c89051fb07d
```
I see that this has been fixed in 6.0.1, but I can't see any way to install 6.0.1 on my macOS system (I've asked https://stackoverflow.com/questions/57843733/how-to-force-conda-to-install-the-latest-version-of-jupyter)
From https://github.com/jupyter/notebook/pull/4772#issuecomment-515794823 I can see that as a workaround one may retrieve `/static/components/react/react-dom.production.min.js` from the Internet, but I can't see where I should put it. How to find what absolute path Jupyter is looking in? I've asked this here: https://stackoverflow.com/questions/57843888/where-does-jupyter-install-site-packages-on-macos
Contributor guide
Assessment
This issue has not been assessed yet.