Cannot launch SAGE on MacOS BigSur

207 views
Skip to first unread message

sylvain golenia

unread,
Mar 12, 2021, 5:16:07 PM3/12/21
to sage-support
Dear support team,

I am struggling in launching SAGE on mac BigSur. I have reinstalled homebrew and python3 and also opensll. I did the sage -f python3 and still had errors. I am not at home with all these manipulations and tried what I found on forums but could not go any further. Please find below my log.

Thanks much for your support.

Sincerely
Sylvain

The Jupyter notebook requires ssl, even if you do not use
https. Install the openssl development packages in your system and
then rebuild Python (sage -f python3).

/Applications/SageMath-9.2.app/Contents/Resources/sage/src/bin/sage: line 532: /Applications/SageMath-9.2.app/Contents/Resources/sage/local/bin/python3: No such file or directory
/Applications/SageMath-9.2.app/Contents/Resources/sage/src/bin/sage: line 532: exec: /Applications/SageMath-9.2.app/Contents/Resources/sage/local/bin/python3: cannot execute: No such file or directory
/Applications/SageMath-9.2.app/Contents/Resources/sage/src/bin/sage: line 532: /Applications/SageMath-9.2.app/Contents/Resources/sage/local/bin/python3: No such file or directory
/Applications/SageMath-9.2.app/Contents/Resources/sage/src/bin/sage: line 532: exec: /Applications/SageMath-9.2.app/Contents/Resources/sage/local/bin/python3: cannot execute: No such file or directory
/Applications/SageMath-9.2.app/Contents/Resources/sage/src/bin/sage: line 532: /Applications/SageMath-9.2.app/Contents/Resources/sage/local/bin/python3: No such file or directory
/Applications/SageMath-9.2.app/Contents/Resources/sage/src/bin/sage: line 532: exec: /Applications/SageMath-9.2.app/Contents/Resources/sage/local/bin/python3: cannot execute: No such file or directory
/Applications/SageMath-9.2.app/Contents/Resources/sage/src/bin/sage: line 532: /Applications/SageMath-9.2.app/Contents/Resources/sage/local/bin/python3: No such file or directory
/Applications/SageMath-9.2.app/Contents/Resources/sage/src/bin/sage: line 532: exec: /Applications/SageMath-9.2.app/Contents/Resources/sage/local/bin/python3: cannot execute: No such file or directory
/Applications/SageMath-9.2.app/Contents/Resources/sage/src/bin/sage: line 532: /Applications/SageMath-9.2.app/Contents/Resources/sage/local/bin/python3: No such file or directory
/Applications/SageMath-9.2.app/Contents/Resources/sage/src/bin/sage: line 532: exec: /Applications/SageMath-9.2.app/Contents/Resources/sage/local/bin/python3: cannot execute: No such file or directory

Dima Pasechnik

unread,
Mar 12, 2021, 5:57:30 PM3/12/21
to sage-support
Use conda, this is the most reliable solution for macOS:
https://doc.sagemath.org/html/en/installation/conda.html
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/4740438e-a5fe-4b1f-a5fe-7f1d52ec89b4n%40googlegroups.com.

sylvain golenia

unread,
Mar 13, 2021, 9:31:50 AM3/13/21
to sage-s...@googlegroups.com
Thanks much for this advice. I was able to launch sage in a terminal. However, when I try sage -njupyter, here is the answer that I get :

/Users/XXX/opt/miniconda3/envs/sage/bin/sage: line 1094: /Users/XXX/opt/miniconda3/envs/sage/build/bin/sage-site: No such file or directory

/Users/XXX/opt/miniconda3/envs/sage/bin/sage: line 1094: exec: /Users/XXX/opt/miniconda3/envs/sage/build/bin/sage-site: cannot execute: No such file or directory


Thanks for you help.






You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/0i9CX1eR2Ek/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAWYfq1dL5%2B-OLzBBeL%3D6DRVDmA0Tzb3hr1b28Hfgqx-h57v0Q%40mail.gmail.com.

Dima Pasechnik

unread,
Mar 13, 2021, 11:24:46 AM3/13/21
to sage-support
On Sat, Mar 13, 2021 at 2:31 PM sylvain golenia
<sylvain...@gmail.com> wrote:
>
> Thanks much for this advice. I was able to launch sage in a terminal. However, when I try sage -njupyter, here is the answer that I get :
>
> /Users/XXX/opt/miniconda3/envs/sage/bin/sage: line 1094: /Users/XXX/opt/miniconda3/envs/sage/build/bin/sage-site: No such file or directory
>
> /Users/XXX/opt/miniconda3/envs/sage/bin/sage: line 1094: exec: /Users/XXX/opt/miniconda3/envs/sage/build/bin/sage-site: cannot execute: No such file or directory

"sage -n" is a hack.

I'd have tried using conda's jupyter notebook directly (i.e. conda
package notebook)
https://jupyter.org/install
(perhaps it's already installed once sage is installed)

I guess it knows about sage's jupyter kernel, so you can choose the
kernel once you launched notebook.

HTH
Dima
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CACRXk%2B4dXY9qcyp-zzWmL1iTiipFw5wi3ffuspsQ6%3D%2BGjyquTA%40mail.gmail.com.

slelievre

unread,
Mar 14, 2021, 1:07:10 PM3/14/21
to sage-support
If you install Sage for macOS using the binaries from the
download pages of the SageMath website, make sure to
run the `fix_mac_sage` script from


If you install via Conda, then to launch Jupyter or JupyerLab,
open a terminal, activate the desired Conda environment,
and run one of

    jupyter notebook

or

    jupyter lab

That's it.
Reply all
Reply to author
Forward
0 new messages