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

Error launching notebook on Windows 7 #388

Closed
tjfulle opened this issue Sep 3, 2015 · 13 comments
Closed

Error launching notebook on Windows 7 #388

tjfulle opened this issue Sep 3, 2015 · 13 comments

Comments

@tjfulle
Copy link

tjfulle commented Sep 3, 2015

Jupyter fails to open new notebooks on Windows 7 with a clean install of Anaconda (Python version 2.7). The notebook fails to launch with IPython 3.2 and IPython 4.0/Jupyter 1.0. The symptoms are:

  • jupyter notebook server starts
  • when creating a new Python 2 notebook, the resultant page displays a 404: page not found error.

I am using the Internet Explorer as a browser. I have had no issues on Mac OS X or Linux Mint.

A problem seems to be indicated in the console log:

[I 07:39:02.775 NotebookApp] Serving notebooks from local directory: C:\Apps\Python27_Anaconda
[I 07:39:02.792 NotebookApp] 0 active kernels
[I 07:39:02.792 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 07:39:02.792 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[D 07:39:02.911 NotebookApp] Using contents: services/contents
[D 07:39:02.927 NotebookApp] 200 GET /tree (::1) 34.00ms
[D 07:39:03.183 NotebookApp] 200 GET /custom/custom.css (::1) 204.00ms
[D 07:39:03.335 NotebookApp] 200 GET /static/components/font-awesome/fonts/fontawesome-webfont.eot? (::1) 17.00ms
[D 07:39:03.434 NotebookApp] 200 GET /static/services/contents.js?v=20150903073902 (::1) 0.00ms
[D 07:39:03.438 NotebookApp] 200 GET /custom/custom.js?v=20150903073902 (::1) 0.00ms
[D 07:39:03.456 NotebookApp] 200 GET /api/config/tree?_=1441287543305 (::1) 0.00ms
[D 07:39:03.460 NotebookApp] 200 GET /api/config/common?_=1441287543306 (::1) 0.00ms
[D 07:39:03.497 NotebookApp] 200 GET /api/sessions?_=1441287543307 (::1) 21.00ms
[D 07:39:03.552 NotebookApp] 200 GET /api/contents?type=directory&_=1441287543308 (::1) 38.00ms
[D 07:39:07.118 NotebookApp] Using contents: services/contents
[W 07:39:07.118 NotebookApp] 404 GET /undefined (::1) 0.00ms referer=None

The last line shows the 404 GET /undefined error. On another Windows machine (notebook launches fine), the line

... 200 GET /custom/custom.css 

read

... 304 GET /custom/custom.css

and before the

... 200 GET /api/kernelspecs (::1) 4.00ms

line it gives

... Native kernel (python2) available from ...
... Native kernel (python2) available from ...

I'm not sure if that is indicative or not.

The full output from ipython notebook --debug is:

[myenv] C:\Apps\Python27_Anaconda>ipython notebook --debug
[D 07:39:02.536 NotebookApp] Config changed:
[D 07:39:02.536 NotebookApp] {'NotebookApp': {'log_level': 10}}
[D 07:39:02.536 NotebookApp] Searching [u'C:\\Apps\\Python27_Anaconda', 'C:\\Users\\e63302\\.jupyter', 'C:\\Apps\\Python27_Anaconda\\envs\\myenv\\etc\\jupyter', 'C:\\ProgramData\\jupyter'] for config files
[D 07:39:02.536 NotebookApp] Attempting to load config file jupyter_config.py in path C:\ProgramData\jupyter
[D 07:39:02.536 NotebookApp] Attempting to load config file jupyter_config.json in path C:\ProgramData\jupyter
[D 07:39:02.536 NotebookApp] Attempting to load config file jupyter_config.py in path C:\Apps\Python27_Anaconda\envs\myenv\etc\jupyter
[D 07:39:02.536 NotebookApp] Attempting to load config file jupyter_config.json in path C:\Apps\Python27_Anaconda\envs\myenv\etc\jupyter
[D 07:39:02.536 NotebookApp] Attempting to load config file jupyter_config.py in path C:\Users\e63302\.jupyter
[D 07:39:02.536 NotebookApp] Attempting to load config file jupyter_config.json in path C:\Users\e63302\.jupyter
[D 07:39:02.536 NotebookApp] Attempting to load config file jupyter_config.py in path C:\Apps\Python27_Anaconda
[D 07:39:02.536 NotebookApp] Attempting to load config file jupyter_config.json in path C:\Apps\Python27_Anaconda
[D 07:39:02.536 NotebookApp] Attempting to load config file jupyter_notebook_config.py in path C:\ProgramData\jupyter
[D 07:39:02.536 NotebookApp] Attempting to load config file jupyter_notebook_config.json in path C:\ProgramData\jupyter
[D 07:39:02.553 NotebookApp] Attempting to load config file jupyter_notebook_config.py in path C:\Apps\Python27_Anaconda\envs\myenv\etc\jupyter
[D 07:39:02.553 NotebookApp] Attempting to load config file jupyter_notebook_config.json in path C:\Apps\Python27_Anaconda\envs\myenv\etc\jupyter
[D 07:39:02.553 NotebookApp] Attempting to load config file jupyter_notebook_config.py in path C:\Users\e63302\.jupyter
[D 07:39:02.553 NotebookApp] Attempting to load config file jupyter_notebook_config.json in path C:\Users\e63302\.jupyter
[D 07:39:02.553 NotebookApp] Attempting to load config file jupyter_notebook_config.py in path C:\Apps\Python27_Anaconda
[D 07:39:02.553 NotebookApp] Attempting to load config file jupyter_notebook_config.json in path C:\Apps\Python27_Anaconda
[D 07:39:02.775 NotebookApp] Terminals not available (error was No module named terminado)
[I 07:39:02.775 NotebookApp] Serving notebooks from local directory: C:\Apps\Python27_Anaconda
[I 07:39:02.792 NotebookApp] 0 active kernels
[I 07:39:02.792 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 07:39:02.792 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[D 07:39:02.911 NotebookApp] Using contents: services/contents
[D 07:39:02.927 NotebookApp] 200 GET /tree (::1) 34.00ms
[D 07:39:03.183 NotebookApp] 200 GET /custom/custom.css (::1) 204.00ms
[D 07:39:03.335 NotebookApp] 200 GET /static/components/font-awesome/fonts/fontawesome-webfont.eot? (::1) 17.00ms
[D 07:39:03.434 NotebookApp] 200 GET /static/services/contents.js?v=20150903073902 (::1) 0.00ms
[D 07:39:03.438 NotebookApp] 200 GET /custom/custom.js?v=20150903073902 (::1) 0.00ms
[D 07:39:03.456 NotebookApp] 200 GET /api/config/tree?_=1441287543305 (::1) 0.00ms
[D 07:39:03.460 NotebookApp] 200 GET /api/config/common?_=1441287543306 (::1) 0.00ms
[D 07:39:03.497 NotebookApp] 200 GET /api/sessions?_=1441287543307 (::1) 21.00ms
[D 07:39:03.552 NotebookApp] 200 GET /api/contents?type=directory&_=1441287543308 (::1) 38.00ms
[D 07:39:07.118 NotebookApp] Using contents: services/contents
[W 07:39:07.118 NotebookApp] 404 GET /undefined (::1) 0.00ms referer=None
[D 07:39:07.168 NotebookApp] 200 GET /custom/custom.css (::1) 17.00ms
[I 07:39:07.322 NotebookApp] Creating new notebook in
[D 07:39:07.322 NotebookApp] Saving C:\Apps\Python27_Anaconda\Untitled6.ipynb
[D 07:39:07.407 NotebookApp] 201 POST /api/contents (::1) 136.00ms
[D 07:39:07.440 NotebookApp] Using contents: services/contents
[D 07:39:07.457 NotebookApp] 200 GET /notebooks/Untitled6.ipynb?kernel_name=python2 (::1) 17.00ms
[D 07:39:07.493 NotebookApp] 200 GET /static/components/MathJax/MathJax.js?config=TeX-AMS_HTML-full,Safe&delayStartupUntil=configured (::1) 0.00ms
[D 07:39:07.493 NotebookApp] 200 GET /custom/custom.css (::1) 0.00ms
[D 07:39:07.578 NotebookApp] 200 GET /static/components/MathJax/config/TeX-AMS_HTML-full.js?rev=2.5.3 (::1) 34.00ms
[D 07:39:07.628 NotebookApp] 200 GET /static/components/MathJax/config/Safe.js?rev=2.5.3 (::1) 5.00ms
[D 07:39:07.650 NotebookApp] 200 GET /static/components/font-awesome/fonts/fontawesome-webfont.eot? (::1) 4.00ms
[D 07:39:07.921 NotebookApp] 200 GET /custom/custom.js?v=20150903073902 (::1) 4.00ms
[D 07:39:08.233 NotebookApp] 200 GET /api/config/common?_=1441287547778 (::1) 0.00ms
[D 07:39:08.244 NotebookApp] 200 GET /api/config/notebook?_=1441287547777 (::1) 4.00ms
[D 07:39:08.257 NotebookApp] 200 GET /static/components/MathJax/extensions/Safe.js?rev=2.5.3 (::1) 0.00ms
[D 07:39:08.296 NotebookApp] 200 GET /nbextensions/widgets/notebook/js/extension.js?v=20150903073902 (::1) 0.00ms
[D 07:39:08.318 NotebookApp] 200 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js?rev=2.5.3 (::1) 17.00ms
[D 07:39:08.318 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/init.js?v=20150903073902 (::1) 0.00ms
[D 07:39:08.335 NotebookApp] 200 GET /nbextensions/widgets/notebook/js/widgetarea.js?v=20150903073902 (::1) 17.00ms
[D 07:39:08.351 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/manager.js?v=20150903073902 (::1) 4.00ms
[D 07:39:08.359 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/widget.js?v=20150903073902 (::1) 0.00ms
[D 07:39:08.365 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/widget_button.js?v=20150903073902 (::1) 0.00ms
[D 07:39:08.368 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/widget_bool.js?v=20150903073902 (::1) 0.00ms
[D 07:39:08.377 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/widget_link.js?v=20150903073902 (::1) 4.00ms
[D 07:39:08.385 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/widget_box.js?v=20150903073902 (::1) 0.00ms
[D 07:39:08.394 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/widget_float.js?v=20150903073902 (::1) 4.00ms
[D 07:39:08.398 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/widget_int.js?v=20150903073902 (::1) 0.00ms
[D 07:39:08.403 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/widget_image.js?v=20150903073902 (::1) 0.00ms
[D 07:39:08.411 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/widget_string.js?v=20150903073902 (::1) 4.00ms
[D 07:39:08.415 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/widget_output.js?v=20150903073902 (::1) 0.00ms
[D 07:39:08.424 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/widget_selection.js?v=20150903073902 (::1) 0.00ms
[D 07:39:08.433 NotebookApp] 200 GET /nbextensions/widgets/widgets/js/widget_selectioncontainer.js?v=20150903073902 (::1) 0.00ms
[D 07:39:08.440 NotebookApp] 200 GET /static/components/backbone/backbone-min.js?v=20150903073902 (::1) 4.00ms
[I 07:39:17.801 NotebookApp] Interrupted...
[I 07:39:17.801 NotebookApp] Shutting down kernels
@Carreau
Copy link
Member

Carreau commented Sep 3, 2015

Can you try a ipython kernelspec install-self ? you shouldn't have to worry about the 304 and 404 you see.

@tjfulle
Copy link
Author

tjfulle commented Sep 3, 2015

Thanks for the quick response. The outcome is:

[myenv] C:\Apps\Python27_Anaconda> ipython kernelspec install-self
[InstallNativeKernelSpec] Installed kernelspec python2 in C:\ProgramData\jupyter\kernels\python2
[myenv] C:\Apps\Python27_Anaconda>

@Carreau
Copy link
Member

Carreau commented Sep 3, 2015

And if you re-try to create a Python2 notebook now ?

@tjfulle
Copy link
Author

tjfulle commented Sep 3, 2015

If it helps, I see different behavior depending on where I execute ipython notebook. If in the default location for the Anaconda command prompt (C:\Apps\Python_Anaconda) I get the 404 page not found error - but Untitled.ipynb is created. If I navigate to other locations a blank page launches and no Untitled.ipynb.

@tjfulle
Copy link
Author

tjfulle commented Sep 3, 2015

Sorry, the ipython kernelspec install-self did not resolve the issue.

@Carreau
Copy link
Member

Carreau commented Sep 3, 2015

Hum.... (thinking..)

@tjfulle
Copy link
Author

tjfulle commented Sep 3, 2015

I misspoke earlier - Untitled.ipynb is created whenever I create a new notebook, I just can't access it (either 404 page not found or just a blank screen).

As I mentioned, the notebook is working fine on another Windows 7 machine (nominally the same setup) and works like a charm on any of my *nix machines.

@tjfulle
Copy link
Author

tjfulle commented Sep 4, 2015

Carreau, we may have determined a problem. IT had set the "Start In" location of the IPython Notebook launcher that comes as part of the Anaconda package to be an admin location for testing and then pushed it to users (without changing the "Start In" location). Changing the "Start In" location to a path where users could write seems to have fixed things. I'm still confused because

  • when creating a notebook from the dashboard (using the admin "Start In" location), the notebook was created but I could not open it
  • I could not open notebooks if I launched the dashboard from the command line in my Documents directory
  • using a virtual environment did not seem to help

Unless the notebook is inheriting the "Start In" location in some way, I'm not sure why it would affect each use case described.

I'm not sure if this is a user error, Anaconda, or notebook error. Feel free to close this issue or do with it what you see fit.

Thanks for all the hard work!

@minrk minrk closed this as completed Sep 16, 2015
@minrk minrk added this to the no action milestone Sep 16, 2015
@KimDaeEon
Copy link

I have same problems now... Did you fix it? If you did.. Please let me know..

@a59
Copy link

a59 commented Apr 11, 2016

I also have the same problem.

@KimDaeEon
Copy link

I formated my computer and solved it..
If you have installed another python or anaconda before and erase it not correctly.. you may have problems above.. I recommend to format your PC. That is fastest solution..

@a59
Copy link

a59 commented Apr 12, 2016

Reformatting seems a bit drastic. Besides, I don't have admin priviledges on the computer.

@KimDaeEon
Copy link

Sad.. Cheer up..

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants