Wups ! I forgot that I *did* create Trac#21816 <https://trac.sagemath.org/ticket/21816> for that...
Le mercredi 29 novembre 2017 21:00:17 UTC+1, Emmanuel Charpentier a écrit : > > ISTR to have reported (no ticket, just n sage-devel or sage-release) that, > after installing the Sage kernel in the system's jupyter notebook, the Sage > kernel failed to start due to lack of definitopn for SAGE_ROOT. Trace of > execution : > > > =================================================================================== > charpent@asus16-ec:~$ jupyter notebook > [I 20:43:16.366 NotebookApp] Serving notebooks from local directory: > /home/charpent > [I 20:43:16.366 NotebookApp] 0 active kernels > [I 20:43:16.366 NotebookApp] The Jupyter Notebook is running at: > [I 20:43:16.366 NotebookApp] > http://localhost:8888/?token=0eed5f7eb89f576804250b9a5351fdb923874706db8e325a > [I 20:43:16.366 NotebookApp] Use Control-C to stop this server and shut > down all kernels (twice to skip confirmation). > [C 20:43:16.368 NotebookApp] > > Copy/paste this URL into your browser when you connect for the first > time, > to login with a token: > > http://localhost:8888/?token=0eed5f7eb89f576804250b9a5351fdb923874706db8e325a > [10704:10744:1129/204316.598038:ERROR:nss_util.cc(725)] After loading Root > Certs, loaded==false: NSS error code: -8018 > ATTENTION: default value of option force_s3tc_enable overridden by > environment. > [I 20:43:17.210 NotebookApp] Accepting one-time-token-authenticated > connection from ::1 > > ------------------------------------------------------------------------------------------------------------------------ > Here I attempt to open a pre-existing Sage notebook (generated with Sage's > jupyter > > ------------------------------------------------------------------------------------------------------------------------ > [W 20:43:18.336 NotebookApp] 404 GET > /static/components/moment/locale/fr.js?v=20171129204313 (::1) 6.58ms > referer=http://localhost:8888/tree > [W 20:43:37.427 NotebookApp] 404 GET > /static/components/moment/locale/fr.js?v=20171129204313 (::1) 1.67ms > referer=http://localhost:8888/notebooks/Untitled.ipynb > 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-8/local/bin/sage-env'; > possibly contact sage-devel (see http://groups.google.com/group/sage-devel > ). > [I 20:43:37.512 NotebookApp] Kernel started: > 0328ab43-a940-40a7-9371-c53f72f0b853 > [I 20:43:40.510 NotebookApp] KernelRestarter: restarting kernel (1/5) > 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-8/local/bin/sage-env'; > possibly contact sage-devel (see http://groups.google.com/group/sage-devel > ). > [I 20:43:43.517 NotebookApp] KernelRestarter: restarting kernel (2/5) > 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-8/local/bin/sage-env'; > possibly contact sage-devel (see http://groups.google.com/group/sage-devel > ). > [I 20:43:46.523 NotebookApp] KernelRestarter: restarting kernel (3/5) > 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-8/local/bin/sage-env'; > possibly contact sage-devel (see http://groups.google.com/group/sage-devel > ). > [W 20:43:47.639 NotebookApp] Timeout waiting for kernel_info reply from > 0328ab43-a940-40a7-9371-c53f72f0b853 > [I 20:43:49.529 NotebookApp] KernelRestarter: restarting kernel (4/5) > WARNING:root:kernel 0328ab43-a940-40a7-9371-c53f72f0b853 restarted > 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-8/local/bin/sage-env'; > possibly contact sage-devel (see http://groups.google.com/group/sage-devel > ). > [W 20:43:52.535 NotebookApp] KernelRestarter: restart failed > [W 20:43:52.535 NotebookApp] Kernel 0328ab43-a940-40a7-9371-c53f72f0b853 > died, removing from map. > ERROR:root:kernel 0328ab43-a940-40a7-9371-c53f72f0b853 restarted failed! > [W 20:43:52.550 NotebookApp] 410 DELETE > /api/sessions/478a47ac-4621-4f7d-975e-0aad30ec3dbc (::1): Kernel deleted > before session > [W 20:43:52.550 NotebookApp] Kernel deleted before session > [W 20:43:52.550 NotebookApp] 410 DELETE > /api/sessions/478a47ac-4621-4f7d-975e-0aad30ec3dbc (::1) 1.49ms referer= > http://localhost:8888/notebooks/Untitled.ipynb > ------------------------------------ > Here, I throw the towel... > ------------------------------------ > [W 20:43:59.019 NotebookApp] 404 DELETE > /api/sessions/478a47ac-4621-4f7d-975e-0aad30ec3dbc (::1): Session not > found: session_id='478a47ac-4621-4f7d-975e-0aad30ec3dbc' > [W 20:43:59.020 NotebookApp] Session not found: > session_id='478a47ac-4621-4f7d-975e-0aad30ec3dbc' > [W 20:43:59.020 NotebookApp] 404 DELETE > /api/sessions/478a47ac-4621-4f7d-975e-0aad30ec3dbc (::1) 2.46ms referer= > http://localhost:8888/notebooks/Untitled.ipynb > > =================================================================================== > > Defining SAGE_ROOT before starting jupyter fixes the problem. > > Trying to start Sage's R kernel (installed in Sage's R) gives similar > results. > > Ticket-worthy ? > > -- > Emmanuel Charpentier > > Le mercredi 29 novembre 2017 17:33:02 UTC+1, Jeroen Demeyer a écrit : >> >> On 2017-11-29 15:55, tuxedomask2002 wrote: >> > The executable, following the documentation. >> >> Sorry, I cannot help you further given the explanation that you gave. >> There is obviously something wrong with your setup, but I cannot guess >> what. >> >> In any case, you should not manually set SAGE_ROOT if you just want to >> run Sage. >> >> Also note that your report is a bit inconsistent. In your first post, >> you talked about running "sage" and later you talked about running >> "./sage" The difference is important! >> > -- 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.