Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not open static file '' on macOS #4871

Open
p-i- opened this issue Sep 8, 2019 · 1 comment
Open

Could not open static file '' on macOS #4871

p-i- opened this issue Sep 8, 2019 · 1 comment

Comments

@p-i-
Copy link

p-i- commented Sep 8, 2019

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 #4772 (comment) 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

@zhongxiang117
Copy link

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?

Just a few comments: since notebook works like a third party package for python, thus any pths defined in sys.path should be the valid path that python is looking for, so, to find absolute path Jupyter is looking in, you only need to execute python and printout their values, looking for the folder named by notebook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants