First time here? Check out the FAQ!

Ask Your Question
1

SageMath 9.0 app macOS: jupyter server fails to start

asked 5 years ago

murraye gravatar image

updated 5 years ago

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.

Preview: (hide)

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 ( 5 years ago )

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 ( 5 years ago )

Same happened to me

joseru gravatar imagejoseru ( 5 years ago )

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 ( 5 years ago )

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 ( 5 years ago )

3 Answers

Sort by » oldest newest most voted
1

answered 5 years ago

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.
Preview: (hide)
link

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 ( 5 years ago )
1

answered 5 years ago

Tony-64 gravatar image

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

Preview: (hide)
link

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: 5 years ago

Seen: 3,444 times

Last updated: Jan 18 '20