Ask Your Question
1

SageMath 9.0 app macOS: jupyter server fails to start

asked 2020-01-05 20:35:42 +0100

murraye gravatar image

updated 2020-01-18 08:53:44 +0100

FrédéricC gravatar image

When I open SageMath-9.0.app under macOS Catallina (10.15.2), I get an immediate pop-up error window saying, "Jupyter Server failed to start".

The log shows:

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01                     │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
Please wait while the Sage Jupyter Notebook server starts...

However, I can get the Jupyter server to start with an indirect method that was never required in earlier versions of SageMath-x.x.app, namely: In Finder, Show package contents for SageMath-9.0.app. Navigate in Finder to Contents/MacOS. Double-click Sage. That both starts the server and opens the expected client window in Safari, from which I can open and evaluate cells in an existing notebook or create a new SageMath 9.0 notebook.

So something that used to be "hooked up" between the SageMath-x.x.app and the command to start the jupyter server has been broken with 9.0.

edit retag flag offensive close merge delete

Comments

Note that I can first start sage in Terminal (by executing there /Applications/SageMath-9.0-app/sage) Terminal, then from the sage command line execute: !sage -n jupyter

murraye gravatar imagemurraye ( 2020-01-05 21:44:20 +0100 )edit

same here macOS 15.2, sage math 9.0 Log error: shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted

mihai gravatar imagemihai ( 2020-01-07 22:35:21 +0100 )edit

Same happened to me

joseru gravatar imagejoseru ( 2020-01-07 23:34:22 +0100 )edit

Same here (MacOs Catalina 10.15.2, sage-9.0-OSX_10.15.2-x86_64.app.dmg).

I like to work with my default Sage folder mapped to iCloud (through the Documents folder). When I change the default Jupyter path (in the app's preferences) to a folder on the local machine (i.e. not mapped to iCloud), the issue does not occur. With Sage 8.8 and lower, my preference for mapping my default Sage folder to iCloud was never a problem...

Tony-64 gravatar imageTony-64 ( 2020-01-11 16:31:36 +0100 )edit

Another cloud-based folder (such as OneDrive) does work as well. So fortunately it's still possible to have the same view on one's Sage projects from multiple machines...

Tony-64 gravatar imageTony-64 ( 2020-01-17 20:16:50 +0100 )edit

3 Answers

Sort by » oldest newest most voted
1

answered 2020-02-13 07:47:11 +0100

Vincent87F gravatar image

Got it!

  1. Copy SageMath-9.0.app from DMG to your application folder. Don't rename it
  2. Right-click the app, select open and confirm you want to open it
  3. You get a message saying Jupyter failed to start
  4. Quit SageMath-9.0.app
  5. Open terminal.app and enter cd /Applications/SageMath-9.0.app/Contents/Resources/sage then ./sage
  6. When you see the invite sage: enter quit()
  7. You can now launch SageMath from the Finder as usual.
edit flag offensive delete link more

Comments

Hi there! I just installed SageMath for the first time and ran into this problem "jupyter server fails to start". I managed to start it using your steps. However when I want to open anything from the menu, such as open "Sage Help", "Sage Tutorial" or "Tour of Sage", it would open a new tap and I would run into the same issue.

So the fix doesn't seem to be "global" for me for some reason. Is there anything I can do? Also: How big are the chances that the developers look into this? Catalina being out since October one would think there must be more users who struggle with this.

Britzel gravatar imageBritzel ( 2020-02-14 13:10:21 +0100 )edit
1

answered 2020-01-17 20:17:48 +0100

Tony-64 gravatar image

See Samuel Lelièvre's answer to my question here.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

4 followers

Stats

Asked: 2020-01-05 20:35:42 +0100

Seen: 3,400 times

Last updated: Jan 18 '20