[sage-devel] Some Magma help
Hello everyone: It has become necessary to lean on Magma's extensive ability to compute with lattices (and in particular with ideal classes in definite quaternion algebras). I am trying to write some code in Magma (granting that this is an abomination) and for the life of me, I cannot figure out how to make block matrices using a bunch of 3x 3 matrices all defined over a number field. Here is the code I have. The function that I am trying to get to work is the BrandtOperator function: function representations(I, J, n) reqlat := J*invideal(I); reqnorm := n*Norm(reqlat); return Enumerate(reqlat, reqnorm, reqnorm); end function; function BrandtBlock(I, J, wt, n) assert RightOrder(I) eq RightOrder(J); eI := 1/2*#Units(LeftOrder(I)); RIJn := representations(I, J, n); phi := MatrixRepresentation(QuaternionAlgebra(RightOrder(I))); bnIJ := SymmetricPower(phi(0),wt-2); for alph in RIJn do bnIJ := bnIJ + SymmetricPower(phi(alph),wt-2); end for; return 1/eI*bnIJ; end function; function BrandtOperator(O, wt, n) Cl := RightIdealClasses(O); H := #Cl; blkr := [BrandtBlock(I, J, wt, n) : I, J in Cl]; // needs tweaking // return blkr; return BlockMatrix(blkr); end function; Also, if anyone is working on building functionality for lattices and in particular definite quaternion algebras over number field in Sage, I am willing to contribute to your project or in any case, if any one has any kind of a blueprint, I am willing to spend the next couple of months to thrash out some working code to compute spaces of automorphic forms of higher weight (just as BrandtModules do for weight 2; in this case, already, it would be desirable to work with Pizer-type orders but I am not sure if people have tried to implement these things in Sage). Thank you for your help with this! Kannappan. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: python3 status report
On Wednesday, October 31, 2018 at 2:34:59 AM UTC+9, John H Palmieri wrote: > > > > On Monday, October 29, 2018 at 9:36:33 PM UTC-7, Kwankyu Lee wrote: >> >> Or run 'make distclean' before switching Python versions. >>> >> >> For me, "make distclean" did not work. >> > > What didn't work about it? "make distclean" followed by "./configure > --with-python=3" and then "make" works for me. > I followed exactly the same steps, but somehow sage building failed somewhere in middle. I don't remember exactly what failed. I think we should recommend building from new clone... > > -- > John > > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] dot in sage ?
Hi, On Tue, Oct 30, 2018 at 04:49:16PM -0700, 'Paul Mercat' via sage-devel wrote: > Hi ! > > I'm using the Graphviz librairy to draw graph in the tools that I'm > currently developping for sage, > because it produces much better pictures than the default tool of Sage. > But I use the program "dot" that I installed on my computer. > If I'm not mistaken, Graphviz is partially included in Sage, but I was not > able to use it. > Do you know if there is a direct way to call the "dot" of sage from C code > in sage ? Sage does not provide graphviz, hence not the dot command. Hovever, there is the dot2tex optional package that allows Sage to use the graphviz you installed on your computer. You can grep Sage source code to see how it is used. Ciao, Thierry > -- > 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 post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Should we include SDL in sage ?
I just need to use the library from my C code in included in sage. Is it necessary to write an interface for that ? Le mercredi 31 octobre 2018 00:25:34 UTC+1, Thierry (sage-googlesucks@xxx) a écrit : > > Hi, > > On Tue, Oct 30, 2018 at 04:18:16PM -0700, 'Paul Mercat' via sage-devel > wrote: > > Hi ! > > > > I'm currently working on things in sage that uses the librairy SDL2. > > This librairy is not part of sage if I'm not mistaken, but it is really > > usefull to draw efficiently and interact with the user. > > It's a low level and not too big C librairy, with a licence compatible > with > > sage if I'm not mistaken. > > Do you think it is a good idea to include this librairy in sage ? > > Why not ? > > > And is it complicated to do ? > > Writing a package for SDL2 is pretty straightforward. However, writing an > interface so that it can be used through Sage will require some work > (unless you did that already). > > Ciao, > Thierry > > > > > > -- > > 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 post to this group, send email to sage-...@googlegroups.com > . > > Visit this group at https://groups.google.com/group/sage-devel. > > For more options, visit https://groups.google.com/d/optout. > > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] dot in sage ?
Hi ! I'm using the Graphviz librairy to draw graph in the tools that I'm currently developping for sage, because it produces much better pictures than the default tool of Sage. But I use the program "dot" that I installed on my computer. If I'm not mistaken, Graphviz is partially included in Sage, but I was not able to use it. Do you know if there is a direct way to call the "dot" of sage from C code in sage ? -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Should we include SDL in sage ?
Hi, On Tue, Oct 30, 2018 at 04:18:16PM -0700, 'Paul Mercat' via sage-devel wrote: > Hi ! > > I'm currently working on things in sage that uses the librairy SDL2. > This librairy is not part of sage if I'm not mistaken, but it is really > usefull to draw efficiently and interact with the user. > It's a low level and not too big C librairy, with a licence compatible with > sage if I'm not mistaken. > Do you think it is a good idea to include this librairy in sage ? Why not ? > And is it complicated to do ? Writing a package for SDL2 is pretty straightforward. However, writing an interface so that it can be used through Sage will require some work (unless you did that already). Ciao, Thierry > > -- > 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 post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Should we include SDL in sage ?
Hi ! I'm currently working on things in sage that uses the librairy SDL2. This librairy is not part of sage if I'm not mistaken, but it is really usefull to draw efficiently and interact with the user. It's a low level and not too big C librairy, with a licence compatible with sage if I'm not mistaken. Do you think it is a good idea to include this librairy in sage ? And is it complicated to do ? -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: _l_action_ and _r_action_ not working?
Hi Daniel, On 2018-10-30, Daniel Krenn wrote: > Do _l_action_ and _r_action_ actually work? I've already used that kind of methods in the past. Best regards, Simon -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] _l_action_ and _r_action_ not working?
Do _l_action_ and _r_action_ actually work? We have the following occurrences: dakrenn@nops:~$ sage -grep "_l_action_" sage/rings/multi_power_series_ring_element.py:#return self._l_action_(c) sage/rings/multi_power_series_ring_element.py:def _l_action_(self, c): sage/rings/multi_power_series_ring_element.py:sage: g = f._l_action_(1/2); g dakrenn@nops:~$ sage -grep "_r_action_" sage/rings/multi_power_series_ring_element.py:#def _r_action_(self, c): And inserting a print into the above's _l_action_ makes only one doctest fail, namely the one which explicitly calls this method. I ask, because I need this kind of behavior and [1] suggests to implement these methods. Best Daniel [1] http://doc.sagemath.org/html/en/reference/coercion/index.html#methods-to-implement -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: python3 status report
On Monday, October 29, 2018 at 9:36:33 PM UTC-7, Kwankyu Lee wrote: > > Or run 'make distclean' before switching Python versions. >> > > For me, "make distclean" did not work. > What didn't work about it? "make distclean" followed by "./configure --with-python=3" and then "make" works for me. -- John -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Error building sage-8.4 on Ubuntu
Good thing you made me check. I didn't actually include gfortran into the build environment, so its saying `checking for gfortran... no`. On Tue, Oct 30, 2018 at 4:48 PM Dima Pasechnik wrote: > Well, does ./configure outputs something like > > . > gcc-7.2.0 not installed (configure check) > gdb-8.2 > gf2x-1.2.p0 > gfan-0.6.2.p0 > gfortran-7.2.0 not installed (configure check) > ... > > If so it should not build gfortran (unless you have SAGE_INSTALL_GCC > set to yes for some reason...) > > On Tue, Oct 30, 2018 at 4:39 PM Timo Kaufmann wrote: > > > > No, but nixos doesn't follow FHS[0], so I am using linux namespaces > (more precisely this[1]) to build sage in an environment where all the > build dependencies are at their FHS locations. So sage is using nixos's > gfortran, the namespaces are just so it can find it where it expects it. > This worked before, I'm not sure if it stopped working because of a sage > change or a gfortran update. I vaguely remembered reading something similar > on the mailing list, so I thought I'd ask you what you think is causing > this before spending more time debugging. > > > > [0] https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard > > [1] https://nixos.org/nixpkgs/manual/#sec-fhs-environments > > > > Am Dienstag, 30. Oktober 2018 16:34:47 UTC+1 schrieb Dima Pasechnik: > >> > >> On Tue, Oct 30, 2018 at 4:29 PM Timo Kaufmann > wrote: > >> > > >> > Its a bit of a complicated case, but I'm not using anaconda. I'm > using nixos and a special build environment that uses linux namespaces to > make sure all the dependencies are in the location sage expects them. I'm > using that to build sage-the-distribution when testing because that won't > build natively on nixos. > >> > >> Hmm, do you mean to say you cannot have "native" nixos's gfortran, you > >> must build Sage's one? > >> > >> > > >> > Am Dienstag, 30. Oktober 2018 16:08:24 UTC+1 schrieb Dima Pasechnik: > >> >> > >> >> On Tue, Oct 30, 2018 at 4:01 PM Timo Kaufmann > wrote: > >> >> > > >> >> > I just had the same issue. Why do you think "several versions of > gfortran guts" are the issue? How does sage find gfortran / why does it get > confused? > >> >> > > >> >> > >> >> What's the OS you are using? How do you install Sage? > >> >> I suspect it's a conflict with (Ana)conda... > >> >> > >> >> > -- > >> >> > 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 post to this group, send email to sage-...@googlegroups.com. > >> >> > Visit this group at https://groups.google.com/group/sage-devel. > >> >> > For more options, visit https://groups.google.com/d/optout. > >> > > >> > -- > >> > 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 post to this group, send email to sage-...@googlegroups.com. > >> > Visit this group at https://groups.google.com/group/sage-devel. > >> > For more options, visit https://groups.google.com/d/optout. > > > > -- > > 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 post to this group, send email to sage-devel@googlegroups.com. > > Visit this group at https://groups.google.com/group/sage-devel. > > For more options, visit https://groups.google.com/d/optout. > > -- > 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/rLQLLSzHlNk/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Error building sage-8.4 on Ubuntu
Well, does ./configure outputs something like . gcc-7.2.0 not installed (configure check) gdb-8.2 gf2x-1.2.p0 gfan-0.6.2.p0 gfortran-7.2.0 not installed (configure check) ... If so it should not build gfortran (unless you have SAGE_INSTALL_GCC set to yes for some reason...) On Tue, Oct 30, 2018 at 4:39 PM Timo Kaufmann wrote: > > No, but nixos doesn't follow FHS[0], so I am using linux namespaces (more > precisely this[1]) to build sage in an environment where all the build > dependencies are at their FHS locations. So sage is using nixos's gfortran, > the namespaces are just so it can find it where it expects it. This worked > before, I'm not sure if it stopped working because of a sage change or a > gfortran update. I vaguely remembered reading something similar on the > mailing list, so I thought I'd ask you what you think is causing this before > spending more time debugging. > > [0] https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard > [1] https://nixos.org/nixpkgs/manual/#sec-fhs-environments > > Am Dienstag, 30. Oktober 2018 16:34:47 UTC+1 schrieb Dima Pasechnik: >> >> On Tue, Oct 30, 2018 at 4:29 PM Timo Kaufmann wrote: >> > >> > Its a bit of a complicated case, but I'm not using anaconda. I'm using >> > nixos and a special build environment that uses linux namespaces to make >> > sure all the dependencies are in the location sage expects them. I'm using >> > that to build sage-the-distribution when testing because that won't build >> > natively on nixos. >> >> Hmm, do you mean to say you cannot have "native" nixos's gfortran, you >> must build Sage's one? >> >> > >> > Am Dienstag, 30. Oktober 2018 16:08:24 UTC+1 schrieb Dima Pasechnik: >> >> >> >> On Tue, Oct 30, 2018 at 4:01 PM Timo Kaufmann wrote: >> >> > >> >> > I just had the same issue. Why do you think "several versions of >> >> > gfortran guts" are the issue? How does sage find gfortran / why does it >> >> > get confused? >> >> > >> >> >> >> What's the OS you are using? How do you install Sage? >> >> I suspect it's a conflict with (Ana)conda... >> >> >> >> > -- >> >> > 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 post to this group, send email to sage-...@googlegroups.com. >> >> > Visit this group at https://groups.google.com/group/sage-devel. >> >> > For more options, visit https://groups.google.com/d/optout. >> > >> > -- >> > 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 post to this group, send email to sage-...@googlegroups.com. >> > Visit this group at https://groups.google.com/group/sage-devel. >> > For more options, visit https://groups.google.com/d/optout. > > -- > 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 post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Error building sage-8.4 on Ubuntu
No, but nixos doesn't follow FHS[0], so I am using linux namespaces (more precisely this[1]) to build sage in an environment where all the build dependencies are at their FHS locations. So sage is using nixos's gfortran, the namespaces are just so it can find it where it expects it. This worked before, I'm not sure if it stopped working because of a sage change or a gfortran update. I vaguely remembered reading something similar on the mailing list, so I thought I'd ask you what you think is causing this before spending more time debugging. [0] https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard [1] https://nixos.org/nixpkgs/manual/#sec-fhs-environments Am Dienstag, 30. Oktober 2018 16:34:47 UTC+1 schrieb Dima Pasechnik: > > On Tue, Oct 30, 2018 at 4:29 PM Timo Kaufmann > wrote: > > > > Its a bit of a complicated case, but I'm not using anaconda. I'm using > nixos and a special build environment that uses linux namespaces to make > sure all the dependencies are in the location sage expects them. I'm using > that to build sage-the-distribution when testing because that won't build > natively on nixos. > > Hmm, do you mean to say you cannot have "native" nixos's gfortran, you > must build Sage's one? > > > > > Am Dienstag, 30. Oktober 2018 16:08:24 UTC+1 schrieb Dima Pasechnik: > >> > >> On Tue, Oct 30, 2018 at 4:01 PM Timo Kaufmann > wrote: > >> > > >> > I just had the same issue. Why do you think "several versions of > gfortran guts" are the issue? How does sage find gfortran / why does it get > confused? > >> > > >> > >> What's the OS you are using? How do you install Sage? > >> I suspect it's a conflict with (Ana)conda... > >> > >> > -- > >> > 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 post to this group, send email to sage-...@googlegroups.com. > >> > Visit this group at https://groups.google.com/group/sage-devel. > >> > For more options, visit https://groups.google.com/d/optout. > > > > -- > > 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 post to this group, send email to sage-...@googlegroups.com > . > > Visit this group at https://groups.google.com/group/sage-devel. > > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Error building sage-8.4 on Ubuntu
On Tue, Oct 30, 2018 at 4:29 PM Timo Kaufmann wrote: > > Its a bit of a complicated case, but I'm not using anaconda. I'm using nixos > and a special build environment that uses linux namespaces to make sure all > the dependencies are in the location sage expects them. I'm using that to > build sage-the-distribution when testing because that won't build natively on > nixos. Hmm, do you mean to say you cannot have "native" nixos's gfortran, you must build Sage's one? > > Am Dienstag, 30. Oktober 2018 16:08:24 UTC+1 schrieb Dima Pasechnik: >> >> On Tue, Oct 30, 2018 at 4:01 PM Timo Kaufmann wrote: >> > >> > I just had the same issue. Why do you think "several versions of gfortran >> > guts" are the issue? How does sage find gfortran / why does it get >> > confused? >> > >> >> What's the OS you are using? How do you install Sage? >> I suspect it's a conflict with (Ana)conda... >> >> > -- >> > 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 post to this group, send email to sage-...@googlegroups.com. >> > Visit this group at https://groups.google.com/group/sage-devel. >> > For more options, visit https://groups.google.com/d/optout. > > -- > 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 post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Error building sage-8.4 on Ubuntu
Its a bit of a complicated case, but I'm not using anaconda. I'm using nixos and a special build environment that uses linux namespaces to make sure all the dependencies are in the location sage expects them. I'm using that to build sage-the-distribution when testing because that won't build natively on nixos. Am Dienstag, 30. Oktober 2018 16:08:24 UTC+1 schrieb Dima Pasechnik: > > On Tue, Oct 30, 2018 at 4:01 PM Timo Kaufmann > wrote: > > > > I just had the same issue. Why do you think "several versions of > gfortran guts" are the issue? How does sage find gfortran / why does it get > confused? > > > > What's the OS you are using? How do you install Sage? > I suspect it's a conflict with (Ana)conda... > > > -- > > 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 post to this group, send email to sage-...@googlegroups.com > . > > Visit this group at https://groups.google.com/group/sage-devel. > > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Error building sage-8.4 on Ubuntu
On Tue, Oct 30, 2018 at 4:01 PM Timo Kaufmann wrote: > > I just had the same issue. Why do you think "several versions of gfortran > guts" are the issue? How does sage find gfortran / why does it get confused? > What's the OS you are using? How do you install Sage? I suspect it's a conflict with (Ana)conda... > -- > 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 post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Error building sage-8.4 on Ubuntu
I just had the same issue. Why do you think "several versions of gfortran guts" are the issue? How does sage find gfortran / why does it get confused? -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: sage Python3 build: sagenb problem
Just add exit 0 at the 1st line of build/pkgs/sagenb/spkg-install On Tue, Oct 30, 2018 at 2:57 PM Daniel Krenn wrote: > > On 2018-10-30 14:44, Dima Pasechnik wrote: > > If you insist of building sagenb on python3 (where it's broken) > > then one should not build its docs there > > (docbuilding of sagenb on python3 is known to be broken) > > I do not need sagenb nor docs at all. I simply want a SageMath on > Python3 to see the failing doctests in sage.rings.asymptotic and to play > around with these. > > Is there a way to exclude this from the build? > > Daniel > > > On Tue, Oct 30, 2018 at 2:35 PM Daniel Krenn wrote: > >> > >> On 2018-10-30 13:47, Eric Gourgoulhon wrote: > >>> I had the same problem this morning, while performing the python3 build > >>> of Sage 8.5.beta1: > >>> [sagenb-1.1.0] Error installing package sagenb-1.1.0 > >>> The command was > >>> MAKE="make -j8" make build > >>> Running it a second time lead to a successful build though... > >> > >> Tried again, but still get the same error (both with build in parallel > >> and single threaded) > >> > >> Daniel > >> > >> -- > >> 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 post to this group, send email to sage-devel@googlegroups.com. > >> Visit this group at https://groups.google.com/group/sage-devel. > >> For more options, visit https://groups.google.com/d/optout. > > > > -- > 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 post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Bug with NumberField
solved at https://trac.sagemath.org/ticket/26593 Le 26/10/2018 à 16:48, 'Paul Mercat' via sage-devel a écrit : Thank you. So the bug is with the test of equality in QQbar, not with NumberField. Do you know how to solve this problem with QQbar ? I tried to look at where is the error, and it looks like there is an infinite loop: /Users/mercatp/sage-8.2/local/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_compiled.pyx in sage.rings.polynomial.polynomial_compiled.abc_pd.eval (build/cythonized/sage/rings/polynomial/polynomial_compiled.c:6599)()506 507 cdef int eval(abc_pd self, object vars, object coeffs) except -2:--> 508 pd_eval(self.left, vars, coeffs)509 pd_eval(self.right, vars, coeffs)510 self.value = self.left.value * self.right.value + coeffs[self.index] /Users/mercatp/sage-8.2/local/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_compiled.pyx in sage.rings.polynomial.polynomial_compiled.pd_eval (build/cythonized/sage/rings/polynomial/polynomial_compiled.c:3574)()352 cdef inline int pd_eval(generic_pd pd, object vars, object coeffs) except -2:353 if pd.value is None:--> 354 pd.eval(vars, coeffs)355 pd.hits += 1356 But I don't know how to avoid this loop, because I don't know what do this code... Paul Le vendredi 26 octobre 2018 16:04:57 UTC+2, John Cremona a écrit : On Fri, 26 Oct 2018 at 13:07, 'Paul Mercat' via sage-devel < sage-...@googlegroups.com > wrote: Hi ! I have a strange bug with NumberField: when I do sage: pi = x^7 - 2*x^6 + x^3 - 2*x^2 + 2*x - 1 sage: b = pi.roots(ring=QQbar)[3][0] sage: pi = b.minpoly() sage: K = NumberField(pi, 'b', embedding=b) it works well. But if I execute it a second time, then it never terminates! Do you have a explanation and a correction to this problem ? How strange. The first 3 lines are fine the second time. So is the number field construction when you leave out the embedding. When a number field is constructed it is cached so that a new construction returns the same object, and not a copy, where possible. In your case that means checking that the embeddings are the same, which means checking that two elements of QQbar are the same. That can be expensive. If you do b1 = pi.roots(ring=QQbar)[3][0] b2 = pi.roots(ring=QQbar)[3][0] and then b1==b2 it also takes ages. I cannot remember the algorithm here but it does not look optimal; it may be working effectively in a field of degree 7*6 or possibly 7!. I note that d=b1-b2 d==0 yields True immediately. John Thank, Paul -- 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 post to this group, send email to sage-...@googlegroups.com . Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: sage Python3 build: sagenb problem
On 2018-10-30 14:44, Dima Pasechnik wrote: > If you insist of building sagenb on python3 (where it's broken) > then one should not build its docs there > (docbuilding of sagenb on python3 is known to be broken) I do not need sagenb nor docs at all. I simply want a SageMath on Python3 to see the failing doctests in sage.rings.asymptotic and to play around with these. Is there a way to exclude this from the build? Daniel > On Tue, Oct 30, 2018 at 2:35 PM Daniel Krenn wrote: >> >> On 2018-10-30 13:47, Eric Gourgoulhon wrote: >>> I had the same problem this morning, while performing the python3 build >>> of Sage 8.5.beta1: >>> [sagenb-1.1.0] Error installing package sagenb-1.1.0 >>> The command was >>> MAKE="make -j8" make build >>> Running it a second time lead to a successful build though... >> >> Tried again, but still get the same error (both with build in parallel >> and single threaded) >> >> Daniel >> >> -- >> 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 post to this group, send email to sage-devel@googlegroups.com. >> Visit this group at https://groups.google.com/group/sage-devel. >> For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: sage Python3 build: sagenb problem
If you insist of building sagenb on python3 (where it's broken) then one should not build its docs there (docbuilding of sagenb on python3 is known to be broken) On Tue, Oct 30, 2018 at 2:35 PM Daniel Krenn wrote: > > On 2018-10-30 13:47, Eric Gourgoulhon wrote: > > I had the same problem this morning, while performing the python3 build > > of Sage 8.5.beta1: > > [sagenb-1.1.0] Error installing package sagenb-1.1.0 > > The command was > > MAKE="make -j8" make build > > Running it a second time lead to a successful build though... > > Tried again, but still get the same error (both with build in parallel > and single threaded) > > Daniel > > -- > 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 post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: sage Python3 build: sagenb problem
On 2018-10-30 13:47, Eric Gourgoulhon wrote: > I had the same problem this morning, while performing the python3 build > of Sage 8.5.beta1: > [sagenb-1.1.0] Error installing package sagenb-1.1.0 > The command was > MAKE="make -j8" make build > Running it a second time lead to a successful build though... Tried again, but still get the same error (both with build in parallel and single threaded) Daniel -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: sage Python3 build: sagenb problem
IMHO sagenb should not be installed with python 3 at all. On Tue, Oct 30, 2018 at 1:47 PM Eric Gourgoulhon wrote: > > Hi, > > I had the same problem this morning, while performing the python3 build of > Sage 8.5.beta1: > [sagenb-1.1.0] Error installing package sagenb-1.1.0 > The command was > MAKE="make -j8" make build > Running it a second time lead to a successful build though... > > 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 post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: sage Python3 build: sagenb problem
Hi, I had the same problem this morning, while performing the python3 build of Sage 8.5.beta1: [sagenb-1.1.0] Error installing package sagenb-1.1.0 The command was MAKE="make -j8" make build Running it a second time lead to a successful build though... 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] sage Python3 build: sagenb problem
I tried to build Sage with Python3 via make configure ./configure --with-python=3 make build (fresh clone of 8.5.beta1) as announced on https://wiki.sagemath.org/Python3-compatible%20code but it failed building its docs. From what I read, building the docs does still not work (part of the log below). My question is, how to compile it "correctly"? FYI, I do not recall what I did about two month ago (probably the same), but it was "easy" to compile without any errors. Best wishes Daniel [sagenb-1.1.0] reading sources... [ 73%] notebook/notebook [sagenb-1.1.0] WARNING: autodoc: failed to import module 'sagenb.misc.introspect'; the following exception was raised: [sagenb-1.1.0] Traceback (most recent call last): [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sphinx/ext/autodoc/importer.py", line 152, in import_module [sagenb-1.1.0] __import__(modname) [sagenb-1.1.0] File "../sagenb/__init__.py", line 3, in [sagenb-1.1.0] from . import storage [sagenb-1.1.0] File "../sagenb/storage/__init__.py", line 3, in [sagenb-1.1.0] from .filesystem_storage import FilesystemDatastore [sagenb-1.1.0] File "../sagenb/storage/filesystem_storage.py", line 52, in [sagenb-1.1.0] from sagenb.misc.misc import set_restrictive_permissions, encoded_str [sagenb-1.1.0] File "../sagenb/misc/misc.py", line 216, in [sagenb-1.1.0] import sage.all [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/all.py", line 83, in [sagenb-1.1.0] from sage.misc.all import * # takes a while [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/misc/all.py", line 84, in [sagenb-1.1.0] from .functional import (additive_order, [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/misc/functional.py", line 27, in [sagenb-1.1.0] from sage.rings.complex_double import CDF [sagenb-1.1.0] File "sage/rings/complex_double.pyx", line 101, in init sage.rings.complex_double (build/cythonized/sage/rings/complex_double.c:24114) [sagenb-1.1.0] cdef CC = ComplexField() [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/complex_field.py", line 114, in ComplexField [sagenb-1.1.0] C = ComplexField_class(prec) [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/complex_field.py", line 208, in __init__ [sagenb-1.1.0] self._populate_coercion_lists_(coerce_list=[RRtoCC(self._real_field(), self)]) [sagenb-1.1.0] File "sage/rings/complex_number.pyx", line 2580, in sage.rings.complex_number.RRtoCC.__init__ (build/cythonized/sage/rings/complex_number.c:21896) [sagenb-1.1.0] Map.__init__(self, RR, CC) [sagenb-1.1.0] File "sage/categories/map.pyx", line 125, in sage.categories.map.Map.__init__ (build/cythonized/sage/categories/map.c:3588) [sagenb-1.1.0] parent = homset.Hom(parent, codomain) [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/categories/homset.py", line 397, in Hom [sagenb-1.1.0] H = Hom(X, Y, category, check=False) [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/categories/homset.py", line 424, in Hom [sagenb-1.1.0] H = X._Hom_(Y, category) [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/categories/rings.py", line 361, in _Hom_ [sagenb-1.1.0] from sage.rings.homset import RingHomset [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/homset.py", line 19, in [sagenb-1.1.0] from . import quotient_ring [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/quotient_ring.py", line 116, in [sagenb-1.1.0] import sage.rings.polynomial.multi_polynomial_ideal [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/polynomial/multi_polynomial_ideal.py", line 239, in [sagenb-1.1.0] from sage.interfaces.all import (singular as singular_default, [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/interfaces/all.py", line 24, in [sagenb-1.1.0] from .maxima import maxima, Maxima [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/interfaces/maxima.py", line 1238, in [sagenb-1.1.0] script_subdirectory=None) [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/interfaces/maxima.py", line 529, in __init__ [sagenb-1.1.0] raise RuntimeError('You must get the file local/bin/sage-maxima.lisp') [sagenb-1.1.0] RuntimeError: You must get the file local/bin/sage-maxima.lisp [sagenb-1.1.0] [sagenb-1.1.0] WARNING: autodoc: failed to import module 'sagenb.misc.misc'; the following exception was raised: [sagenb-1.1.0] Traceback (most recent call last): [sagenb-1.1.0] File "/opt/sage
[sage-devel] Re: refresh the banner
Because we do not have a clean command inside sage to launch the jupyter noteboook. For the moment, we should just try to avoid new people start using the deprecated sagenb. F Le lundi 29 octobre 2018 23:51:22 UTC+1, Simon King a écrit : > > Hi Frédéric, > > On 2018-10-29, Frédéric Chapoton > > wrote: > > (1) there is no longer any line about "notebook()" (because the legacy > > sagenb is deprecated now) > > Why not mention the jupyter notebook instead? > > > (2) the python version which is used is displayed (because we will try > to > > switch to python3 later) > > Good idea! > > Best regards, > Simon > > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.