[sage-support] Re: compiling sage 6.3 on a raspberry pi

2014-09-08 Thread Jean-Pierre Flori
On Monday, September 8, 2014 2:38:45 PM UTC+2, simon.ei...@vol.at wrote: Hi all, I am not sure if this message went through or not but it seems not. I just have a quick question. How easy is it now to compile sage 6.3 on a raspberry pi? I tried that with version 5.13 and this was

[sage-support] Problem with magma interface

2014-09-04 Thread Jean-Pierre Flori
That's the first time I use Sage-Magma interface. Am I doing something wrong? Thanks in advance. (Latest sage beta, magma 2.19-2) sage: p = next_prime(14) sage: n = next_prime(13) sage: k = GF(p) sage: R.x = PolynomialRing(k) sage: f = R.irreducible_element(n) sage: g = R.irreducible_element(n,

Re: [sage-support] Cross-compilation of Sage ?

2013-07-15 Thread Jean-Pierre Flori
On Monday, July 15, 2013 10:14:35 AM UTC+2, Emmanuel Charpentier wrote: Dear William, Le lundi 15 juillet 2013 à 00:48 -0700, William Stein a écrit : On Mon, Jul 15, 2013 at 12:15 AM, Emmanuel Charpentier emanuel.c...@gmail.com javascript: wrote: Dear William, Le dimanche

[sage-support] Re: question - SAGE

2013-06-21 Thread Jean-Pierre Flori
On Friday, June 21, 2013 6:43:29 PM UTC+2, William stein wrote: -- Forwarded message -- From: Savin Diana savin...@univ-ovidius.ro javascript: Date: Thu, Jun 20, 2013 at 2:46 AM Subject: question - SAGE To: wst...@uw.edu javascript: wst...@uw.edu javascript: Dear

[sage-support] Re: Sage installation on windows : browser cannot connect

2012-05-09 Thread Jean-Pierre Flori
Today at some Sage meeting in Paris, we encountered this problem once more with Sage 4.7.2 vbox image within Windows 7. The image was correctly (or seemingly correctly) preconfigured with 8000 on the outside pointing toward 8000 on the inside and into 22. Once more it was possible to ssh

[sage-support] Re: Sage installation on windows : browser cannot connect

2012-05-09 Thread Jean-Pierre Flori
And I think that the port 8000 was dysfunctional because some service already listened on that port (I don't have the computer at hand anymore so cannot check...) as suggested by this result from a simple google query: http://superuser.com/questions/360236/why-is-system-listening-on-port-8000

[sage-support] Re: Sage installation on windows : browser cannot connect

2012-05-09 Thread Jean-Pierre Flori
On Wednesday, May 9, 2012 4:40:32 PM UTC+2, Volker Braun wrote: On Wednesday, May 9, 2012 10:33:22 AM UTC-4, Jean-Pierre Flori wrote: http://superuser.com/questions/360236/why-is-system-listening-on-port-8000 My money is on the following answer posted on the above ask page

Re: [sage-support] Re: Sage installation on windows : browser cannot connect

2012-04-18 Thread Jean-Pierre Flori
There is some Sage meeting this afternoon in Paris. I have a Windows 7 installation on my laptop, I'll give a VirtualBox installation a try, maybe I'll be more lucky than last time. That was particularly painful to have people ready to try Sage on their computer at a previous meeting, but being

[sage-support] Re: Sage installation on windows : browser cannot connect

2012-03-28 Thread Jean-Pierre Flori
I think I had the same problem although the VirtualBox port forwarding was correctly configured and I could not resolve it in the little time I had. My late conclusion was that maybe the Windows firewall is blocking the connection (even though it's a local one...) ? Could you try connecting to

[sage-support] Multicolor torus

2011-11-28 Thread Jean-Pierre Flori
Dear all, Is there any way to draw easily a 3D multicolor torus with Sage ? I.e. using parametric_plot3d and an equivalent of adaptive=True, color=rainbow(60, 'rgbtuple') options ? Cheers, JP -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group,

[sage-support] Python and SSL problem on Debian

2011-07-01 Thread Jean-Pierre Flori
Python was recently updated to not build with OpenSSL support on Debian, so I cannot build Sage anymore on my Debian Sid. http://packages.debian.org/changelogs/pool/main/p/python-defaults/python-defaults_2.6.6-14/changelog python2.6 (2.6.6-9) unstable; urgency=low * Build without OpenSSL v2

[sage-support] Re: Python and SSL problem on Debian

2011-07-01 Thread Jean-Pierre Flori
This is now #11561. On 1 juil, 10:59, Jean-Pierre Flori jpfl...@gmail.com wrote: Python was recently updated to not build with OpenSSL support on Debian, so I cannot build Sage anymore on my Debian Sid. http://packages.debian.org/changelogs/pool/main/p/python-defaults/pyt... python2.6 (2.6.6

[sage-support] Re: Python and SSL problem on Debian

2011-07-01 Thread Jean-Pierre Flori
And is nothing but a duplicate of #11447... Sorry for the noise. On 1 juil, 11:42, Jean-Pierre Flori jpfl...@gmail.com wrote: This is now #11561. On 1 juil, 10:59, Jean-Pierre Flori jpfl...@gmail.com wrote: Python was recently updated to not build with OpenSSL support on Debian, so

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-18 Thread Jean-Pierre Flori
This is now #11521. On 16 juin, 17:13, Jean-Pierre Flori jpfl...@gmail.com wrote: The following piece of code also seems to leak memory. The problem seems to occur while resolving the action of ZZ on E. sage: K = GF(155,'t') sage: a = K.random_element() sage: while 1: :     E

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-16 Thread Jean-Pierre Flori
The following piece of code also seems to leak memory. The problem seems to occur while resolving the action of ZZ on E. sage: K = GF(155,'t') sage: a = K.random_element() sage: while 1: : E = EllipticCurve(j=a); P = E.random_point(); 2*P; On 16 juin, 02:51, Jean-Pierre Flori jpfl

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
Thanks a lot, I'll have a look at that. On 15 juin, 14:26, Alastair Irving alastair.irv...@sjc.ox.ac.uk wrote: On 14/06/2011 21:58, Jean-Pierre Flori wrote: On 14 juin, 08:44, Simon Kingsimon.k...@uni-jena.de  wrote: Since sage-nt seems to agree that it is a bug, I opened trac ticket

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
S the memleak seems to be located within creation or rather coercing to MPolynomial_libsingular. Calling gc.collect() whithin the loop seem to fix or are least attenuate the problem. However, calling afterwards does not free memory back. On 15 juin, 14:29, Jean-Pierre Flori jpfl...@gmail.com

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
I finally found the memleak in different si2sa_* functions in sage.libs.singular.singular and provided a fix on Trac. On 15 juin, 21:50, Jean-Pierre Flori jpfl...@gmail.com wrote: S the memleak seems to be located within creation or rather coercing to MPolynomial_libsingular. Calling

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
But theres another memleak in the roots method of polynomial_zzpex... On 16 juin, 00:09, Jean-Pierre Flori jpfl...@gmail.com wrote: I finally found the memleak in different si2sa_* functions in sage.libs.singular.singular and provided a fix on Trac. On 15 juin, 21:50, Jean-Pierre Flori jpfl

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
Which seems to come from list() method. On 16 juin, 00:09, Jean-Pierre Flori jpfl...@gmail.com wrote: I finally found the memleak in different si2sa_* functions in sage.libs.singular.singular and provided a fix on Trac. On 15 juin, 21:50, Jean-Pierre Flori jpfl...@gmail.com wrote: S

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
and from ZZ_pE_c_to_list function On 16 juin, 01:18, Jean-Pierre Flori jpfl...@gmail.com wrote: Which seems to come from list() method. On 16 juin, 00:09, Jean-Pierre Flori jpfl...@gmail.com wrote: I finally found the memleak in different si2sa_* functions

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
Ok so the memleak comes from ZZ_pE_to_ZZ_pX in c_lib/src/ntl_wrap.cpp It should have been fixed by trac #1092, but has been reverted by commit 8503. I'll reopen #1092. On 16 juin, 02:07, Jean-Pierre Flori jpfl...@gmail.com wrote: and from ZZ_pE_c_to_list function On 16 juin, 01:18, Jean-Pierre

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
this is now 11495 On 16 juin, 02:46, Jean-Pierre Flori jpfl...@gmail.com wrote: Ok so the memleak comes from ZZ_pE_to_ZZ_pX in c_lib/src/ntl_wrap.cpp It should have been fixed by trac #1092, but has been reverted by commit 8503. I'll reopen #1092. On 16 juin, 02:07, Jean-Pierre Flori jpfl

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-14 Thread Jean-Pierre Flori
On 14 juin, 08:44, Simon King simon.k...@uni-jena.de wrote: Since sage-nt seems to agree that it is a bug, I opened trac ticket #11474. Good ! About the original memleak, I tried looking at how EllipticCurves_finite_field (maybe not correct name) are created but could not find anything fishy,

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-13 Thread Jean-Pierre Flori
, Jean-Pierre Flori jpfl...@gmail.com wrote: Using the following piece of code makes the memory footprint of sage grow indefinitely: I just noticed that elliptic curves are instances of sage.structure.parent.Parent, but violate the unique parent assumption: sage: K = GF(150,'t') sage: j

[sage-support] Re: Maxima problem?

2011-06-10 Thread Jean-Pierre Flori
FYI, the interface to Maxima changed in 4.7.1.alpha0 IIRC, so you could also try one of the more recent alphas available at: http://sage.math.washington.edu/home/release/ The things with MARKER are not involved in that new interface. On 10 juin, 08:34, NigelSmart ni...@cs.bris.ac.uk wrote: Hi

[sage-support] Memleak when deleting elliptic curve over finite field ?

2011-06-08 Thread Jean-Pierre Flori
Dear all, Using the following piece of code makes the memory footprint of sage grow indefinitely: sage: K = GF(150,'t') sage: j = K.random_element() sage: while 1: :E = EllipticCurve(j=j) :del E : This seems to be less dramatic with finite fields of char != 2 and inexistant

[sage-support] Segfault while creating finite field homomorphism

2011-05-27 Thread Jean-Pierre Flori
On my computer I get a segfault just doing : -- | Sage Version 4.7.rc1, Release Date: 2011-04-30 | | Type notebook() for the GUI, and license() for information.|

[sage-support] Segfault while inverting q-adic number with fixed modulus precision

2011-05-27 Thread Jean-Pierre Flori
sage: R.t = Zq(8,2,'fixed-mod') sage: 1/t (t^2 + 1) + (t^2 + 1)*2 + O(2^2) sage: 1/(t+t^2) /home/jp/boulot/sage/sage-4.7.rc1/local/lib/libcsage.so(print_backtrace +0x31)[0x7f3d2a9afdf2] /home/jp/boulot/sage/sage-4.7.rc1/local/lib/libcsage.so(sigdie+0x14) [0x7f3d2a9afe24]

[sage-support] Re: Segfault while creating finite field homomorphism

2011-05-27 Thread Jean-Pierre Flori
I'll take care of it with a fix hopefully. The value 16 is of course related to FF implementation. From 16 it uses NTL and GF2X. There's something nasty occuring in charpoly() or deeper. On 27 mai, 14:27, Simon King simon.k...@uni-jena.de wrote: Hi Jean-Pierre, On 27 Mai, 14:08, Jean-Pierre

[sage-support] Re: Segfault while creating finite field homomorphism

2011-05-27 Thread Jean-Pierre Flori
Mai, 14:31, Jean-Pierre Flori jpfl...@gmail.com wrote: I'll take care of it with a fix hopefully. It turns out that the error occurs in the list() method of a homset, which starts with sage: K = GF(116,'a'); L = GF(132,'b') sage: self = K.Hom(L) sage: D = self.domain() sage: C

[sage-support] Re: Segfault while creating finite field homomorphism

2011-05-27 Thread Jean-Pierre Flori
Adding (FiniteField_ntl_gf2eself._parent).F.restore() before calling cdef GF2X_c r = GF2X_IrredPolyMod(GF2E_rep(self.x),GF2E_modulus()) fixes everything. Not sure yet why it does not get called before in that situation... On 27 mai, 15:03, Jean-Pierre Flori jpfl...@gmail.com wrote

[sage-support] Re: Segfault while creating finite field homomorphism

2011-05-27 Thread Jean-Pierre Flori
and a doctest hoping that someone with a better understanding of ntl and gf2x will confirm that it is ok or provide a correct fix. Cheers, On 27 mai, 15:22, Jean-Pierre Flori jpfl...@gmail.com wrote: Adding         (FiniteField_ntl_gf2eself._parent).F.restore() before calling cdef GF2X_c r

[sage-support] Re: Segfault while creating finite field homomorphism

2011-05-27 Thread Jean-Pierre Flori
This is now Trac #11390. On 27 mai, 15:41, Jean-Pierre Flori jpfl...@gmail.com wrote: I must admit that I do not know what that method call exactly does, but calling it resolve the mentionned bug. Moreover it is called in different places all over the file in a similar manner so I have

[sage-support] var() function behavior changes when calculus.py is imported

2011-01-18 Thread Jean-Pierre Flori
When from sage.calculus.calculus import * is executed, the default var() function from sage.calculus.var (L4) gets replaced by another one from sage.symbolic.ring (L506). There is indeed an import made in sage.calculus.calculus (L370). However, the behavior of var() changes afterward because

[sage-support] Re: var() function behavior changes when calculus.py is imported

2011-01-18 Thread Jean-Pierre Flori
Hi, Huh.  Can I ask where one would import * from sage.calculus.calculus? In my badly written code. I wanted to call symbolic_sum which is not reachable by default, rather than sum when doing some tests. Cheers, JP -- To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Re: var() function behavior changes when calculus.py is imported

2011-01-18 Thread Jean-Pierre Flori
I see.  Why not just import that one function, in that case?  That is a very natural thing to do.  Only import a whole namespace if you really have to - it can really mess things up, as you have pointed out. I'm aware of that, that piece of code was stupid because I was lazy when I wrote that.

[sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-29 Thread Jean-Pierre Flori
error: gcc: gl/lib/strnlen.o: No such file or directory Replacing patch source code by the latest alpha from ftp://alpha.gnu.org/gnu/patch/ solved the issue. On 19 nov, 18:18, Jean-Pierre Flori jpfl...@gmail.com wrote: Hi, Everything runs fine now (after fighting with nfs). I've even built

[sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-19 Thread Jean-Pierre Flori
Hi, Everything runs fine now (after fighting with nfs). I've even built the new maxima and ecl, patched everything (one hunk failed, looked at it, it must be a test which has benn added after 4.5.1 release...) I'm now trying to run doctests of interfaces/maxima.py. I'll run it on the Sunblade

[sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-18 Thread Jean-Pierre Flori
Hi, Can you send me the output of $ gcc -v $ gfortran -v $ command -v gcc $ cmmand -v gfortran on your system. Here it is: bash-3.00$ gcc -v Reading specs from /usr/local/packages/gcc3/bin/../lib/gcc/sparc-sun- solaris2.10/3.4.3/specs Configured with:

[sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-18 Thread Jean-Pierre Flori
You were right, there is something wrong with the libgfortran file under SAGE_ROOT/local/lib/ . It was a symlink to ./../lib/libgfortran.so, strange. Sage is working with the libraries you posted above. Thanks ! -- To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Sage Solaris binary distribution and libgfortran

2010-11-17 Thread Jean-Pierre Flori
Hi, I unpacked Sage 4.5.1 binaries on Solaris, but when I try to launch Sage, it complains about missing libgfortran: ImportError: ld.so.1: python: fatal: libgfortran.so.3: open failed: No such file or directory I searched a bit and found something which looks related here:

[sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-17 Thread Jean-Pierre Flori
Thanks for taking care of this ! I was just trying to run tests on Solaris for the next Ecl and Maxima spgk's... I'll try downlaoding your lib tomorrow, I'm not at work right now and am too tired to ssh and etc... Just one point: we've got a quite recent gcc installed on our Solaris, I'd say

[sage-support] Re: Segfault when printing a copy of symbolic object

2010-10-08 Thread Jean-Pierre Flori
I can confirm it fixes the bug, I'll add myself as a reviewer on Trac. If I understand correctly, originally, __copy__ function of element.pyx calls Expression.__new__(Expression) which should call an __init__ function (without argument ? but I don't know which ?) so _gobj is not initialized.

[sage-support] Re: Segfault when printing a copy of symbolic object

2010-10-07 Thread Jean-Pierre Flori
On 7 oct, 01:36, Jason Grout jason-s...@creativetrax.com wrote: On 10/6/10 9:18 AM, Jean-Pierre Flori wrote: Sage segfaults when printing a copy of something symbolics : sage: copy(x) Unhandled SIGSEGV: A segmentation

[sage-support] Segfault when printing a copy of symbolic object

2010-10-06 Thread Jean-Pierre Flori
Sage segfaults when printing a copy of something symbolics : sage: copy(x) Unhandled SIGSEGV: A segmentation fault occurred in Sage. This probably occurred because a *compiled* component of Sage has a bug in it (typically accessing

[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-10-01 Thread Jean-Pierre Flori
Hi, Some remarks and questions... I guess the order you want is 'degrevlex' as Sage's default order for multivariate polynomial ring and as the name of your functions suggest. Am I wrong ? At present, I did not modify a lot of things. A few signs, replaced seq[0] by the smallest item of the

[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-29 Thread Jean-Pierre Flori
Ok, I have finally looked at the comparison functions and exchanging : cmpval = seq[0].coeff.compare(other.exponent); by cmpval = -seq[0].coeff.compare(other.exponent); in mul::compare_pow (mul.cpp:1265) seems to prevent the above bug from happening. It seems to fit better with the change made by

[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-29 Thread Jean-Pierre Flori
the above patch, that won't be necessary. Cheers, On 29 sep, 17:33, Burcin Erocal bur...@erocal.org wrote: Hi, On Wed, 29 Sep 2010 07:00:39 -0700 (PDT) Jean-Pierre Flori jpfl...@gmail.com wrote: Ok, I have finally looked at the comparison functions and exchanging : cmpval = seq[0

[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-29 Thread Jean-Pierre Flori
to do that. But if you'd better use the above patch, that won't be necessary. Cheers, On 29 sep, 17:33, Burcin Erocal bur...@erocal.org wrote: Hi, On Wed, 29 Sep 2010 07:00:39 -0700 (PDT) Jean-Pierre Flori jpfl...@gmail.com wrote: Ok, I have finally looked at the comparison

[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-29 Thread Jean-Pierre Flori
On 29 sep, 20:28, Burcin Erocal bur...@erocal.org wrote: On Wed, 29 Sep 2010 09:48:25 -0700 (PDT) Jean-Pierre Flori jpfl...@gmail.com wrote: Maybe it is a good thing to keep the same order as ginac internally and your more usual ordering for printing. It is good to keep the ginac

[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-12 Thread Jean-Pierre Flori
in both git repositories, but as I was going through the source code, I saw that numeric::do_print_csrc is defined in GiNaC but not in pynac. Regards, On 12 sep, 15:40, Burcin Erocal bur...@erocal.org wrote: Hi Jean-Pierre, On Thu, 9 Sep 2010 02:13:27 -0700 (PDT) Jean-Pierre Flori jpfl

[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-09 Thread Jean-Pierre Flori
*x or 2*x3*x. Handle with care! but that function is made to be used that way so... Moreover replacing it by expair_is_less do not change anything. However, something fishy is going on here. On 8 sep, 10:04, Jean-Pierre Flori jpfl...@gmail.com wrote: On 8 sep, 02:52, kcrisman kcris...@gmail.com

[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-08 Thread Jean-Pierre Flori
On 8 sep, 02:52, kcrisman kcris...@gmail.com wrote: On Sep 7, 5:26 pm, Burcin Erocal bur...@erocal.org wrote: Hi, Here is a short example to replicate the first error mentioned below: b = [var('b_%s'%i) for i in range(4)] precomp = (2^b_2 + 2)*(2^b_1 + 2^(-b_1) + 2^b_1*2^b_0 -

[sage-support] Problem doing symbolic computations (bug in Pynac ?)

2010-09-01 Thread Jean-Pierre Flori
for a such a great piece of software. Best regards, Jean-Pierre Flori -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage