Thanks again for the help! It is really appreciated! Unfortunately, it did not work:
[I 2023-05-31 20:01:40.186 ServerApp] Kernel started: b7d122c3-383b-463b-b196-193ba26373aa \0.00s - Debugger warning: It seems that frozen modules are being used, which may 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off 0.00s - to python to disable frozen modules. 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. -[I 2023-05-31 20:01:41.577 ServerApp] Connecting to kernel b7d122c3-383b-463b-b196-193ba26 373aa. [I 2023-05-31 20:01:41.580 ServerApp] Connecting to kernel b7d122c3-383b-463b-b196-193ba263 73aa. [I 2023-05-31 20:01:41.595 ServerApp] Connecting to kernel b7d122c3-383b-463b-b196-193ba263 73aa. \[IPKernelApp] WARNING | Unknown message type: 'comm_open' [IPKernelApp] WARNING | Unknown message type: 'comm_msg' [W 2023-05-31 20:01:41.657 ServerApp] Got events for closed stream <zmq.eventloop.zmqstream .ZMQStream object at 0x7f8f0c2cf990> [I 2023-05-31 20:01:50.449 ServerApp] Creating new notebook in [I 2023-05-31 20:01:50.844 ServerApp] Kernel started: 2d1683ba-e9f5-4158-b989-8ff8bfbc8f51 Traceback (most recent call last): File "<frozen runpy>", line 189, in _run_module_as_main File "<frozen runpy>", line 148, in _get_module_details File "<frozen runpy>", line 159, in _get_module_details File "<frozen importlib._bootstrap_external>", line 1074, in get_code File "<frozen importlib._bootstrap_external>", line 1004, in source_to_code File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/home/finotti/src/sage-10.0/src/sage/repl/ipython_kernel/__main__.py", line 1 import sage.all IndentationError: unexpected indent [I 2023-05-31 20:01:53.834 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), new random ports Traceback (most recent call last): File "<frozen runpy>", line 189, in _run_module_as_main File "<frozen runpy>", line 148, in _get_module_details File "<frozen runpy>", line 159, in _get_module_details File "<frozen importlib._bootstrap_external>", line 1074, in get_code File "<frozen importlib._bootstrap_external>", line 1004, in source_to_code File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/home/finotti/src/sage-10.0/src/sage/repl/ipython_kernel/__main__.py", line 1 import sage.all IndentationError: unexpected indent [I 2023-05-31 20:01:56.846 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (2/5), new random ports Traceback (most recent call last): File "<frozen runpy>", line 189, in _run_module_as_main File "<frozen runpy>", line 148, in _get_module_details File "<frozen runpy>", line 159, in _get_module_details File "<frozen importlib._bootstrap_external>", line 1074, in get_code File "<frozen importlib._bootstrap_external>", line 1004, in source_to_code File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/home/finotti/src/sage-10.0/src/sage/repl/ipython_kernel/__main__.py", line 1 import sage.all IndentationError: unexpected indent [I 2023-05-31 20:01:59.861 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (3/5), new random ports Traceback (most recent call last): File "<frozen runpy>", line 189, in _run_module_as_main File "<frozen runpy>", line 148, in _get_module_details File "<frozen runpy>", line 159, in _get_module_details File "<frozen importlib._bootstrap_external>", line 1074, in get_code File "<frozen importlib._bootstrap_external>", line 1004, in source_to_code File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/home/finotti/src/sage-10.0/src/sage/repl/ipython_kernel/__main__.py", line 1 import sage.all IndentationError: unexpected indent [I 2023-05-31 20:02:02.875 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (4/5), new random ports Traceback (most recent call last): File "<frozen runpy>", line 189, in _run_module_as_main File "<frozen runpy>", line 148, in _get_module_details File "<frozen runpy>", line 159, in _get_module_details File "<frozen importlib._bootstrap_external>", line 1074, in get_code File "<frozen importlib._bootstrap_external>", line 1004, in source_to_code File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/home/finotti/src/sage-10.0/src/sage/repl/ipython_kernel/__main__.py", line 1 import sage.all IndentationError: unexpected indent [I 2023-05-31 20:02:05.888 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (5/5), new random ports Traceback (most recent call last): File "<frozen runpy>", line 189, in _run_module_as_main File "<frozen runpy>", line 148, in _get_module_details File "<frozen runpy>", line 159, in _get_module_details File "<frozen importlib._bootstrap_external>", line 1074, in get_code File "<frozen importlib._bootstrap_external>", line 1004, in source_to_code File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/home/finotti/src/sage-10.0/src/sage/repl/ipython_kernel/__main__.py", line 1 import sage.all IndentationError: unexpected indent [W 2023-05-31 20:02:08.901 ServerApp] AsyncIOLoopKernelRestarter: restart failed [W 2023-05-31 20:02:08.901 ServerApp] Kernel 2d1683ba-e9f5-4158-b989-8ff8bfbc8f51 died, rem oving from map. [W 2023-05-31 20:02:50.881 ServerApp] Timeout waiting for kernel_info reply from 2d1683ba-e 9f5-4158-b989-8ff8bfbc8f51 [E 2023-05-31 20:02:50.881 ServerApp] Uncaught exception GET /api/kernels/2d1683ba-e9f5-415 8-b989-8ff8bfbc8f51/channels?session_id=e7e7ebeb-a613-4c4c-9e1a-eb0e366db3d4 (::1) HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/api/kerne ls/2d1683ba-e9f5-4158-b989-8ff8bfbc8f51/channels?session_id=e7e7ebeb-a613-4c4c-9e1a-eb0e366 db3d4', version='HTTP/1.1', remote_ip='::1') Traceback (most recent call last): File "/usr/lib/python3/dist-packages/tornado/web.py", line 1713, in _execute result = await result ^^^^^^^^^^^^ File "/home/finotti/.local/lib/python3.11/site-packages/jupyter_server/services/kerne ls/websocket.py", line 67, in get await super().get(kernel_id=kernel_id) File "/usr/lib/python3/dist-packages/tornado/websocket.py", line 277, in get await self.ws_connection.accept_connection(self) File "/usr/lib/python3/dist-packages/tornado/websocket.py", line 867, in accept_conne ction await self._accept_connection(handler) File "/usr/lib/python3/dist-packages/tornado/websocket.py", line 907, in _accept_conn ection self.selected_subprotocol = handler.select_subprotocol(subprotocols) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/finotti/.local/lib/python3.11/site-packages/jupyter_server/services/kerne ls/websocket.py", line 86, in select_subprotocol preferred_protocol = self.connection.kernel_ws_protocol ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'kernel_ws_protocol' [E 2023-05-31 20:02:50.889 ServerApp] { "Host": "localhost:8888", "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36" } [E 2023-05-31 20:02:50.890 ServerApp] 500 GET /api/kernels/2d1683ba-e9f5-4158-b989-8ff8bfbc 8f51/channels?session_id=e7e7ebeb-a613-4c4c-9e1a-eb0e366db3d4 (1d8eff8bf21445009a41400a789f dd1f@::1) 60013.83ms referer=None [W 2023-05-31 20:02:51.190 ServerApp] Timeout waiting for kernel_info reply from 2d1683ba-e 9f5-4158-b989-8ff8bfbc8f51 [E 2023-05-31 20:02:51.190 ServerApp] Uncaught exception GET /api/kernels/2d1683ba-e9f5-415 8-b989-8ff8bfbc8f51/channels?session_id=ef28bbb4-915d-49a2-9007-f81e28396ccb (127.0.0.1) HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/api/kerne ls/2d1683ba-e9f5-4158-b989-8ff8bfbc8f51/channels?session_id=ef28bbb4-915d-49a2-9007-f81e283 96ccb', 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 1713, in _execute result = await result ^^^^^^^^^^^^ File "/home/finotti/.local/lib/python3.11/site-packages/jupyter_server/services/kerne ls/websocket.py", line 67, in get await super().get(kernel_id=kernel_id) File "/usr/lib/python3/dist-packages/tornado/websocket.py", line 277, in get await self.ws_connection.accept_connection(self) File "/usr/lib/python3/dist-packages/tornado/websocket.py", line 867, in accept_conne ction await self._accept_connection(handler) File "/usr/lib/python3/dist-packages/tornado/websocket.py", line 907, in _accept_conn ection self.selected_subprotocol = handler.select_subprotocol(subprotocols) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/finotti/.local/lib/python3.11/site-packages/jupyter_server/services/kerne ls/websocket.py", line 86, in select_subprotocol preferred_protocol = self.connection.kernel_ws_protocol ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'kernel_ws_protocol' [E 2023-05-31 20:02:51.191 ServerApp] { "Host": "localhost:8888", "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36" } [E 2023-05-31 20:02:51.191 ServerApp] 500 GET /api/kernels/2d1683ba-e9f5-4158-b989-8ff8bfbc 8f51/channels?session_id=ef28bbb4-915d-49a2-9007-f81e28396ccb (1d8eff8bf21445009a41400a789f dd1f@127.0.0.1) 60004.10ms referer=None On Wednesday, May 31, 2023 at 6:29:49 PM UTC-4 Isuru Fernando wrote: > Try adding > > import sage.all > > to the top of > /home/finotti/src/sage-10.0/src/sage/repl/ipython_kernel/__main__.py > > Isuru > > On Wed, May 31, 2023 at 5:23 PM Luis Finotti <luis.f...@gmail.com> wrote: > >> >> On Wednesday, May 31, 2023 at 6:10:42 PM UTC-4 Isuru Fernando wrote: >> >> Which givaro library is loaded when you do `export LD_DEBUG=libs` and run >> sage from the command line? >> >> >> I get: >> >> 1028008: find library=libgivaro.so.9 [0]; searching >> 1028008: search path=/home/finotti/src/sage-10.0/local/lib >> (RUNPATH from file >> /home/finotti/src/sage-10.0/local/var/lib/sage/venv-python3.11/lib/python3.11/site-packages/cysignals/ >> signals.cpython-311-x86_64-linux-gnu.so) >> 1028008: trying >> file=/home/finotti/src/sage-10.0/local/lib/libgivaro.so.9 >> 1028008: >> 1028008: find library=libgmpxx.so.4 [0]; searching >> 1028008: search path=/home/finotti/src/sage-10.0/local/lib >> (RUNPATH from file >> /home/finotti/src/sage-10.0/local/var/lib/sage/venv-python3.11/lib/python3.11/site-packages/cysignals/ >> signals.cpython-311-x86_64-linux-gnu.so) >> 1028008: trying >> file=/home/finotti/src/sage-10.0/local/lib/libgmpxx.so.4 >> 1028008: search cache=/etc/ld.so.cache >> 1028008: trying file=/lib/x86_64-linux-gnu/libgmpxx.so.4 >> 1028008: >> 1028008: >> 1028008: calling init: /lib/x86_64-linux-gnu/libgmpxx.so.4 >> 1028008: >> 1028008: >> 1028008: calling init: >> /home/finotti/src/sage-10.0/local/lib/libgivaro.so.9 >> 1028008: >> 1028008: >> 1028008: calling init: >> /home/finotti/src/sage-10.0/src/sage/rings/finite_rings/ >> element_givaro.cpython-311-x86_64-linux-gnu.so >> [snip] >> 1028008: calling fini: >> /home/finotti/src/sage-10.0/src/sage/rings/finite_rings/ >> element_givaro.cpython-311-x86_64-linux-gnu.so [0 >> 1028008: >> 1028008: >> 1028008: calling fini: >> /home/finotti/src/sage-10.0/local/lib/libgivaro.so.9 [0] >> >> -- >> 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 on the web visit >> https://groups.google.com/d/msgid/sage-support/fced99e3-52f7-43c4-b0c6-1c45f72a01ebn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/sage-support/fced99e3-52f7-43c4-b0c6-1c45f72a01ebn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/f183a889-261e-47d9-9492-0638f92975abn%40googlegroups.com.