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

Gracefully handle having no default browser #995

Open
tbekolay opened this issue Sep 29, 2018 · 1 comment
Open

Gracefully handle having no default browser #995

tbekolay opened this issue Sep 29, 2018 · 1 comment

Comments

@tbekolay
Copy link
Member

From @xchoo in nengo/nengo#1478:

When nengo doesn't detect a browser it can automatically open it throws this error and quits:

Traceback (most recent call last):
  File "/home/xchoo/miniconda2/envs/inrc/bin/nengo", line 11, in <module>
    sys.exit(main())
  File "/home/xchoo/miniconda2/envs/inrc/lib/python3.5/site-packages/nengo_gui/main.py", line 123, in main
    wb = webbrowser.get()
  File "/home/xchoo/miniconda2/envs/inrc/lib/python3.5/webbrowser.py", line 51, in get
    raise Error("could not locate runnable browser")
webbrowser.Error: could not locate runnable browser

I propose changing the behaviour to run in --no-browser mode instead (similar to what jupyter notebook does when it doesn't find a runnable browser)

@xchoo
Copy link
Member

xchoo commented Sep 29, 2018

Whoops! Hahaha. 🤣 Thanks for moving this to the right place.

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

No branches or pull requests

2 participants