On Tue, Oct 20, 2020 at 6:12 PM Carl Eberhart <carl.eberh...@gmail.com> wrote:
>
> I am running Ubuntu Mate 20.04 on a raspberry pi 4, and have installed 
> Sagemath 9.0 using the Synaptic package manager.  I can open a python3 
> notebook, but the sagemath 9.0 kernel refuses to start.  Can someone make a 
> suggestion?


This is not likely to work. Sage 9.0 was released with notebook
version 5.7.6, whereas I think Ubuntu 20.04 ships
notebook version 6.0.3.

Your best bet is to build Sage 9.2 (a recent beta) or Sage 9.1 from source.



> Here is a transcript of my last attempt.
>
> ## I have installed sagemath 9.0 on a Rasberry Pi 4 running Ubuntu Mate 20.04
> ## at 64 bits using the synaptic package manager
> ## Here is an attempt to use sagemath
> carl@pi:~$ jupyter-notebook
> [I 15:37:12.668 NotebookApp] Serving notebooks from local directory: 
> /home/carl
> [I 15:37:12.668 NotebookApp] The Jupyter Notebook is running at:
> [I 15:37:12.668 NotebookApp] 
> http://localhost:8888/?token=f1eca39609cf60e86905004caf9543e902ae4e61a6a7ca3a
> [I 15:37:12.668 NotebookApp]  or 
> http://127.0.0.1:8888/?token=f1eca39609cf60e86905004caf9543e902ae4e61a6a7ca3a
> [I 15:37:12.668 NotebookApp] Use Control-C to stop this server and shut down 
> all kernels (twice to skip confirmation).
> [C 15:37:12.760 NotebookApp]
>
>     To access the notebook, open this file in a browser:
>         file:///home/carl/.local/share/jupyter/runtime/nbserver-3527-open.html
>     Or copy and paste one of these URLs:
>         
> http://localhost:8888/?token=f1eca39609cf60e86905004caf9543e902ae4e61a6a7ca3a
>      or 
> http://127.0.0.1:8888/?token=f1eca39609cf60e86905004caf9543e902ae4e61a6a7ca3a
>
> ## Here I open a new python 3 notebook, make a small calculation and save
> ## the notebook as sample.ipnb
>
> I 15:39:55.786 NotebookApp] Creating new notebook in
> [I 15:40:00.625 NotebookApp] Kernel started: 
> 23c8750f-bb85-4630-a70e-1cdd0cc62a4e
> [IPKernelApp] ERROR | No such comm target registered: jupyter.widget.version
> [IPKernelApp] ERROR | No such comm target registered: jupyter.widget.version
> [I 15:42:00.649 NotebookApp] Saving file at /Untitled4.ipynb
> [I 15:48:00.640 NotebookApp] Saving file at /Untitled4.ipynb
> [W 15:48:52.363 NotebookApp] 404 GET 
> /api/contents/sample.ipynb?type=notebook&content=0&_=1603053598159 
> (127.0.0.1): No such file or directory: sample.ipynb
> [W 15:48:52.364 NotebookApp] No such file or directory: sample.ipynb
> [W 15:48:52.364 NotebookApp] 404 GET 
> /api/contents/sample.ipynb?type=notebook&content=0&_=1603053598159 
> (127.0.0.1) 2.84ms 
> referer=http://localhost:8888/notebooks/Untitled4.ipynb?kernel_name=python3
> [I 15:48:52.401 NotebookApp] Uploading file to /sample.ipynb
> [I 15:50:41.579 NotebookApp] Saving file at /sample.ipynb
>
> ## Now I try to open a new Sagemath 9.0 notebook without success.
>
> [I 15:55:16.334 NotebookApp] Creating new notebook in
> [I 15:55:24.775 NotebookApp] Kernel started: 
> 05b0ee0a-8753-48f8-9651-bd69a60da129
> Traceback (most recent call last):
>   File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
>     return _run_code(code, main_globals, None,
>   File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
>     exec(code, run_globals)
>   File "/usr/lib/python3/dist-packages/sage/repl/ipython_kernel/__main__.py", 
> line 3, in <module>
>     IPKernelApp.launch_instance(kernel_class=SageKernel)
>   File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 
> 663, in launch_instance
>     app.initialize(argv)
>   File "<decorator-gen-124>", line 2, in initialize
>   File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 
> 87, in catch_config_error
>     return method(app, *args, **kwargs)
>   File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 562, in 
> initialize
>     self.init_kernel()
>   File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 439, in 
> init_kernel
>     kernel = kernel_factory(parent=self, session=self.session,
>   File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", 
> line 412, in instance
>     inst = cls(*args, **kwargs)
>   File "/usr/lib/python3/dist-packages/sage/repl/ipython_kernel/kernel.py", 
> line 52, in __init__
>     SageJupyterCustomizations(self.shell)
>   File "/usr/lib/python3/dist-packages/sage/repl/ipython_extension.py", line 
> 435, in __init__
>     import sage.all # until sage's import hell is fixed
>   File "/usr/lib/python3/dist-packages/sage/all.py", line 106, in <module>
>     from sage.matrix.all     import *
>   File "/usr/lib/python3/dist-packages/sage/matrix/__init__.py", line 2, in 
> <module>
>     import sage.matrix.args
>   File "sage/matrix/args.pyx", line 23, in init sage.matrix.args 
> (build/cythonized/sage/matrix/args.c:21273)
>     from .matrix_space import MatrixSpace
>   File "/usr/lib/python3/dist-packages/sage/matrix/matrix_space.py", line 46, 
> in <module>
>     from . import matrix_modn_sparse
> ImportError: /lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in 
> static TLS block
> [I 15:55:30.768 NotebookApp] KernelRestarter: restarting kernel (1/5), keep 
> random ports
> Traceback (most recent call last):
>   File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
>     return _run_code(code, main_globals, None,
>   File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
>     exec(code, run_globals)
>   File "/usr/lib/python3/dist-packages/sage/repl/ipython_kernel/__main__.py", 
> line 3, in <module>
>     IPKernelApp.launch_instance(kernel_class=SageKernel)
>   File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 
> 663, in launch_instance
>     app.initialize(argv)
>   File "<decorator-gen-124>", line 2, in initialize
>   File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 
> 87, in catch_config_error
>     return method(app, *args, **kwargs)
>   File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 562, in 
> initialize
>     self.init_kernel()
>   File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 439, in 
> init_kernel
>     kernel = kernel_factory(parent=self, session=self.session,
>   File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", 
> line 412, in instance
>     inst = cls(*args, **kwargs)
>   File "/usr/lib/python3/dist-packages/sage/repl/ipython_kernel/kernel.py", 
> line 52, in __init__
>     SageJupyterCustomizations(self.shell)
>   File "/usr/lib/python3/dist-packages/sage/repl/ipython_extension.py", line 
> 435, in __init__
>     import sage.all # until sage's import hell is fixed
>   File "/usr/lib/python3/dist-packages/sage/all.py", line 106, in <module>
>     from sage.matrix.all     import *
>   File "/usr/lib/python3/dist-packages/sage/matrix/__init__.py", line 2, in 
> <module>
>     import sage.matrix.args
>   File "sage/matrix/args.pyx", line 23, in init sage.matrix.args 
> (build/cythonized/sage/matrix/args.c:21273)
>     from .matrix_space import MatrixSpace
>   File "/usr/lib/python3/dist-packages/sage/matrix/matrix_space.py", line 46, 
> in <module>
>     from . import matrix_modn_sparse
> ImportError: /lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in 
> static TLS block
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/f00504f4-1b45-410c-ae63-fb83f8a756edn%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq0SZ8KoYRmPz9PXaFmrvFR6cRsX00dOP4bsa7nqPGHrZw%40mail.gmail.com.

Reply via email to