Re: [sage-devel] MemoryError when individually doctesting sage/combinat/tableau.py

2019-02-13 Thread Volker Braun
On Wednesday, February 13, 2019 at 5:33:38 PM UTC+1, Travis Scrimshaw wrote: > > My (complete) guess is that there are so many partitions of 50 (204226 to > be precise) and in such a tight for loop that the garbage collector does > not have enough time to actually collect the parents being create

Re: [sage-devel] MemoryError when individually doctesting sage/combinat/tableau.py

2019-02-13 Thread Steven Trogdon
One more thing. If I remove sage: StandardTableaux(50).cardinality() # long time then doctesting `tableary.py` with --long passes. On Wednesday, February 13, 2019 at 12:27:03 PM UTC-6, Steven Trogdon wrote: > > Assuming this is the correct thing to do, starting at line 7740, the >

Re: [sage-devel] MemoryError when individually doctesting sage/combinat/tableau.py

2019-02-13 Thread Steven Trogdon
Assuming this is the correct thing to do, starting at line 7740, the following sage: def cardinality_using_hook_formula(n): : import gc : c = 0 : for p in Partitions(n): : gc.collect() :

Re: [sage-devel] MemoryError when individually doctesting sage/combinat/tableau.py

2019-02-13 Thread Travis Scrimshaw
My (complete) guess is that there are so many partitions of 50 (204226 to be precise) and in such a tight for loop that the garbage collector does not have enough time to actually collect the parents being created and discarded. Maybe also other stuff in tableau.py built up is causing a memory

[sage-devel] Re: strange error message when raising an Error in cython()

2019-02-13 Thread Kwankyu Lee
This issue is discussed here: https://github.com/ipython/ipython/issues/6864 -- 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.c

Re: [sage-devel] strange error message when raising an Error in cython()

2019-02-13 Thread Jeroen Demeyer
You can ignore that "An unexpected error occurred while tokenizing input" message. It's IPython having trouble with the traceback, it has nothing to do with your Cython code. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from th

Re: [sage-devel] strange error message when raising an Error in cython()

2019-02-13 Thread jonathan.kliem via sage-devel
Is this normal behaviour? ERROR:root:An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line string', (1, 0)) I guess I can just do sage: cython(''' : c = 2 : try: : if c == 2: :

Re: [sage-devel] strange error message when raising an Error in cython()

2019-02-13 Thread Jeroen Demeyer
On 2019-02-13 11:02, jonathan.kliem via sage-devel wrote: I'm getting a strange error when raising an error in cython(), example: I don't really understand your problem. You ask Cython to raise an exception and the exception is raised. It seems like Cython is doing exactly what it's supposed

[sage-devel] strange error message when raising an Error in cython()

2019-02-13 Thread jonathan.kliem via sage-devel
I'm getting a strange error when raising an error in cython(), example: sage: cython(''' : c = 2 : if c == 2: : raise IndexError() : ''') ERROR:root:An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('E

[sage-devel] Re: Valgrind - how to?

2019-02-13 Thread Jean-Pierre Flori
On Wednesday, February 13, 2019 at 8:44:07 AM UTC+1, Simon King wrote: > > Hi again, > > On 2019-02-12, Simon King > wrote: > > If I recall correctly, valgrind would be able to report leaking memory. > > But how to use it in Sage? > > > > I guess `sage -i valgrind` is the first step. But the

Re: [sage-devel] Error copying files for gfortan-7.2.0

2019-02-13 Thread François Bissey
Can you send `config.log` please? François > On 13/02/2019, at 21:36, Andreas Hermann wrote: > > The output of ./configure FC=gfortran-8 says among other things > > checking SPKGs to install... > > gcc-7.2.0 not installed (configure check) > > gfortran-7.2.0 > > I have attached the

Re: [sage-devel] Error copying files for gfortan-7.2.0

2019-02-13 Thread Andreas Hermann
The output of ./configure FC=gfortran-8 says among other things checking SPKGs to install... gcc-7.2.0 not installed (configure check) gfortran-7.2.0 I have attached the full output in a file. -- You received this message because you are subscribed to the Google Groups "sage-devel" g