On Thursday, May 25, 2017 at 1:49:34 AM UTC-7, Frédéric Chapoton wrote: > > ok, now with 8.0.b8, you can just do > > "export SAGE_PYTHON3=yes" > > and then "make build". This should succeed, with no error message. > > Then try "./sage" > > This fails with some traceback about not finding sage.repl.interpreter. > > Once again, can *please* someone help to fix that ? >
I suggested a problem before: the script sage-ipython, which is used to start Sage, has as its first line #!/usr/bin/env python, and therefore runs Python 2, not Python 3. The next interesting line in that script is from sage.repl.interpreter import SageTerminalApp Since you have built Sage with Python 3, then the Sage library is installed in local/lib/python3.6/site-libraries/sage, so Python 2 doesn't find it. Is that not the problem? A temporary fix: change to #!/usr/bin/env sage-python23. A longer term fix: we have to decide how to run Sage with Python 3. Maybe create a script sage-ipython3 which uses #!/usr/bin/env python3 and a command-line option for sage which tells it to use Python 3? We need a design discussion about this. -- John > > Frederic > > Le vendredi 19 mai 2017 18:51:46 UTC+2, Frédéric Chapoton a écrit : >> >> Dear all, >> >> We have almost reached the state of vanilla sage building with >> SAGE_PYTHON3=yes (this does not mean working !). But something seems to go >> wrong, and I would like help to find and fix the current problem. >> >> So, for people that want to do something else than answering polls, you >> can try the following: >> >> In a separate install of sage, on top of 8.0.beta7, apply >> >> https://trac.sagemath.org/ticket/23030 (git pull trac u/chapoton/23030) >> >> and >> >> https://trac.sagemath.org/ticket/22305 (git pull trac public/22305) >> >> then export SAGE_PYTHON3=yes >> >> and make build. >> >> This should finish succesfully, with the usual message. Then try ./sage >> >> For me, this fails with some traceback about not finding >> sage.repl.interpreter. Can someone help to fix that please ? >> >> Frédéric >> >> -- 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.