I wonder if this is an OSX-specific bug. What happens if you run: sage -sh -c 'test -x "$SAGE_LOCAL/bin/python2"; echo $?'
The message you're getting comes from the sage-python23 script which is supposed to run the Python interpreter included in Sage, and for some reason it's not working properly for you. On Fri, Dec 21, 2018 at 6:43 AM darwin doppelganger <danp...@gmail.com> wrote: > > Back on Oct 29, I mentioned on ask.sagemath.org a problem running Sage on > MacOS 10.14, Mojave. I see now that someone else has responded with what > looks like the same issue. I thought I would mention it here because it looks > like you are contemplating a new release. > > I am now running macOS Mojave, 10.14.2 on a 15 inch 2017 MacBook Pro. When I > execute the app from sage-8.4-OSX_10.13.6-x86_64.app.dmg, I get the same > behavior as before, but in the meantime, I have switched over to the Jupyter > notebook by default and I am getting a message from Sage saying "Jupyter > server failed to start". On the console, I get a message saying: > >> Error: Tried to use Sage's Python which was not yet installed. >> If this was called from an spkg-install script for another >> package you should add $(PYTHON) as a dependency in >> build/pkgs/<pkg>/dependencies > > > I am still able to fall back to using sage-8.4.rc1-OSX_10.13.6_x86_64.app > with Jupyter and it works OK except for taking about a minute or so to start > while the browser icon "bounces" in the dock. The console message from my > session with sage-8.4.rc1 says: > >> [I 20:27:36.243 NotebookApp] Using MathJax: nbextensions/mathjax/MathJax.js >> [I 20:27:36.716 NotebookApp] Serving notebooks from local directory: >> /Users/danielputnam/Documents/sage >> [I 20:27:36.716 NotebookApp] 0 active kernels >> [I 20:27:36.716 NotebookApp] The Jupyter Notebook is running at: >> [I 20:27:36.716 NotebookApp] >> http://localhost:8888/?token=cb44bbd926bd84757e11180fd23af19e631499a27c6ecc8f >> [I 20:27:36.716 NotebookApp] Use Control-C to stop this server and shut down >> all kernels (twice to skip confirmation). >> [C 20:27:36.719 NotebookApp] >> >> Copy/paste this URL into your browser when you connect for the first >> time, >> to login with a token: >> >> http://localhost:8888/?token=cb44bbd926bd84757e11180fd23af19e631499a27c6ecc8f&token=cb44bbd926bd84757e11180fd23af19e631499a27c6ecc8f >> [I 20:29:11.450 NotebookApp] Accepting one-time-token-authenticated >> connection from ::1 >> [I 20:29:41.462 NotebookApp] 302 GET >> /?token=cb44bbd926bd84757e11180fd23af19e631499a27c6ecc8f&token=cb44bbd926bd84757e11180fd23af19e631499a27c6ecc8f >> (::1) 0.33ms >> [I 20:29:53.429 NotebookApp] Kernel started: >> 3895a9a5-866e-46a7-9794-2e77241f522b >> [I 20:29:58.079 NotebookApp] Adapting to protocol v5.1 for kernel >> 3895a9a5-866e-46a7-9794-2e77241f522b >> [I 20:33:53.430 NotebookApp] Saving file at /dec9.ipynb > > > I don't know if this matters because I'm not compiling anything, but my mac > is one of those that lack a /usr/include directory as mentioned in #26713. > > > > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.