Simple notebook startup error

251 views
Skip to first unread message

John Bartelt

unread,
May 18, 2017, 2:57:49 PM5/18/17
to Project Jupyter
--->jupyter notebook
.
.
.

execution error: "http://localhost:8888/tree" doesn’t understand the “open location” message. (-1708)

Do I have something wrong with my configuration?

Thomas Kluyver

unread,
May 18, 2017, 3:58:08 PM5/18/17
to Project Jupyter
No, it's a bug that's cropped up with an update to OS X. It sounds like it might need fixing in Python. There's some discussion about it here:
https://github.com/jupyter/notebook/issues/2438

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/24d9c583-c090-44de-9f54-015a60ad8bb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Jaffe

unread,
May 19, 2017, 6:19:10 AM5/19/17
to Project Jupyter
Just for search-ability and completeness:
  • It can be fixed by setting `browser=webbrowser.get("Safari")` in .jupyter/jupyter_notebook_config.py [or "firefox", but not, at present "chrome" -- which is an unrelated issue that is due to be fixed in the next Python releases].
  • It is a manifestation of an issue in the python standard library module `webbrowser.py` -- reported at http://bugs.python.org/issue30392
  • But it is *really* a bug in macOS introduced with the Sierra 10.12.5 update: the `osascript` command doesn't work with `open location <url>` which is meant to open the default browser at that <url>. 
    • Strangely, you can still `tell application "safari" to open location <url>" in osascript.
    • Even more strangely, the applescript *does* work in the AppleScript editor, just not in `osascript`. I have filed a radar at https://bugreport.apple.com but others should feel free/encouraged to follow suit.
Andrew


On 18/05/2017 20:57, Thomas Kluyver wrote:
> No, it's a bug that's cropped up with an update to OS X. It sounds like it might need fixing in Python. There's some discussion about it here: https://github.com/jupyter/notebook/issues/2438
> On 18 May 2017 at 19:57, John Bartelt wrote:
>     $ jupyter notebook
>     ....
Reply all
Reply to author
Forward
0 new messages