>From the installation guide 
<https://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation>,
 
this note (typeset in small script) :

The kernel is not automatically available if you have installed SageMath in 
editable mode (pip install -e). In that case, it is recommended to 
reinstall SageMath in a non-editable way.

Reconfiguring to get non-editable libraries and recompiling seems to have 
solved the problem. However, I wonder what are the consequences of having a 
non-editable system…

Is this a permanent limitation ?

HTH,
​
Le jeudi 23 janvier 2025 à 16:12:33 UTC+1, dim...@gmail.com a écrit :

> Have you updated your jupyter(lab) recently?
>
> nbclassic doesn't seem to be a module required by SageMath jupyter kernel.
> Can you install it into whatever Python environment your jupyter(lab)
> installation is using?
> (you may also try ./sage --pip install nbclassic)
>
> Best
> Dima
>
> On Thu, Jan 23, 2025 at 5:59 AM Emmanuel Charpentier
> <emanuel.c...@gmail.com> wrote:
> >
> > Dear list,
> >
> > using the Sagemath kernel in system’s Juyter recently stopped working. U 
> used to symlink it in the relevant place of my system’s Jupyter 
> installation (FWIW, /usr/local/share/jupyter/kernels/). This stopped 
> working.
> >
> > I tried to follow the documentation, by installing a copy in my tree : 
> jupyter kernelspec install --user $(sage -sh -c 'ls -d 
> $SAGE_VENV/share/jupyter/kernels/sagemath') --name sagemath, giving :
> >
> > charpent@zen-book-flip:~$ jupyter kernelspec list | grep sagemath 
> sagemath /home/charpent/.local/share/jupyter/kernels/sagemath
> >
> > This also failed too, apparently the same way. FWIW, messages printed by 
> the jupyter lab instance started from a terminal :
> >
> > charpent@zen-book-flip:~$ jupyter lab [W 2025-01-23 12:41:17.572 
> ServerApp] nbclassic | error adding extension (enabled: True): The module 
> 'nbclassic' could not be found (No module named 'nbclassic'). Are you sure 
> the extension is installed? Traceback (most recent call last): File 
> "/usr/lib/python3/dist-packages/jupyter_server/extension/manager.py", line 
> 323, in add_extension extpkg = ExtensionPackage(name=extension_name, 
> enabled=enabled) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
> File "/usr/lib/python3/dist-packages/jupyter_server/extension/manager.py", 
> line 187, in __init__ self._load_metadata() File 
> "/usr/lib/python3/dist-packages/jupyter_server/extension/manager.py", line 
> 202, in _load_metadata raise ExtensionModuleNotFound(msg) from None 
> jupyter_server.extension.utils.ExtensionModuleNotFound: The module 
> 'nbclassic' could not be found (No module named 'nbclassic'). Are you sure 
> the extension is installed? [W 2025-01-23 12:41:17.572 ServerApp] A 
> `_jupyter_server_extension_points` function was not found in notebook_shim. 
> Instead, a `_jupyter_server_extension_paths` function was found and will be 
> used for now. This function name will be deprecated in future releases of 
> Jupyter Server. [I 2025-01-23 12:41:17.575 ServerApp] 
> jupyter_server_mathjax | extension was successfully linked. [I 2025-01-23 
> 12:41:17.579 ServerApp] jupyter_server_terminals | extension was 
> successfully linked. [I 2025-01-23 12:41:17.583 ServerApp] jupyterlab | 
> extension was successfully linked. [W 2025-01-23 12:41:17.747 ServerApp] 
> jupyter_nbextensions_configurator | error adding extension (enabled: True): 
> The module 'jupyter_nbextensions_configurator' could not be found (No 
> module named 'jupyter_nbextensions_configurator'). Are you sure the 
> extension is installed? Traceback (most recent call last): File 
> "/usr/lib/python3/dist-packages/jupyter_server/extension/manager.py", line 
> 323, in add_extension extpkg = ExtensionPackage(name=extension_name, 
> enabled=enabled) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
> File "/usr/lib/python3/dist-packages/jupyter_server/extension/manager.py", 
> line 187, in __init__ self._load_metadata() File 
> "/usr/lib/python3/dist-packages/jupyter_server/extension/manager.py", line 
> 202, in _load_metadata raise ExtensionModuleNotFound(msg) from None 
> jupyter_server.extension.utils.ExtensionModuleNotFound: The module 
> 'jupyter_nbextensions_configurator' could not be found (No module named 
> 'jupyter_nbextensions_configurator'). Are you sure the extension is 
> installed? [I 2025-01-23 12:41:17.747 ServerApp] notebook_shim | extension 
> was successfully linked. [I 2025-01-23 12:41:17.846 ServerApp] 
> notebook_shim | extension was successfully loaded. [I 2025-01-23 
> 12:41:17.846 ServerApp] jupyter_server_mathjax | extension was successfully 
> loaded. [I 2025-01-23 12:41:17.847 ServerApp] jupyter_server_terminals | 
> extension was successfully loaded. [I 2025-01-23 12:41:17.849 LabApp] 
> JupyterLab extension loaded from /usr/lib/python3/dist-packages/jupyterlab 
> [I 2025-01-23 12:41:17.849 LabApp] JupyterLab application directory is 
> /usr/share/jupyter/lab [I 2025-01-23 12:41:17.849 LabApp] Extension Manager 
> is 'pypi'. [I 2025-01-23 12:41:17.852 ServerApp] jupyterlab | extension was 
> successfully loaded. [I 2025-01-23 12:41:17.853 ServerApp] Serving 
> notebooks from local directory: /home/charpent [I 2025-01-23 12:41:17.853 
> ServerApp] Jupyter Server 2.14.2 is running at: [I 2025-01-23 12:41:17.853 
> ServerApp] 
> http://localhost:8888/lab?token=28698726cb88b90e655576f977e07364d8b2ac2821243c84
>  
> [I 2025-01-23 12:41:17.853 ServerApp] 
> http://127.0.0.1:8888/lab?token=28698726cb88b90e655576f977e07364d8b2ac2821243c84
>  
> [I 2025-01-23 12:41:17.853 ServerApp] Use Control-C to stop this server and 
> shut down all kernels (twice to skip confirmation). [C 2025-01-23 
> 12:41:17.872 ServerApp] To access the server, open this file in a browser: 
> file:///home/charpent/.local/share/jupyter/runtime/jpserver-18353-open.html 
> Or copy and paste one of these URLs: 
> http://localhost:8888/lab?token=28698726cb88b90e655576f977e07364d8b2ac2821243c84
>  
> http://127.0.0.1:8888/lab?token=28698726cb88b90e655576f977e07364d8b2ac2821243c84
>  
> [W 2025-01-23 12:41:21.111 ServerApp] 404 GET /lsp/status?1737632481094 
> (da6c0f26773b491d9eedd2ccb0e6f6fc@::1) 15.18ms referer=
> http://localhost:8888/lab [I 2025-01-23 12:41:21.757 LabApp] Build is up 
> to date [I 2025-01-23 12:41:29.668 ServerApp] Creating new notebook in [I 
> 2025-01-23 12:41:30.136 ServerApp] Kernel started: 
> e8a20d8a-3f29-42cd-8953-7b5ba6e01a1a 
> /usr/local/sage-10/local/var/lib/sage/venv-python3.12/bin/sage-venv-config:4: 
> DeprecationWarning: pkg_resources is deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html 
> __import__('pkg_resources').require('sagemath-standard==10.6b3') Traceback 
> (most recent call last): File "<frozen runpy>", line 198, in 
> _run_module_as_main File "<frozen runpy>", line 88, in _run_code File 
> "/usr/local/sage-10/src/sage/repl/ipython_kernel/__main__.py", line 4, in 
> <module> IPKernelApp.launch_instance(kernel_class=SageKernel) File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/application.py",
>  
> line 1074, in launch_instance app.initialize(argv) File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/application.py",
>  
> line 118, in inner return method(app, *args, **kwargs) 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/ipykernel/kernelapp.py",
>  
> line 707, in initialize self.init_kernel() File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/ipykernel/kernelapp.py",
>  
> line 555, in init_kernel kernel = kernel_factory( ^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/configurable.py",
>  
> line 583, in instance inst = cls(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/src/sage/repl/ipython_kernel/kernel.py", line 64, in 
> __init__ SageJupyterCustomizations(self.shell) File 
> "/usr/local/sage-10/src/sage/repl/ipython_extension.py", line 591, in 
> __init__ import sage.all # noqa: F401 ^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/src/sage/all.py", line 93, in <module> from 
> sage.algebras.all import * File 
> "/usr/local/sage-10/src/sage/algebras/all.py", line 25, in <module> from 
> sage.algebras.quatalg.all import * File 
> "/usr/local/sage-10/src/sage/algebras/quatalg/all.py", line 1, in <module> 
> from sage.algebras.quatalg.quaternion_algebra import QuaternionAlgebra File 
> "/usr/local/sage-10/src/sage/algebras/quatalg/quaternion_algebra.py", line 
> 76, in <module> from . import quaternion_algebra_cython File 
> "sage/algebras/quatalg/quaternion_algebra_cython.pyx", line 1, in init 
> sage.algebras.quatalg.quaternion_algebra_cython # distutils: language = c++ 
> File "sage/matrix/matrix_integer_dense.pyx", line 1, in init 
> sage.matrix.matrix_integer_dense # distutils: extra_compile_args = 
> NTL_CFLAGS M4RI_CFLAGS ImportError: libm4ri-0.0.20200125.so: cannot open 
> shared object file: No such file or directory [I 2025-01-23 12:41:33.123 
> ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), new random 
> ports 
> /usr/local/sage-10/local/var/lib/sage/venv-python3.12/bin/sage-venv-config:4: 
> DeprecationWarning: pkg_resources is deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html 
> __import__('pkg_resources').require('sagemath-standard==10.6b3') Traceback 
> (most recent call last): File "<frozen runpy>", line 198, in 
> _run_module_as_main File "<frozen runpy>", line 88, in _run_code File 
> "/usr/local/sage-10/src/sage/repl/ipython_kernel/__main__.py", line 4, in 
> <module> IPKernelApp.launch_instance(kernel_class=SageKernel) File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/application.py",
>  
> line 1074, in launch_instance app.initialize(argv) File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/application.py",
>  
> line 118, in inner return method(app, *args, **kwargs) 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/ipykernel/kernelapp.py",
>  
> line 707, in initialize self.init_kernel() File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/ipykernel/kernelapp.py",
>  
> line 555, in init_kernel kernel = kernel_factory( ^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/configurable.py",
>  
> line 583, in instance inst = cls(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/src/sage/repl/ipython_kernel/kernel.py", line 64, in 
> __init__ SageJupyterCustomizations(self.shell) File 
> "/usr/local/sage-10/src/sage/repl/ipython_extension.py", line 591, in 
> __init__ import sage.all # noqa: F401 ^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/src/sage/all.py", line 93, in <module> from 
> sage.algebras.all import * File 
> "/usr/local/sage-10/src/sage/algebras/all.py", line 25, in <module> from 
> sage.algebras.quatalg.all import * File 
> "/usr/local/sage-10/src/sage/algebras/quatalg/all.py", line 1, in <module> 
> from sage.algebras.quatalg.quaternion_algebra import QuaternionAlgebra File 
> "/usr/local/sage-10/src/sage/algebras/quatalg/quaternion_algebra.py", line 
> 76, in <module> from . import quaternion_algebra_cython File 
> "sage/algebras/quatalg/quaternion_algebra_cython.pyx", line 1, in init 
> sage.algebras.quatalg.quaternion_algebra_cython # distutils: language = c++ 
> File "sage/matrix/matrix_integer_dense.pyx", line 1, in init 
> sage.matrix.matrix_integer_dense # distutils: extra_compile_args = 
> NTL_CFLAGS M4RI_CFLAGS ImportError: libm4ri-0.0.20200125.so: cannot open 
> shared object file: No such file or directory [I 2025-01-23 12:41:36.141 
> ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (2/5), new random 
> ports 
> /usr/local/sage-10/local/var/lib/sage/venv-python3.12/bin/sage-venv-config:4: 
> DeprecationWarning: pkg_resources is deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html 
> __import__('pkg_resources').require('sagemath-standard==10.6b3') Traceback 
> (most recent call last): File "<frozen runpy>", line 198, in 
> _run_module_as_main File "<frozen runpy>", line 88, in _run_code File 
> "/usr/local/sage-10/src/sage/repl/ipython_kernel/__main__.py", line 4, in 
> <module> IPKernelApp.launch_instance(kernel_class=SageKernel) File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/application.py",
>  
> line 1074, in launch_instance app.initialize(argv) File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/application.py",
>  
> line 118, in inner return method(app, *args, **kwargs) 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/ipykernel/kernelapp.py",
>  
> line 707, in initialize self.init_kernel() File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/ipykernel/kernelapp.py",
>  
> line 555, in init_kernel kernel = kernel_factory( ^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/configurable.py",
>  
> line 583, in instance inst = cls(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/src/sage/repl/ipython_kernel/kernel.py", line 64, in 
> __init__ SageJupyterCustomizations(self.shell) File 
> "/usr/local/sage-10/src/sage/repl/ipython_extension.py", line 591, in 
> __init__ import sage.all # noqa: F401 ^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/src/sage/all.py", line 93, in <module> from 
> sage.algebras.all import * File 
> "/usr/local/sage-10/src/sage/algebras/all.py", line 25, in <module> from 
> sage.algebras.quatalg.all import * File 
> "/usr/local/sage-10/src/sage/algebras/quatalg/all.py", line 1, in <module> 
> from sage.algebras.quatalg.quaternion_algebra import QuaternionAlgebra File 
> "/usr/local/sage-10/src/sage/algebras/quatalg/quaternion_algebra.py", line 
> 76, in <module> from . import quaternion_algebra_cython File 
> "sage/algebras/quatalg/quaternion_algebra_cython.pyx", line 1, in init 
> sage.algebras.quatalg.quaternion_algebra_cython # distutils: language = c++ 
> File "sage/matrix/matrix_integer_dense.pyx", line 1, in init 
> sage.matrix.matrix_integer_dense # distutils: extra_compile_args = 
> NTL_CFLAGS M4RI_CFLAGS ImportError: libm4ri-0.0.20200125.so: cannot open 
> shared object file: No such file or directory [I 2025-01-23 12:41:39.156 
> ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (3/5), new random 
> ports 
> /usr/local/sage-10/local/var/lib/sage/venv-python3.12/bin/sage-venv-config:4: 
> DeprecationWarning: pkg_resources is deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html 
> __import__('pkg_resources').require('sagemath-standard==10.6b3') Traceback 
> (most recent call last): File "<frozen runpy>", line 198, in 
> _run_module_as_main File "<frozen runpy>", line 88, in _run_code File 
> "/usr/local/sage-10/src/sage/repl/ipython_kernel/__main__.py", line 4, in 
> <module> IPKernelApp.launch_instance(kernel_class=SageKernel) File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/application.py",
>  
> line 1074, in launch_instance app.initialize(argv) File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/application.py",
>  
> line 118, in inner return method(app, *args, **kwargs) 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/ipykernel/kernelapp.py",
>  
> line 707, in initialize self.init_kernel() File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/ipykernel/kernelapp.py",
>  
> line 555, in init_kernel kernel = kernel_factory( ^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/configurable.py",
>  
> line 583, in instance inst = cls(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/src/sage/repl/ipython_kernel/kernel.py", line 64, in 
> __init__ SageJupyterCustomizations(self.shell) File 
> "/usr/local/sage-10/src/sage/repl/ipython_extension.py", line 591, in 
> __init__ import sage.all # noqa: F401 ^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/src/sage/all.py", line 93, in <module> from 
> sage.algebras.all import * File 
> "/usr/local/sage-10/src/sage/algebras/all.py", line 25, in <module> from 
> sage.algebras.quatalg.all import * File 
> "/usr/local/sage-10/src/sage/algebras/quatalg/all.py", line 1, in <module> 
> from sage.algebras.quatalg.quaternion_algebra import QuaternionAlgebra File 
> "/usr/local/sage-10/src/sage/algebras/quatalg/quaternion_algebra.py", line 
> 76, in <module> from . import quaternion_algebra_cython File 
> "sage/algebras/quatalg/quaternion_algebra_cython.pyx", line 1, in init 
> sage.algebras.quatalg.quaternion_algebra_cython # distutils: language = c++ 
> File "sage/matrix/matrix_integer_dense.pyx", line 1, in init 
> sage.matrix.matrix_integer_dense # distutils: extra_compile_args = 
> NTL_CFLAGS M4RI_CFLAGS ImportError: libm4ri-0.0.20200125.so: cannot open 
> shared object file: No such file or directory [I 2025-01-23 12:41:42.172 
> ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (4/5), new random 
> ports 
> /usr/local/sage-10/local/var/lib/sage/venv-python3.12/bin/sage-venv-config:4: 
> DeprecationWarning: pkg_resources is deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html 
> __import__('pkg_resources').require('sagemath-standard==10.6b3') Traceback 
> (most recent call last): File "<frozen runpy>", line 198, in 
> _run_module_as_main File "<frozen runpy>", line 88, in _run_code File 
> "/usr/local/sage-10/src/sage/repl/ipython_kernel/__main__.py", line 4, in 
> <module> IPKernelApp.launch_instance(kernel_class=SageKernel) File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/application.py",
>  
> line 1074, in launch_instance app.initialize(argv) File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/application.py",
>  
> line 118, in inner return method(app, *args, **kwargs) 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/ipykernel/kernelapp.py",
>  
> line 707, in initialize self.init_kernel() File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/ipykernel/kernelapp.py",
>  
> line 555, in init_kernel kernel = kernel_factory( ^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/configurable.py",
>  
> line 583, in instance inst = cls(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/src/sage/repl/ipython_kernel/kernel.py", line 64, in 
> __init__ SageJupyterCustomizations(self.shell) File 
> "/usr/local/sage-10/src/sage/repl/ipython_extension.py", line 591, in 
> __init__ import sage.all # noqa: F401 ^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/src/sage/all.py", line 93, in <module> from 
> sage.algebras.all import * File 
> "/usr/local/sage-10/src/sage/algebras/all.py", line 25, in <module> from 
> sage.algebras.quatalg.all import * File 
> "/usr/local/sage-10/src/sage/algebras/quatalg/all.py", line 1, in <module> 
> from sage.algebras.quatalg.quaternion_algebra import QuaternionAlgebra File 
> "/usr/local/sage-10/src/sage/algebras/quatalg/quaternion_algebra.py", line 
> 76, in <module> from . import quaternion_algebra_cython File 
> "sage/algebras/quatalg/quaternion_algebra_cython.pyx", line 1, in init 
> sage.algebras.quatalg.quaternion_algebra_cython # distutils: language = c++ 
> File "sage/matrix/matrix_integer_dense.pyx", line 1, in init 
> sage.matrix.matrix_integer_dense # distutils: extra_compile_args = 
> NTL_CFLAGS M4RI_CFLAGS ImportError: libm4ri-0.0.20200125.so: cannot open 
> shared object file: No such file or directory [I 2025-01-23 12:41:45.189 
> ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (5/5), new random 
> ports 
> /usr/local/sage-10/local/var/lib/sage/venv-python3.12/bin/sage-venv-config:4: 
> DeprecationWarning: pkg_resources is deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html 
> __import__('pkg_resources').require('sagemath-standard==10.6b3') Traceback 
> (most recent call last): File "<frozen runpy>", line 198, in 
> _run_module_as_main File "<frozen runpy>", line 88, in _run_code File 
> "/usr/local/sage-10/src/sage/repl/ipython_kernel/__main__.py", line 4, in 
> <module> IPKernelApp.launch_instance(kernel_class=SageKernel) File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/application.py",
>  
> line 1074, in launch_instance app.initialize(argv) File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/application.py",
>  
> line 118, in inner return method(app, *args, **kwargs) 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/ipykernel/kernelapp.py",
>  
> line 707, in initialize self.init_kernel() File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/ipykernel/kernelapp.py",
>  
> line 555, in init_kernel kernel = kernel_factory( ^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/traitlets/config/configurable.py",
>  
> line 583, in instance inst = cls(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/src/sage/repl/ipython_kernel/kernel.py", line 64, in 
> __init__ SageJupyterCustomizations(self.shell) File 
> "/usr/local/sage-10/src/sage/repl/ipython_extension.py", line 591, in 
> __init__ import sage.all # noqa: F401 ^^^^^^^^^^^^^^^ File 
> "/usr/local/sage-10/src/sage/all.py", line 93, in <module> from 
> sage.algebras.all import * File 
> "/usr/local/sage-10/src/sage/algebras/all.py", line 25, in <module> from 
> sage.algebras.quatalg.all import * File 
> "/usr/local/sage-10/src/sage/algebras/quatalg/all.py", line 1, in <module> 
> from sage.algebras.quatalg.quaternion_algebra import QuaternionAlgebra File 
> "/usr/local/sage-10/src/sage/algebras/quatalg/quaternion_algebra.py", line 
> 76, in <module> from . import quaternion_algebra_cython File 
> "sage/algebras/quatalg/quaternion_algebra_cython.pyx", line 1, in init 
> sage.algebras.quatalg.quaternion_algebra_cython # distutils: language = c++ 
> File "sage/matrix/matrix_integer_dense.pyx", line 1, in init 
> sage.matrix.matrix_integer_dense # distutils: extra_compile_args = 
> NTL_CFLAGS M4RI_CFLAGS ImportError: libm4ri-0.0.20200125.so: cannot open 
> shared object file: No such file or directory [W 2025-01-23 12:41:48.203 
> ServerApp] AsyncIOLoopKernelRestarter: restart failed [W 2025-01-23 
> 12:41:48.203 ServerApp] Kernel e8a20d8a-3f29-42cd-8953-7b5ba6e01a1a died, 
> removing from map. [W 2025-01-23 12:42:30.160 ServerApp] Timeout waiting 
> for kernel_info reply from e8a20d8a-3f29-42cd-8953-7b5ba6e01a1a [E 
> 2025-01-23 12:42:30.161 ServerApp] Uncaught exception GET 
> /api/kernels/e8a20d8a-3f29-42cd-8953-7b5ba6e01a1a/channels?session_id=5a47b060-f790-4739-8604-db37da07ab61
>  
> (::1) HTTPServerRequest(protocol='http', host='localhost:8888', 
> method='GET', 
> uri='/api/kernels/e8a20d8a-3f29-42cd-8953-7b5ba6e01a1a/channels?session_id=5a47b060-f790-4739-8604-db37da07ab61',
>  
> version='HTTP/1.1', remote_ip='::1') Traceback (most recent call last): 
> File "/usr/lib/python3/dist-packages/tornado/web.py", line 1790, in 
> _execute result = await result ^^^^^^^^^^^^ File 
> "/usr/lib/python3/dist-packages/jupyter_server/services/kernels/websocket.py",
>  
> line 66, in get await super().get(kernel_id=kernel_id) File 
> "/usr/lib/python3/dist-packages/tornado/websocket.py", line 273, in get 
> await self.ws_connection.accept_connection(self) File 
> "/usr/lib/python3/dist-packages/tornado/websocket.py", line 863, in 
> accept_connection await self._accept_connection(handler) File 
> "/usr/lib/python3/dist-packages/tornado/websocket.py", line 903, in 
> _accept_connection self.selected_subprotocol = 
> handler.select_subprotocol(subprotocols) 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/lib/python3/dist-packages/jupyter_server/services/kernels/websocket.py",
>  
> line 88, in select_subprotocol preferred_protocol = 
> self.connection.kernel_ws_protocol ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
> AttributeError: 'NoneType' object has no attribute 'kernel_ws_protocol' [E 
> 2025-01-23 12:42:30.174 ServerApp] { "Host": "localhost:8888", 
> "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, 
> like Gecko) Chrome/132.0.0.0 Safari/537.36" } [E 2025-01-23 12:42:30.174 
> ServerApp] 500 GET 
> /api/kernels/e8a20d8a-3f29-42cd-8953-7b5ba6e01a1a/channels?session_id=5a47b060-f790-4739-8604-db37da07ab61
>  
> (da6c0f26773b491d9eedd2ccb0e6f6fc@::1) 60020.64ms referer=None [W 
> 2025-01-23 12:42:30.542 ServerApp] Timeout waiting for kernel_info reply 
> from e8a20d8a-3f29-42cd-8953-7b5ba6e01a1a [E 2025-01-23 12:42:30.543 
> ServerApp] Uncaught exception GET 
> /api/kernels/e8a20d8a-3f29-42cd-8953-7b5ba6e01a1a/channels?session_id=bdc0b124-69fe-4ee7-a45e-2b9a6d646e51
>  
> (127.0.0.1) HTTPServerRequest(protocol='http', host='localhost:8888', 
> method='GET', 
> uri='/api/kernels/e8a20d8a-3f29-42cd-8953-7b5ba6e01a1a/channels?session_id=bdc0b124-69fe-4ee7-a45e-2b9a6d646e51',
>  
> version='HTTP/1.1', remote_ip='127.0.0.1') Traceback (most recent call 
> last): File "/usr/lib/python3/dist-packages/tornado/web.py", line 1790, in 
> _execute result = await result ^^^^^^^^^^^^ File 
> "/usr/lib/python3/dist-packages/jupyter_server/services/kernels/websocket.py",
>  
> line 66, in get await super().get(kernel_id=kernel_id) File 
> "/usr/lib/python3/dist-packages/tornado/websocket.py", line 273, in get 
> await self.ws_connection.accept_connection(self) File 
> "/usr/lib/python3/dist-packages/tornado/websocket.py", line 863, in 
> accept_connection await self._accept_connection(handler) File 
> "/usr/lib/python3/dist-packages/tornado/websocket.py", line 903, in 
> _accept_connection self.selected_subprotocol = 
> handler.select_subprotocol(subprotocols) 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File 
> "/usr/lib/python3/dist-packages/jupyter_server/services/kernels/websocket.py",
>  
> line 88, in select_subprotocol preferred_protocol = 
> self.connection.kernel_ws_protocol ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
> AttributeError: 'NoneType' object has no attribute 'kernel_ws_protocol' [E 
> 2025-01-23 12:42:30.552 ServerApp] { "Host": "localhost:8888", 
> "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, 
> like Gecko) Chrome/132.0.0.0 Safari/537.36" } [E 2025-01-23 12:42:30.552 
> ServerApp] 500 GET 
> /api/kernels/e8a20d8a-3f29-42cd-8953-7b5ba6e01a1a/channels?session_id=bdc0b124-69fe-4ee7-a45e-2b9a6d646e51
>  
> (da6c0f26773b491d...@127.0.0.1) 60013.01ms referer=None [W 2025-01-23 
> 12:42:41.739 ServerApp] delete /Untitled4.ipynb [I 2025-01-23 12:42:48.063 
> ServerApp] Shutting down on /api/shutdown request. [I 2025-01-23 
> 12:42:48.063 ServerApp] Shutting down 4 extensions
> >
> > Is this worth a new issue ? The current issues page for jupyter do not 
> show any recent issue relevant to this.
> >
> > --
> > 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...@googlegroups.com.
> > To view this discussion visit 
> https://groups.google.com/d/msgid/sage-support/facab13e-9959-4b91-8f30-db3af513b9fcn%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 visit 
https://groups.google.com/d/msgid/sage-support/b5825aa6-a18a-476a-a315-9f8fa4901ec6n%40googlegroups.com.

Reply via email to