Hello. I recently installed Sagemath 9.0, of 64 bits in a computer using 
"Linux Mint 19.3 Tricia" (using the Ubuntu Installer downloaded from here: 
http://sagemath.c3sl.ufpr.br/linux/64bit/index.html ) and it worked pretty 
well for the first couple of hours. However, I created a notebook using the 
command:

$ ./sage -notebook

and it worked fine for the first time I used the notebook, made 
calculations and created adequate plots, however, when I closed the 
notebook and tried to open it again, there was a message indicating that 
"There is no connection to the kernel". This happens even when the 
installation of SageMath is local to the machine I'm using. Adjoint to this 
message is the notebook itself.

I tried to reinstall the entire program but the bug is persistent.

Also, when sage is launched directly from terminal with the command

$ ./sage

there seems to be no problem, as the program works just fine.

I also switched to the Python kernel from the notebook and it seems to work 
fine, except of course that it doesn't have the same commands as the 
SageMath kernel.

The terminal in which I run the program generates this message:

------------------------------------------------------------------------------------------------------------------------------------------------------

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01                     │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
Please wait while the SageNB export server starts...
[I 07:57:21.925 NotebookApp] Using MathJax: nbextensions/mathjax/MathJax.js
[I 07:57:22.200 NotebookApp] Serving notebooks from local directory: 
/home/jokingreaper
[I 07:57:22.200 NotebookApp] The Jupyter Notebook is running at:
[I 07:57:22.200 NotebookApp] 
http://localhost:8888/?token=df2929c61c1567dbb49b58cfa8953f6f6c0ab84d8f078e75
[I 07:57:22.200 NotebookApp] Use Control-C to stop this server and shut 
down all kernels (twice to skip confirmation).
[C 07:57:22.272 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///run/user/1000/jupyter/nbserver-4714-open.html
    Or copy and paste one of these URLs:
        
http://localhost:8888/?token=df2929c61c1567dbb49b58cfa8953f6f6c0ab84d8f078e75
[I 07:57:54.301 NotebookApp] Kernel started: 
9b4f0013-0d21-4710-aa9d-4db40af8e1d1
/home/jokingreaper/SageMath/SageMath/local/bin/python3: Error while finding 
module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: 
No module named 'sage.repl'; 'sage' is not a package)
[I 07:57:57.300 NotebookApp] KernelRestarter: restarting kernel (1/5), new 
random ports
/home/jokingreaper/SageMath/SageMath/local/bin/python3: Error while finding 
module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: 
No module named 'sage.repl'; 'sage' is not a package)
[I 07:58:00.316 NotebookApp] KernelRestarter: restarting kernel (2/5), new 
random ports
/home/jokingreaper/SageMath/SageMath/local/bin/python3: Error while finding 
module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: 
No module named 'sage.repl'; 'sage' is not a package)
[I 07:58:03.328 NotebookApp] KernelRestarter: restarting kernel (3/5), new 
random ports
/home/jokingreaper/SageMath/SageMath/local/bin/python3: Error while finding 
module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: 
No module named 'sage.repl'; 'sage' is not a package)
[I 07:58:06.336 NotebookApp] KernelRestarter: restarting kernel (4/5), new 
random ports
/home/jokingreaper/SageMath/SageMath/local/bin/python3: Error while finding 
module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: 
No module named 'sage.repl'; 'sage' is not a package)
[W 07:58:09.344 NotebookApp] KernelRestarter: restart failed
[W 07:58:09.345 NotebookApp] Kernel 9b4f0013-0d21-4710-aa9d-4db40af8e1d1 
died, removing from map.
[W 07:58:15.717 NotebookApp] Replacing stale connection: 
9b4f0013-0d21-4710-aa9d-4db40af8e1d1:3c87fec8a8c34a2a8bff058350ea3235
[W 07:58:37.784 NotebookApp] Replacing stale connection: 
9b4f0013-0d21-4710-aa9d-4db40af8e1d1:3c87fec8a8c34a2a8bff058350ea3235
[W 07:58:54.716 NotebookApp] Timeout waiting for kernel_info reply from 
9b4f0013-0d21-4710-aa9d-4db40af8e1d1
[E 07:58:54.719 NotebookApp] Error opening stream: HTTP 404: Not Found 
(Kernel does not exist: 9b4f0013-0d21-4710-aa9d-4db40af8e1d1)
[W 07:58:54.722 NotebookApp] 404 GET 
/api/kernels/9b4f0013-0d21-4710-aa9d-4db40af8e1d1/channels?session_id=3c87fec8a8c34a2a8bff058350ea3235
 
(127.0.0.1): Kernel does not exist: 9b4f0013-0d21-4710-aa9d-4db40af8e1d1
[W 07:58:54.734 NotebookApp] 404 GET 
/api/kernels/9b4f0013-0d21-4710-aa9d-4db40af8e1d1/channels?session_id=3c87fec8a8c34a2a8bff058350ea3235
 
(127.0.0.1) 39020.31ms referer=None
[W 07:58:54.735 NotebookApp] 404 GET 
/api/kernels/9b4f0013-0d21-4710-aa9d-4db40af8e1d1/channels?session_id=3c87fec8a8c34a2a8bff058350ea3235
 
(127.0.0.1): Kernel does not exist: 9b4f0013-0d21-4710-aa9d-4db40af8e1d1
[W 07:58:54.736 NotebookApp] 404 GET 
/api/kernels/9b4f0013-0d21-4710-aa9d-4db40af8e1d1/channels?session_id=3c87fec8a8c34a2a8bff058350ea3235
 
(127.0.0.1) 16954.20ms referer=None
[W 07:58:58.761 NotebookApp] Replacing stale connection: 
9b4f0013-0d21-4710-aa9d-4db40af8e1d1:3c87fec8a8c34a2a8bff058350ea3235
[W 07:59:26.784 NotebookApp] Replacing stale connection: 
9b4f0013-0d21-4710-aa9d-4db40af8e1d1:3c87fec8a8c34a2a8bff058350ea3235
[W 08:00:02.804 NotebookApp] Replacing stale connection: 
9b4f0013-0d21-4710-aa9d-4db40af8e1d1:3c87fec8a8c34a2a8bff058350ea3235
[W 08:00:54.825 NotebookApp] Replacing stale connection: 
9b4f0013-0d21-4710-aa9d-4db40af8e1d1:3c87fec8a8c34a2a8bff058350ea3235

------------------------------------------------------------------------------------------------------------------------------------------------------

Unfortunately I don't know how to fix this, And I would like some help on 
how to clean this.


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/2face8a6-48f4-4638-a725-88768fc74879%40googlegroups.com.

Attachment: First-Notebook.ipynb
Description: Binary data

Reply via email to