Re: [sage-devel] Cannot launch command-line session in macOS on M1: libncurses issue

2022-08-30 Thread Murray Eisenberg
In response to your cited comment that ticket, I replied:

In /usr/local there is no libncurses.*

(In /usr/local/lib/fpc -- from Free Pascal Compiler -- there are a couple dozen 
ncurses modules, but no libncurses.*.)


> On 30 Aug2022, at 2:12 PM, Matthias Koeppe  wrote:
> 
> In a response on the ticket https://trac.sagemath.org/ticket/34459, I wrote:  
> What is in /usr/local on this machine and where does it come from?
> 
> On Monday, August 29, 2022 at 5:54:04 PM UTC-7 murraye...@gmail.com wrote:
> OK, moved /opt/local/lib/ to /opt/local/lib.bak/. Now in Terminal:
> 
> [~] % sage
> dyld[55752]: Library not loaded: '/opt/local/lib/libncurses.6.dylib'
>   Referenced from: '/usr/local/bin/bash'
>   Reason: tried: '/opt/local/lib/libncurses.6.dylib' (no such file), 
> '/usr/local/lib/libncurses.6.dylib' (no such file), 
> '/usr/lib/libncurses.6.dylib' (no such file)
> /usr/local/bin/sage: line 20: 55752 Abort trap: 6   /usr/bin/env - 
> PATH="$PATH" $MIN_ENV "$SYMLINK"/venv/bin/sage "$@"
> 
> 
>> On 29 Aug2022, at 7:56 PM, Dima Pasechnik > > wrote:
>> 
> 
>> No, PATH has nothing to do with libraries loading. Most probably it's due to 
>> libraries  in /opt/local/lib/ which
>> conflict, and are looked at by linker or loader...
>> 
>> Can you temporarity move  /opt/local/lib/ to /opt/local/lib.bak/
>> and try again?
>>  
>> 
>> On Tue, 30 Aug 2022, 00:32 Murray Eisenberg, > > wrote:
>> echo $PATH
>> 
>> /opt/anaconda3/condabin:/opt/local/lib/mysql8/bin:/Library/TeX/texbin:/opt/local/bin:/opt/local/sbin:/opt/local/apache2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/bin:/Applications/Macaulay2-1.20/bin:/Library/TeX/texbin:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/theuser/.cargo/bin:/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/local/sbin:/Users/theuser/bin:/Users/theuser/bin/shell:/Users/theuser/bin/python:/Users/theuser/.local/bin:/Users/theuser/.cargo/bin:/opt/local/share/matlab2tikz/src:/Applications/Singular/Contents/bin:/Applications/Singular/Contents/bin/lib:/Users/theuser/.elan/bin:/opt/local/libexec/git-core:/Applications:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/theuser/Library/Application
>>  Support/GoodSync
>> 
>> > On 29 Aug2022, at 4:12 PM, Dima Pasechnik > > > wrote:
>> > 
>> > What's the value of PATH in your terminal session? I.e. what's the output 
>> > of
>> > 
>> > echo $PATH
>> > 
>> > (I'm not sure what /etc/paths have to do with this - this is something 
>> > static)
>> > 
>> > On Mon, Aug 29, 2022 at 8:59 PM Murray Eisenberg
>> > > > > wrote:
>> >> 
>> >> I see at https://invisible-island.net/ncurses/announce.html 
>> >>  that the current 
>> >> stable version of ncurses is, in fact, 6.3.
>> >> 
>> >> On 29 Aug2022, at 2:08 PM, G. M.-S. > >> > wrote:
>> >> 
>> >> 
>> >> I have just installed this version of SageMath under exactly the same 
>> >> conditions and I have no problem at all.
>> >> 
>> >> Perhaps you have a wrong version of libncurses installed, because mine is 
>> >> version 5 (more precisely 5.4) and not 6.
>> >> 
>> >> Guillermo
>> >> 
>> >> On Mon, 29 Aug 2022 at 19:45, Murray Eisenberg > >> > wrote:
>> >>> 
>> >>> With SageMath 9-6-1.4.2 (arm64 architecture) under macOS 12.5.1 on an M1 
>> >>> Mac, I cannot start the sage on a command line, neither directly in 
>> >>> Terminal using command sage nor from the SageMath app with choice of 
>> >>> Command line interface. In each case, I get error message about the 
>> >>> wrong architecture libncurses.
>> >>> 
>> >>> (The message is shown in my post 
>> >>> https://ask.sagemath.org/question/63840/cannot-launch-command-line-session-libncurses-problem/
>> >>>  
>> >>> 
>> >>>  .)
>> >>> 
>> >>> I installed SageMath, including Recommended_9_6.pkg, using 
>> >>> SageMath-9.6-1.4.2_arm64.dmg from 
>> >>> https://github.com/3-manifolds/Sage_m.. 
>> >>> ..
>> >>> 
>> >>> Note that I can successfully launch the jupyter notebook interface from 
>> >>> SageMath-9-6.app and run Sage commands there.
>> >>> 
>> >>> How to fix this?
>> >> 
>> >> 
>> >> 
>> >> --
>> >> You received this message because you are subscribed to a topic in the 
>> >> Google Groups "sage-devel" group.
>> >> To unsubscribe from this topic, visit 
>> >> https://groups.google.com/d/topic/sage-devel/tOA6n3wjc7w/unsubscribe 
>> >> .
>> >> To unsubscribe from this group and all its topics, send an email to 
>> >> sage-devel+...@googlegroups.com 
>> >> .
>> >> To view this discussion on the web visit 
>> >> 

[sage-devel] Re: Reducing the size of one of the plots placed in a graphicsarray

2022-08-30 Thread Eric Gourgoulhon
PS: see also 
https://doc.sagemath.org/html/en/reference/plotting/sage/plot/plot.html#sage.plot.plot.multi_graphics

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


[sage-devel] Re: Reducing the size of one of the plots placed in a graphicsarray

2022-08-30 Thread Eric Gourgoulhon
Use multi_graphics instead of graphics_array:
ga = multi_graphics([(p, (0, 0, 0.7, 0.7)), (q, (0.65, 0.2, 0.3, 0.3))])
ga.show()
[image: mg.png]

See 
https://doc.sagemath.org/html/en/reference/plotting/sage/plot/multigraphics.html#sage.plot.multigraphics.MultiGraphics
for details.

Eric.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/aba09407-6f8b-46c6-ac6b-2453bc944028n%40googlegroups.com.


Re: [sage-devel] Trac SSH key change

2022-08-30 Thread Antoine Leudière
Thanks a lot.

A.

Le mardi 30 août 2022 à 12:18:41 UTC+2, j...@aims.ac.za a écrit :

> Hi
>
> The new key fingerprints are:
>
> root@trac:/etc/ssh# for i in dsa ecdsa ed25519 rsa;do ssh-keygen -lf 
> ssh_host_${i}_key.pub;done
> 1024 SHA256:OcDDAITkg6PYce8VfnQJDPU+c84Uv2oy5wghE28XZD4 root@trac (DSA)
> 256 SHA256:*29lzUeszegCYCnVMOJ+Ts/**IlCwojLuf03NnVoLlONEs* root@trac 
> (ECDSA)
> 256 SHA256:hWfFCmt2bNQNjHupWnvu2iuvBeCMjqD2osowXpRPwMs root@trac (ED25519)
> 2048 SHA256:S9jrXdoHRX6eTb8DdctCoOy6DSqSRKm43Zn5u0zeRCg root@trac (RSA)
>
> Regards,
> Jan
>
> On Tue, 30 Aug 2022 at 11:43, Dima Pasechnik  wrote:
>
>>
>>
>> On Tue, 30 Aug 2022, 10:41 Antoine Leudière,  
>> wrote:
>>
>>> Hi,
>>>
>>> It seems the Trac SSH server key has changed; got this message after 
>>> attempting
>>> `git push`:
>>>
>>> ```
>>> @@@
>>> @WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
>>> @@@
>>> IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
>>> Someone could be eavesdropping on you right now (man-in-the-middle 
>>> attack)!
>>> It is also possible that a host key has just been changed.
>>> The fingerprint for the ECDSA key sent by the remote host is
>>> SHA256:...
>>> Please contact your system administrator.
>>> Add correct host key in myhome/.ssh/known_hosts to get rid of this 
>>> message.
>>> Offending ECDSA key in myhome/.ssh/known_hosts:34
>>>   remove with:
>>>   ssh-keygen -f "myhome/.ssh/known_hosts" -R "trac.sagemath.org"
>>> Host key for trac.sagemath.org has changed and you have requested 
>>> strict checking.
>>> Host key verification failed.
>>> fatal: Could not read from remote repository.
>>>
>>> Please make sure you have the correct access rights
>>> and the repository exists.
>>> ```
>>>
>>> Can you confirm that this is normal, and that I can proceed? Is this 
>>> related to
>>> https://groups.google.com/u/1/g/sage-devel/c/iHgyTYbNOn0 ?
>>>
>>
>> yes, it is expected. The upgrade caused a change in host keys.
>>
>>
>>
>>>
>>> Regards,
>>> Antoine Leudière
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "sage-devel" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to sage-devel+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-devel/13479c23-6f18-4e8b-900d-24422acbaae6n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-devel+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-devel/CAAWYfq3AkhQwG_Y6WZnHEq-Mnf2w2iMwQrt54x0nhhQazbGsMQ%40mail.gmail.com
>>  
>> 
>> .
>>
>
>
> -- 
>   .~. 
>   /V\ Jan Groenewald
>  /( )\www.aims.ac.za
>  ^^-^^ 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/2ab8e213-6942-44bd-92a4-574cc3f1befen%40googlegroups.com.


Re: [sage-devel] Trac SSH key change

2022-08-30 Thread Jan Groenewald
Hi

The new key fingerprints are:

root@trac:/etc/ssh# for i in dsa ecdsa ed25519 rsa;do ssh-keygen -lf
ssh_host_${i}_key.pub;done
1024 SHA256:OcDDAITkg6PYce8VfnQJDPU+c84Uv2oy5wghE28XZD4 root@trac (DSA)
256 SHA256:*29lzUeszegCYCnVMOJ+Ts/**IlCwojLuf03NnVoLlONEs* root@trac (ECDSA)
256 SHA256:hWfFCmt2bNQNjHupWnvu2iuvBeCMjqD2osowXpRPwMs root@trac (ED25519)
2048 SHA256:S9jrXdoHRX6eTb8DdctCoOy6DSqSRKm43Zn5u0zeRCg root@trac (RSA)

Regards,
Jan

On Tue, 30 Aug 2022 at 11:43, Dima Pasechnik  wrote:

>
>
> On Tue, 30 Aug 2022, 10:41 Antoine Leudière, 
> wrote:
>
>> Hi,
>>
>> It seems the Trac SSH server key has changed; got this message after
>> attempting
>> `git push`:
>>
>> ```
>> @@@
>> @WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
>> @@@
>> IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
>> Someone could be eavesdropping on you right now (man-in-the-middle
>> attack)!
>> It is also possible that a host key has just been changed.
>> The fingerprint for the ECDSA key sent by the remote host is
>> SHA256:...
>> Please contact your system administrator.
>> Add correct host key in myhome/.ssh/known_hosts to get rid of this
>> message.
>> Offending ECDSA key in myhome/.ssh/known_hosts:34
>>   remove with:
>>   ssh-keygen -f "myhome/.ssh/known_hosts" -R "trac.sagemath.org"
>> Host key for trac.sagemath.org has changed and you have requested strict
>> checking.
>> Host key verification failed.
>> fatal: Could not read from remote repository.
>>
>> Please make sure you have the correct access rights
>> and the repository exists.
>> ```
>>
>> Can you confirm that this is normal, and that I can proceed? Is this
>> related to
>> https://groups.google.com/u/1/g/sage-devel/c/iHgyTYbNOn0 ?
>>
>
> yes, it is expected. The upgrade caused a change in host keys.
>
>
>
>>
>> Regards,
>> Antoine Leudière
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to sage-devel+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-devel/13479c23-6f18-4e8b-900d-24422acbaae6n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CAAWYfq3AkhQwG_Y6WZnHEq-Mnf2w2iMwQrt54x0nhhQazbGsMQ%40mail.gmail.com
> 
> .
>


-- 
  .~.
  /V\ Jan Groenewald
 /( )\www.aims.ac.za
 ^^-^^

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


Re: [sage-devel] Solving quintics

2022-08-30 Thread Fat i
Hello all,

with the described class library, it is now possible to solve irreducible 
solvable Bring-Jerrard quintics, i.e. f(x) = x^5 + ax + b. Coefficients are 
calculated up to a certain limit which is based on the Cantor counting 
scheme of rational numbers with default maxValue = 20. Higher number 
coefficients max be generated if needed; however, due to O(n^4) complexity 
in generating the Spearman Williams coefficients, this is limited to 
maxValue = 100 currently. Contact the author for an extension if higher 
number coefficients are required.

I have copied over the updated files, including a test script called  
TestWorksheetBJ.sagews.

Any feedback is appreciated. It might be interesting also to look at 
quartic Tschirnhaus transformations of general quintics which yield 
solvable Bring-Jerrard quintics.
Best regards
Achim

Fat i schrieb am Samstag, 6. August 2022 um 08:40:59 UTC+2:

> Thanks, David, that´s very helpful. I will look a bit deeper into these 
> approaches.
>
> Kind regards
> Achim
>
> David Roe schrieb am Freitag, 5. August 2022 um 23:11:54 UTC+2:
>
>> Hi Achim,
>> Many of the polynomials you mention can be factored by Sage if you use 
>> number fields for your coefficients rather than the symbolic ring.  For 
>> example:
>>
>> sage: R. = ZZ[]
>> sage: K. = NumberField(x^2 + x + 1)
>> sage: f = x^5 + 9/2 * x^4 - 5/2 * x^3 - 2*w * x^2 - 9*w * x + 5*w
>> sage: f.factor()
>> (x - 1/2) * (x + 5) * (x^3 - 2*w)
>>
>> There's a separate question of trying to write the roots of an 
>> irreducible polynomial in terms of radicals.  The process for doing this 
>> depends on the Galois group (you can find examples of number fields with 
>> each of the possible degree 5 Galois groups 
>>  using LMFDB searches like this 
>> ).  If the Galois 
>> group is not solvable (S5 or A5 in the degree 5 case), it's not possible to 
>> write roots in radicals.  If it is solvable, you can find a chain of 
>> subgroups where each successive quotient in the chain is cyclic, and then 
>> use Kummer theory to express each extension as adjoining an nth root.  
>> After expressing the Galois closure as an iterated extension in this way, 
>> you can then factor your original polynomial in this field.  
>> Computationally, this gets to be very expensive as the degree of the Galois 
>> closure increases, but it's totally doable for quintics.
>>
>> If you want to learn more about this topic there are plenty of good 
>> references on Galois theory.  I think a function that used Sage's Galois 
>> groups (which are computed by Pari under the hood) in order to express 
>> roots of a polynomial symbolically in terms of nth roots (when possible) 
>> would be a nice contribution.
>> David
>>
>> On Fri, Aug 5, 2022 at 1:44 PM Fat i  wrote:
>>
>>> Hello,
>>>
>>> I am new to this group and got the suggestion to post this here which I 
>>> am happy to do. If you are interested in polynomials, esp. solving 
>>> quintics, you may have a look at
>>>
>>> CoCalc -- Development 
>>> 
>>>
>>> I have spent some time studying quintics and implemented a class library 
>>> which wraps and extends SAGE capabilities., Happy to receive your feedback 
>>> or questions, or let me know if you would like to contribute or collaborate.
>>>
>>> Check the README.md file for an overview.
>>>
>>> Kind regards
>>> Achim
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "sage-devel" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to sage-devel+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-devel/b5a63fbb-456b-446e-b270-abcefad57dabn%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/4ba0045d-0054-44ef-a8ea-713d6e4efc0fn%40googlegroups.com.


Re: [sage-devel] Trac SSH key change

2022-08-30 Thread Dima Pasechnik
On Tue, 30 Aug 2022, 10:41 Antoine Leudière, 
wrote:

> Hi,
>
> It seems the Trac SSH server key has changed; got this message after
> attempting
> `git push`:
>
> ```
> @@@
> @WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
> @@@
> IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
> Someone could be eavesdropping on you right now (man-in-the-middle attack)!
> It is also possible that a host key has just been changed.
> The fingerprint for the ECDSA key sent by the remote host is
> SHA256:...
> Please contact your system administrator.
> Add correct host key in myhome/.ssh/known_hosts to get rid of this message.
> Offending ECDSA key in myhome/.ssh/known_hosts:34
>   remove with:
>   ssh-keygen -f "myhome/.ssh/known_hosts" -R "trac.sagemath.org"
> Host key for trac.sagemath.org has changed and you have requested strict
> checking.
> Host key verification failed.
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
> ```
>
> Can you confirm that this is normal, and that I can proceed? Is this
> related to
> https://groups.google.com/u/1/g/sage-devel/c/iHgyTYbNOn0 ?
>

yes, it is expected. The upgrade caused a change in host keys.



>
> Regards,
> Antoine Leudière
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/13479c23-6f18-4e8b-900d-24422acbaae6n%40googlegroups.com
> 
> .
>

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


[sage-devel] Trac SSH key change

2022-08-30 Thread Antoine Leudière
Hi,

It seems the Trac SSH server key has changed; got this message after 
attempting
`git push`:

```
@@@
@WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:...
Please contact your system administrator.
Add correct host key in myhome/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in myhome/.ssh/known_hosts:34
  remove with:
  ssh-keygen -f "myhome/.ssh/known_hosts" -R "trac.sagemath.org"
Host key for trac.sagemath.org has changed and you have requested strict 
checking.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
```

Can you confirm that this is normal, and that I can proceed? Is this 
related to
https://groups.google.com/u/1/g/sage-devel/c/iHgyTYbNOn0 ?


Regards,
Antoine Leudière

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/13479c23-6f18-4e8b-900d-24422acbaae6n%40googlegroups.com.