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

Don't crash when starting notebook server if runnable browser not found #2006

Closed
wesm opened this issue Jun 22, 2012 · 2 comments · Fixed by #2010
Closed

Don't crash when starting notebook server if runnable browser not found #2006

wesm opened this issue Jun 22, 2012 · 2 comments · Fixed by #2010

Comments

@wesm
Copy link

wesm commented Jun 22, 2012

Parking this issue here as it's become very annoying on my Kubuntu system with google-chrome installed. I'll make a PR if no one else gets to it, but I think this should get fixed for 0.13

11:03 ~/code/ipython  (master)$ ipython notebook --pylab=inline
[NotebookApp] Using existing profile dir: u'/home/wesm/.config/ipython/profile_default'
[NotebookApp] Serving notebooks from /home/wesm/code/ipython
[NotebookApp] The IPython Notebook is running at: http://127.0.0.1:8888/
[NotebookApp] Use Control-C to stop this server and shut down all kernels.
Traceback (most recent call last):
  File "/home/wesm/epd/bin/ipython", line 9, in <module>
    load_entry_point('ipython==0.13.dev', 'console_scripts', 'ipython')()
  File "/home/wesm/code/ipython/IPython/frontend/terminal/ipapp.py", line 389, in launch_new_instance
    app.start()
  File "/home/wesm/code/ipython/IPython/frontend/terminal/ipapp.py", line 359, in start
    return self.subapp.start()
  File "/home/wesm/code/ipython/IPython/frontend/html/notebook/notebookapp.py", line 557, in start
    browser = webbrowser.get()
  File "/home/wesm/epd/lib/python2.7/webbrowser.py", line 52, in get
    raise Error("could not locate runnable browser")
Error: could not locate runnable browser

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    c.Application.verbose_crash=True

This also doesn't work:

11:05 ~/code/ipython  (master)$ ipython notebook --pylab=inline --browser=google-chrome[NotebookApp] Using existing profile dir: u'/home/wesm/.config/ipython/profile_default'
[NotebookApp] Serving notebooks from /home/wesm/code/ipython
[NotebookApp] The IPython Notebook is running at: http://127.0.0.1:8888/
[NotebookApp] Use Control-C to stop this server and shut down all kernels.
Traceback (most recent call last):
  File "/home/wesm/epd/bin/ipython", line 9, in <module>
    load_entry_point('ipython==0.13.dev', 'console_scripts', 'ipython')()
  File "/home/wesm/code/ipython/IPython/frontend/terminal/ipapp.py", line 389, in launch_new_instance
    app.start()
  File "/home/wesm/code/ipython/IPython/frontend/terminal/ipapp.py", line 359, in start
    return self.subapp.start()
  File "/home/wesm/code/ipython/IPython/frontend/html/notebook/notebookapp.py", line 555, in start
    browser = webbrowser.get(self.browser)
  File "/home/wesm/epd/lib/python2.7/webbrowser.py", line 52, in get
    raise Error("could not locate runnable browser")
Error: could not locate runnable browser

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    c.Application.verbose_crash=True
@fperez
Copy link
Member

fperez commented Jun 22, 2012

Yup, crash bug is always a blocker. Thanks to @bfroehle for the quick response, I'll go ahead with review now.

@fperez fperez closed this as completed in e636c04 Jun 23, 2012
@fperez
Copy link
Member

fperez commented Jun 23, 2012

@wesm, we just merged the fix by merging #2010, thanks for reporting.

fperez added a commit to minrk/ipython that referenced this issue Jun 23, 2012
notebook: Print a warning (but do not abort) if no webbrowser can be found.

Closes ipythongh-2006.
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
notebook: Print a warning (but do not abort) if no webbrowser can be found.

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

Successfully merging a pull request may close this issue.

2 participants