Re: [sage-support] Freshly installed sage crashes

2023-08-15 Thread 'Michel VAN DEN BERGH' via sage-support


On Tuesday, August 15, 2023 at 12:42:04 PM UTC+2 Michel VAN DEN BERGH wrote:

On Tuesday, August 15, 2023 at 11:50:10 AM UTC+2 Jan Groenewald wrote:

Hi

A quick web search does not bring up results pointing at the sagemath 
package being broken on Ubuntu 22.04.
My guess is that it is something else on your system.

Regards,
Jan

On my laptop the sagemath package works.  However I have issues installing 
it on my desktop. An obvious guess is that the CPU is too old. It is an Intel 
Core 2 Duo E8400 (which was launched in January 2008).   One can imagine 
that the distro sage is compiled with certain optimizations which are not 
supported by my CPU.

Michel



I think I found a relevant report

https://groups.google.com/g/sage-devel/c/Lj-wx4xm0N4

The error reported there is similar to what I am seeing.

Michel

 


.

-- 
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/9b394fdc-4de8-4703-af88-c2c6b03e5bfcn%40googlegroups.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-15 Thread 'Michel VAN DEN BERGH' via sage-support


On Tuesday, August 15, 2023 at 11:50:10 AM UTC+2 Jan Groenewald wrote:

Hi

A quick web search does not bring up results pointing at the sagemath 
package being broken on Ubuntu 22.04.
My guess is that it is something else on your system.

Regards,
Jan

On my laptop the sagemath package works.  However I have issues installing 
it on my desktop. An obvious guess is that the CPU is too old. It is an Intel 
Core 2 Duo E8400 (which was launched in January 2008).   One can imagine 
that the distro sage is compiled with certain optimizations which are not 
supported by my CPU.

Michel



.

-- 
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/e500d3db-2bce-43c3-ac76-3c91db899b3cn%40googlegroups.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-15 Thread 'Michel VAN DEN BERGH' via sage-support


On Tuesday, August 15, 2023 at 8:11:35 AM UTC+2 Michel VAN DEN BERGH wrote:

On Monday, August 14, 2023 at 10:45:32 AM UTC+2 Henri Girard wrote:

Did you make a link to your compiled version ?

I compiled sage in sage (which us the base dir) after I sudo ln -s /sage 
/usr/bin/sage then you get sage wide


I don't use the sage executable, but I do "import sage" inside the python 
interpreter (I only run scripts). This used to work with the distro sage, 
but I have not found how to make that work with the compiled sage.  Do you 
know how to achieve this?

Michel


I did some investigating and it seems that the distro sage installs sage as 
an honest module (it is in the file system as 
/usr/lib/python3/dist-packages/sage/) whereas the python that comes with 
the compiled sage has sage as a built-in module (it seems to be not in the 
file system). So it is not accessible to the global python I think.

The following is for the sage python.

$ sage --python
>>> import sage
>>> import inspect
>>> inspect.getfile(sage)
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/home/sage_user/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/inspect.py",
 
line 901, in getfile
raise TypeError('{!r} is a built-in module'.format(object))
TypeError: )> is a built-in module
>>> 



 

-- 
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/cdf03f5c-2ad1-4d0a-a4c5-06a1b3fec632n%40googlegroups.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-15 Thread 'Michel VAN DEN BERGH' via sage-support


On Monday, August 14, 2023 at 10:45:32 AM UTC+2 Henri Girard wrote:

Did you make a link to your compiled version ?

I compiled sage in sage (which us the base dir) after I sudo ln -s /sage 
/usr/bin/sage then you get sage wide


I don't use the sage executable, but I do "import sage" inside the python 
interpreter (I only run scripts). This used to work with the distro sage, 
but I have not found how to make that work with the compiled sage.  Do you 
know how to achieve this?

Michel


 

I installed the ubuntu version which is working fine : sudo apt install 
sagemath* jupyter* to get all libs working 

hope that can help

best

Henri
-- 

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/8670c2f2-b506-473b-ae59-f6c1166e9829n%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/31670cfe-19d9-4963-9054-32a6783ad24fn%40googlegroups.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-14 Thread 'Michel VAN DEN BERGH' via sage-support


On Monday, August 14, 2023 at 1:41:51 PM UTC+2 Dima Pasechnik wrote:



On Mon, 14 Aug 2023, 09:32 'Michel VAN DEN BERGH' via sage-support, <
sage-s...@googlegroups.com> wrote:

I was unable to get the distro sage to work. I compiled sage from source 
and this solved the problem. Sad though since I would have preferred to use 
the distro version.


we are not involved in building distribution packages - this should be an 
Ubuntu bug report.


Fair enough. Next time I try and it still doesn't work I will file one! 

- 

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/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com
 
<https://groups.google.com/d/msgid/sage-support/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com?utm_medium=email_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...@googlegroups.com.

To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8670c2f2-b506-473b-ae59-f6c1166e9829n%40googlegroups.com
 
<https://groups.google.com/d/msgid/sage-support/8670c2f2-b506-473b-ae59-f6c1166e9829n%40googlegroups.com?utm_medium=email_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/d43226ab-d419-43d6-ad35-531f97c8c62an%40googlegroups.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-14 Thread 'Michel VAN DEN BERGH' via sage-support
I was unable to get the distro sage to work. I compiled sage from source 
and this solved the problem. Sad though since I would have preferred to use 
the distro version.

On Sunday, August 13, 2023 at 6:55:16 PM UTC+2 Jan Groenewald wrote:

> Hi
>
> Does this happen with a user other than your own? Even root will do for a 
> quick test.
> Perhaps pip installed packages or other repositories are conflicting. Also 
> try 
> LC_ALL=C sage
>
> Regards,
> Jan
>
>
>
> On Sun, 13 Aug 2023 at 18:14, 'Michel VAN DEN BERGH' via sage-support <
> sage-s...@googlegroups.com> wrote:
>
>> Hi,
>>
>> Today I installed sage on Ubuntu 22.04 using 
>>
>> apt install sagemath
>>
>> Sadly after typing 'sage' the program crashes. The crash seems to be 
>> related to Cython. I am attaching the crash report.
>>
>> What are my options?
>>
>> Best regards,
>> Michel
>>
>>
>>
>>
>> -- 
>> 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/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/sage-support/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com?utm_medium=email_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/8670c2f2-b506-473b-ae59-f6c1166e9829n%40googlegroups.com.


[sage-support] Freshly installed sage crashes

2023-08-13 Thread 'Michel VAN DEN BERGH' via sage-support
Hi,

Today I installed sage on Ubuntu 22.04 using 

apt install sagemath

Sadly after typing 'sage' the program crashes. The crash seems to be 
related to Cython. I am attaching the crash report.

What are my options?

Best regards,
Michel




-- 
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/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com.
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word".
[New LWP 422779]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x7ff9028ea49f in wait4 () from /lib/x86_64-linux-gnu/libc.so.6

Stack backtrace
---
No symbol table info available.
#1  0x7ff8ff1c30f4 in ?? ()
   from /usr/lib/python3/dist-packages/cysignals/signals.cpython-310-x86_64-linux-gnu.so
No symbol table info available.
#2  0x7ff8ff1c3256 in ?? ()
   from /usr/lib/python3/dist-packages/cysignals/signals.cpython-310-x86_64-linux-gnu.so
No symbol table info available.
#3  0x7ff8ff1c5f64 in ?? ()
   from /usr/lib/python3/dist-packages/cysignals/signals.cpython-310-x86_64-linux-gnu.so
No symbol table info available.
#4  
No symbol table info available.
#5  0x7ff8ab2d71f8 in primecount::PhiTiny::PhiTiny() ()
   from /lib/x86_64-linux-gnu/libprimecount.so.7
No symbol table info available.
#6  0x7ff8ab2d60da in ?? () from /lib/x86_64-linux-gnu/libprimecount.so.7
No symbol table info available.
#7  0x7ff902d2f47e in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#8  0x7ff902d2f568 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#9  0x7ff902974c85 in _dl_catch_exception ()
   from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#10 0x7ff902d36ff6 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#11 0x7ff902974c28 in _dl_catch_exception ()
   from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#12 0x7ff902d3734e in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#13 0x7ff9028906bc in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#14 0x7ff902974c28 in _dl_catch_exception ()
   from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#15 0x7ff902974cf3 in _dl_catch_error ()
   from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#16 0x7ff9028901ae in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#17 0x7ff902890748 in dlopen () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#18 0x5646cae6460b in ?? ()
No symbol table info available.
#19 0x5646cae630f7 in ?? ()
No symbol table info available.
#20 0x5646cad5f969 in ?? ()
No symbol table info available.
#21 0x5646cad4a2c1 in _PyEval_EvalFrameDefault ()
No symbol table info available.
#22 0x5646cad5f70c in _PyFunction_Vectorcall ()
No symbol table info available.
#23 0x5646cad4d8a2 in _PyEval_EvalFrameDefault ()
No symbol table info available.
#24 0x5646cad5f70c in _PyFunction_Vectorcall ()
No symbol table info available.
#25 0x5646cad47f52 in _PyEval_EvalFrameDefault ()
No symbol table info available.
#26 0x5646cad5f70c in _PyFunction_Vectorcall ()
No symbol table info available.
#27 0x5646cad47e0d in _PyEval_EvalFrameDefault ()
No symbol table info available.
#28 0x5646cad5f70c in _PyFunction_Vectorcall ()
No symbol table info available.
#29 0x5646cad47e0d in _PyEval_EvalFrameDefault ()
No symbol table info available.
#30 0x5646cad5f70c in _PyFunction_Vectorcall ()
No symbol table info available.
#31 0x5646cad47e0d in _PyEval_EvalFrameDefault ()
No symbol table info available.
#32 0x5646cad5f70c in _PyFunction_Vectorcall ()
No symbol table info available.
#33 0x5646cad5eb24 in ?? ()
No symbol table info available.
#34 0x5646cae3e4af in _PyObject_CallMethodIdObjArgs ()
No symbol table info available.
#35 0x5646cad730ca in PyImport_ImportModuleLevelObject ()
No symbol table info 

[sage-support] What is the domain of a WeylGroup

2022-03-14 Thread 'Michel VAN DEN BERGH' via sage-support
Hi all,

I am trying to do a calculation with a Weyl group acting on its standard 
weight representation. However when I do 

sage: G=WeylGroup("E6") 
 
sage: dim(G.domain())  
  

the result is 8. So the domain is on the 6 dimensional weight 
representation, as I expected.

Unfortunately there appears to be no documentation on this. Hence my 
question here.

Can we work in some way with the weight representation of a Weyl group?

Kind regards,
Michel



-- 
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/d5f5d6af-f419-4cd8-82b6-a2deba73a130n%40googlegroups.com.


Re: [sage-support] Morphisms between free groups.

2022-02-06 Thread 'Michel VAN DEN BERGH' via sage-support
Now it seems "subs" does work. I must have done something wrong. Sorry for 
the noise.

On Friday, February 4, 2022 at 3:55:19 PM UTC+1 dim...@gmail.com wrote:

>
>
> On Fri, 4 Feb 2022, 11:02 David Joyner,  wrote:
>
>> On Fri, Feb 4, 2022 at 4:40 AM 'Michel VAN DEN BERGH' via sage-support
>>  wrote:
>> >
>> > Dear all,
>> >
>> > I need to do something which I thought would be quite simple. I have 
>> free groups
>> > F, G with generators x1,x2,x3,x4 and x,y respectively and I need to 
>> compute the image of an element under the homomorphism F-->G:x1->x, x2->y, 
>> x3->x, x4->y.
>> >
>> > I could not find anything in the manual about morphisms between free 
>> groups. I tried subs, but that does not work since the parents of the 
>> elements of F and G are (of course) different.
>> >
>> > The workaround I used is to work in the free group H with generators 
>> x1,x2,x3,x4,x,y and to use subs. However this is also inconvenient since I 
>> need the action of the braid group with 4 strands on F. It does not act on 
>> H because of the limitation "#strands=#generators".
>> >
>> > So this means I have to use only part of the braid group with 6 strands.
>> >
>> > In the end it all works but it is terribly hacky for some which seems 
>> to be a very clean thing to do.
>> >
>> > I would be grateful for any suggestions.
>>
>> Michel:
>>
>> One idea is to check out
>> https://doc.sagemath.org/html/en/reference/groups/sage/groups/braid.html
>>
>> Another idea is to download braid-1.1.tar.gz, untar in the pkg
>> subdirectory and type LoadPackage("braid");
>>
>
>
> most, if not all, functionality of braid is nowadays in
> https://gap-packages.github.io/MapClass/
>
> (which is in our gap_packages)
>
>
> FYI, the pkg subdir is inside sage-9*/local/share/gap
>> You can find a pdf manual for the braid package at
>> https://arxiv.org/abs/math/0304376
>> Currently, the link to braid-1.1.tar.gz at
>> https://www.gap-system.org/Packages/undep.html
>> is bad but I have a copy. Just email me privately.
>>
>> - David
>>
>> > Michel
>> >
>> >
>> > --
>> > 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/f7d460d0-390b-455d-ae90-72b105e8e926n%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/CAEQuuAVmSsLxS%2Bi50JNUqrK%3DUm%3DquJaZ2ueNuedAVzr6xKSMzQ%40mail.gmail.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/44926720-4e3c-4567-94a3-8e2e6ff90a4cn%40googlegroups.com.


[sage-support] Morphisms between free groups.

2022-02-04 Thread 'Michel VAN DEN BERGH' via sage-support
Dear all,

I need to do something which I thought would be quite simple. I have free 
groups
F, G with generators x1,x2,x3,x4 and x,y respectively and I need to compute 
the image of an element under the homomorphism F-->G:x1->x, x2->y, x3->x, 
x4->y.

I could not find anything in the manual about morphisms between free 
groups. I tried subs, but that does not work since the parents of the 
elements of F and G are (of course) different.

The workaround I used is to work in the free group H with generators 
x1,x2,x3,x4,x,y and to use subs. However this is also inconvenient since I 
need the action of the braid group with 4 strands on F. It does not act on 
H because of the limitation "#strands=#generators".

So this means I have to use only part of the braid group with 6 strands.

In the end it all works but it is terribly hacky for some which seems to be 
a very clean thing to do.

I would be grateful for any suggestions.
Michel
 

-- 
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/f7d460d0-390b-455d-ae90-72b105e8e926n%40googlegroups.com.


[sage-support] Setting viewpoint in implicit_plot3d

2020-10-16 Thread Michel VAN DEN BERGH
Dear all,

I have this plot command which works fine

var('x,y,z')
G=implicit_plot3d(x^2+y^2-z^2==0.0001, (x,-1,1), (y,-1,1), 
(z,-1,1),plot_points=200,frame=False,viewer="threejs")

However I would like to change the default camera position and I cannot 
figure out how to do this...  I would be very grateful to anyone that can 
help me.

Michel

-- 
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/24c5cfb2-4cdd-41be-a91d-50b716c9c92fn%40googlegroups.com.