I'm grabbing the opportunity to recall that , whereas I have installed the Sage kernel in my (systemwide) jupyter installation via the suitable "jupyter kernelspec install ..." invocation), when I try to use it from the systemwide jupyter via the "normal" invocation "jupyter notebook", it complains of SAGE_ROOT being undefined and does not lauch Sage. OTOH, if I invoke "SAGE_ROOT=<whatever> jupyter notebook", all is fine and dandy. My $SAGE_ROOT/sage script is symlinked to /usr/local/bin/, which is on my $PATH.
Suggestions ? -- Emmanuel Charpentier Le mercredi 30 mai 2018 19:32:42 UTC+2, Matthias Koeppe a écrit : > > On Wednesday, May 30, 2018 at 9:01:59 AM UTC-7, Nils Bruin wrote: >> >> >> Currently, if I run the script $SAGE_LOCAL/bin/sage in my normal >> environment (where SAGE_ROOT is not set) then I get: >> >> Error: You must set the SAGE_ROOT environment variable or run this >> script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory. >> Error setting environment variables by sourcing >> '/usr/local/sage/sage-git/local/bin/sage-env'; >> possibly contact sage-devel (see >> http://groups.google.com/group/sage-devel). >> >> If instead I run the script $SAGE_ROOT/sage a value for SAGE_ROOT is >> figured out and everything works fine when called from my normal >> environment. >> >> > I agree that we should make $SAGE_LOCAL/bin/sage work without environment > variables set. > We discussed this in https://trac.sagemath.org/ticket/21479 ("./configure > --prefix=SAGE_LOCAL"), when $SAGE_LOCAL/bin/sage-env-config was introduced; > but then a less ambitious solution was implemented for that ticket. > > We could add a line setting $SAGE_ROOT in $SAGE_LOCAL/bin/sage-env-config > (via src/bin/sage-env-config.in). > > On the other hand, of course, most uses of SAGE_ROOT have been eliminated > (see https://trac.sagemath.org/ticket/21591 - Replace use of SAGE_ROOT by > more specific environment variables); and it would be good to finish this > job and allow sage to work without having to complain about this > environment variable. > > > > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
