Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-06-01 Thread Luis Finotti
On Thursday, June 1, 2023 at 3:13:18 PM UTC-4 Jan Groenewald wrote: On Thu, 1 Jun 2023 at 21:05, Luis Finotti wrote: Interestingly enough, I have another computer, also running Debian Sid, but a much older installation, in which Sage-10.0 *does* work in Jupyter lab. In this one, when I

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-06-01 Thread Jan Groenewald
On Thu, 1 Jun 2023 at 21:05, Luis Finotti wrote: > Interestingly enough, I have another computer, also running Debian Sid, > but a much older installation, in which Sage-10.0 *does* work in Jupyter > lab. In this one, when I look at os.eviron, I also do not have > LD_LIRBRARY_PATH... > And

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-06-01 Thread Luis Finotti
Interestingly enough, I have another computer, also running Debian Sid, but a much older installation, in which Sage-10.0 *does* work in Jupyter lab. In this one, when I look at os.eviron, I also do not have LD_LIRBRARY_PATH... On Thursday, June 1, 2023 at 1:54:06 PM UTC-4 Luis Finotti wrote:

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-06-01 Thread Luis Finotti
On Thursday, June 1, 2023 at 12:46:33 PM UTC-4 Nils Bruin wrote: I don't think jupyter cares about givaro. However, it sounds like your jupyter sets up some things about the library search path (perhaps an LD_LIBRARY_PATH)? that gets inherited by the sage process that gets subsequently run

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-06-01 Thread Dima Pasechnik
Sounds like RPATH has to used somewhere to make sure the correct dynamic library is used. On Thu, 1 Jun 2023, 17:46 Nils Bruin, wrote: > On Thursday, 1 June 2023 at 07:29:27 UTC-7 Luis Finotti wrote: > > > I am not sure I will miss them (and other packages that depended on it -- >

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-06-01 Thread Nils Bruin
On Thursday, 1 June 2023 at 07:29:27 UTC-7 Luis Finotti wrote: I am not sure I will miss them (and other packages that depended on it -- fflas-ffpack libgivaro-dev libgivaro9 liblinbox-dev python3-brial python3-sage), but isn't there a way to force Jupyter to use Sage's one? I don't think

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-06-01 Thread Luis Finotti
On Thursday, June 1, 2023 at 4:55:57 AM UTC-4 Nils Bruin wrote: the line: calling init: /usr/lib/x86_64-linux-gnu/libgivaro.so.9 is definitely indicating that you are picking up a system libgivaro. Perhaps you can check in the same way which libgivaro gets linked when you run sage in a way

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-06-01 Thread Nils Bruin
On Wednesday, 31 May 2023 at 18:14:59 UTC-7 Luis Finotti wrote: Here is one with your suggested change: https://web.math.utk.edu/~finotti/misc/jl1.out Here is one with the original version: https://web.math.utk.edu/~finotti/misc/jl2.out the line: calling init:

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Jan Groenewald
Check this: File "/home/finotti/src/sage-10.0/src/sage/repl/ipython_kernel/__main__.py", line 1 import sage.all IndentationError: unexpected indent On Thu, 1 Jun 2023 at 03:15, Luis Finotti wrote: > Here is one with your suggested change: > https://web.math.utk.edu/~finotti/misc/jl1.out > >

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Luis Finotti
Here is one with your suggested change: https://web.math.utk.edu/~finotti/misc/jl1.out Here is one with the original version: https://web.math.utk.edu/~finotti/misc/jl2.out Again, thanks for your help! On Wednesday, May 31, 2023 at 9:03:15 PM UTC-4 Isuru Fernando wrote: > Can you upload the

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
Can you upload the full log with `LD_DEBUG=libs` and jupyterlab somewhere and post a link? Isuru On Wed, May 31, 2023 at 3:46 PM Luis Finotti wrote: > Hello, > > Thanks for the help! > > On Wednesday, May 31, 2023 at 4:24:11 PM UTC-4 Isuru Fernando wrote: > > Try running JupyterLab in a shell

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Luis Finotti
Ah, sorry! I've fixed, but it is still not working: [I 2023-05-31 20:13:22.480 ServerApp] Connecting to kernel 28308c3f-6fa3-4b63-91b6-cc5e1278 2d4d. [I 2023-05-31 20:13:22.500 ServerApp] Connecting to kernel 28308c3f-6fa3-4b63-91b6-cc5e1278 2d4d. [IPKernelApp] WARNING | Unknown message

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
Following seems to indicate that there were some space before `import sage.all` Isuru File "/home/finotti/src/sage-10.0/src/sage/repl/ipython_kernel/__main__.py", line 1 import sage.all IndentationError: unexpected indent On Wed, May 31, 2023 at 7:05 PM Luis Finotti wrote: > Thanks again

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Luis Finotti
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

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
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 wrote: > > On Wednesday, May 31, 2023 at 6:10:42 PM UTC-4 Isuru Fernando wrote: > > Which givaro library is loaded when you do

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Luis Finotti
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

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
Which givaro library is loaded when you do `export LD_DEBUG=libs` and run sage from the command line? Isuru On Wed, May 31, 2023 at 5:02 PM Luis Finotti wrote: > > > On Wednesday, May 31, 2023 at 5:29:25 PM UTC-4 Isuru Fernando wrote: > > Does `import sage.all` in a sage shell work? > > > In a

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Luis Finotti
On Wednesday, May 31, 2023 at 5:29:25 PM UTC-4 Isuru Fernando wrote: Does `import sage.all` in a sage shell work? In a regular sage shell (from the command line, not in Jupyter Lab)? Yes, no errors (or output). -- You received this message because you are subscribed to the Google Groups

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
Does `import sage.all` in a sage shell work? Isuru On Wed, May 31, 2023 at 3:46 PM Luis Finotti wrote: > Hello, > > Thanks for the help! > > On Wednesday, May 31, 2023 at 4:24:11 PM UTC-4 Isuru Fernando wrote: > > Try running JupyterLab in a shell with `export LD_DEBUG=libs` and import > sage

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Luis Finotti
Hello, Thanks for the help! On Wednesday, May 31, 2023 at 4:24:11 PM UTC-4 Isuru Fernando wrote: Try running JupyterLab in a shell with `export LD_DEBUG=libs` and import sage with that jupyterlab instance. That should tell you where givaro is loaded from. Isuru The output is very long, but

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
Try running JupyterLab in a shell with `export LD_DEBUG=libs` and import sage with that jupyterlab instance. That should tell you where givaro is loaded from. Isuru On Wednesday, May 31, 2023 at 2:46:14 PM UTC-5 Isuru Fernando wrote: > That's a different issue than this. > > Isuru > > On Wed,

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
That's a different issue than this. Isuru On Wed, May 31, 2023 at 2:37 PM Jan Groenewald wrote: > Hi > > This https://groups.google.com/g/sage-support/c/egP7I9eGLuI/m/MsUUNLEUAQAJ > suggests trying clang 14 for compiling sage or waiting for givaro compiled > with clang 15. > > (or just try

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Jan Groenewald
Hi This https://groups.google.com/g/sage-support/c/egP7I9eGLuI/m/MsUUNLEUAQAJ suggests trying clang 14 for compiling sage or waiting for givaro compiled with clang 15. (or just try rebuild the deb for givaro with clang15 https://raphaelhertzog.com/2010/12/15/howto-to-rebuild-debian-packages/)

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-30 Thread Nils Bruin
On Tuesday, 30 May 2023 at 06:09:23 UTC-7 Luis Finotti wrote: I looked at it, but I cannot tell if it is really the same issue, or how I could check. well ... it looks like the symbol that is found undefined is indeed of the type mentioned there. So that would suggest that indeed a system

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-30 Thread Luis Finotti
Thanks for the reply! On Tuesday, May 30, 2023 at 2:21:22 AM UTC-4 Jan Groenewald wrote: Also see https://groups.google.com/g/sage-devel/c/xd64DrNzveM/m/EeWc6HuRAwAJ ... in case it is related. I looked at it, but I cannot tell if it is really the same issue, or how I could check. I've seen

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-30 Thread Jan Groenewald
Hi Also see https://groups.google.com/g/sage-devel/c/xd64DrNzveM/m/EeWc6HuRAwAJ ... in case it is related. Regards, Jan On Tue, 30 May 2023 at 04:14, Luis Finotti wrote: > Firstly, thank you very much for your help, Nils! I greatly appreciate it! > > On Monday, May 29, 2023 at 8:06:46 PM

[sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-29 Thread Luis Finotti
Firstly, thank you very much for your help, Nils! I greatly appreciate it! On Monday, May 29, 2023 at 8:06:46 PM UTC-4 Nils Bruin wrote: On Monday, 29 May 2023 at 10:51:27 UTC-7 Luis Finotti wrote: Any ideas on how to fix it? Is it just me, or a bug with version 10.0? I followed the same

[sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-29 Thread Nils Bruin
On Monday, 29 May 2023 at 10:51:27 UTC-7 Luis Finotti wrote: Any ideas on how to fix it? Is it just me, or a bug with version 10.0? I followed the same steps I've always followed:

[sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-29 Thread Luis Finotti
On Monday, May 29, 2023 at 1:11:03 PM UTC-4 Nils Bruin wrote: That looks like a linking error. Probably it's picking up a library from a different sage install. Did you check that sage-10.0 runs fine by itself? Did you check that sage-10.0 runs fine with its "own" notebook, using "sage

[sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-29 Thread Nils Bruin
On Monday, 29 May 2023 at 07:39:33 UTC-7 Luis Finotti wrote: ImportError: /home/finotti/src/sage-10.0/src/sage/matrix/ matrix_modn_dense_float.cpython-311-x86_64-linux-gnu.so: undefined symbol: _ZNK6Givaro7IntegercvNSt7__cxx1112basic_stringIcSt11char _traitsIcESaIcEEEB5cxx11Ev Any ideas on