3-manifolds / Sage_macOS

SageMath as a macOS application bundle.
152 stars 15 forks source link

macOS Monterey issue #31

Closed Mr-iX closed 2 years ago

Mr-iX commented 2 years ago

After I updated to macOS Monterey I cannot start a Jupyter session, as I get the following error message when trying to select a folder:

Bildschirmfoto 2021-10-25 um 20 58 12

Is this a known issue or is there any fix for it?

culler commented 2 years ago

This is a known issue with Tk on Monterey. Unfortunately I will need to rebuild the Tk framework in order to make the app work on Monterey. When that is done I will replace the disk image and add a comment to this ticket.

culler commented 2 years ago

@Mr-iX there is now a new disk image in the assets for the v1.2.1 release. It is named SageMath-9.4-Monterey.dmg. Would you please move your current SageMath-9-4.app to the trash and install the one in the Monterey disk image? And please respond to say whether that works for you with your Monterey OS. Thank you.

Mr-iX commented 2 years ago

Thanks for the quick help! I installed the new app and it works perfectly fine đź‘Ť

andrew-j-nicas commented 2 years ago

sagemath-9.4.app under macOS Monterey: can't connect to server for Jupyter

After installing macOS Monterey (Version 12.0.1) on my iMac 2019, if I launch SageMath-9.4.app and choose the "Jupyter notebook from folder" option, then I get the error:

Safari Can't Connect to the Server Safari can't open the page 'localhost:8888/tree" because Safari can't connect to the server "localhost"

Any ideas for fixing this? The command line version still works. The "Jupyter notebook from folder" option worked prior to installing Monterey (the upgrade was from Big Sur 10.6.1).

I also tried the "SageMath-9.4-Monterey.dmg" version and same result.

culler commented 2 years ago

Hi Andrew. One thing to try would be Nathan's solution to #28: rm -rf "~/Library/Application Support/SageMath/9.4/Jupyter"

You might also check if there actually is a jupyter server running when you get the error: ps auxwww | grep jupyter Look for something like: var/tmp/sage-9.4-current/local/bin/python3 /var/tmp/sage-9.4-current/local/bin/jupyter-notebook --notebook-dir=/Users/culler/Documents/Sage

If there appears to be a server running, you could try connecting to localhost:8888/tree with Firefox. (Who knows what new security "features" might have gotten added to Safari?)

andrew-j-nicas commented 2 years ago

Hi Marc,

"rm -rf ~/Library/Application Support/SageMath/9.4/Jupyter”  worked!

Thank you very much.

Andrew

On Oct 28, 2021, at 8:00 AM, Marc Culler @.***> wrote:

Hi Andrew. One thing to try would be Nathan's solution to

28:

rm -rf ~/Library/Application Support/SageMath/9.4/Jupyter You might also check if there actually is a jupyter server running when you get the error: ps auxwww | grep jupyter Look for something like: var/tmp/sage-9.4-current/local/bin/python3 /var/tmp/sage-9.4-current/local/bin/jupyter-notebook --notebook-dir=/Users/culler/Documents/Sage If there appears to be a server running, you could try connecting to localhost:8888/tree with Firefox. (Who knows what new security "features" might have gotten added to Safari?) — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

culler commented 2 years ago

Excellent! I will close the ticket.