[sage-support] Re: Problem with git and trac server

2016-08-21 Thread 'Paul Mercat' via sage-support
In fact nothing is missing in your list of commit. I'm happy to see that.
What is missing is what appear in the ticket #21072 ( 
https://trac.sagemath.org/ticket/21072 )
The two last commits are here but not the two previous ones.

Thanks !
Paul

Le dimanche 21 août 2016 22:44:10 UTC+2, Volker Braun a écrit :
>
> Whats missing (i.e. what is your local "git log")?
>
> $ git log --graph trac/u/mercatp/b-adic 
> * commit 7d5ecbece755cb4d2642dc6373573426ba5a4b32
> | Author: Paul Mercat >
> | Date:   Sun Aug 21 16:02:26 2016 +0200
> | 
> | Add function zero_complete2() and zero_inv().
> |  
> * commit 15fc3f4a236270fc20f20b18a771479ce6ac4e8d
> | Author: Paul Mercat >
> | Date:   Sat Aug 20 22:21:31 2016 +0200
> | 
> | Correct compute_morceaux2() and equals_langages(), and improve 
> little things.
> |  
> * commit 1193353456f5853ba9c7bca9fe11fc6658389dc7
> | Author: Paul Mercat >
> | Date:   Sat Aug 20 17:57:42 2016 +0200
> | 
> | Add a function Approx() to BetaAdicMonoid that gives an 
> FastAutomaton describing a set that approximate a shape given by its 
> characteristic function.
> |  
> * commit d5698d8b7a2bf97cbab6e15fabc4af439aec4adc
> | Author: Paul Mercat >
> | Date:   Sat Aug 20 17:27:40 2016 +0200
> | 
> | Add function compute_translations2() (much more efficient, but have 
> to be debugged) and add a class ImageIn that permit to test if a point is 
> in an image. Correct a lot of little things.
> |  
> * commit 9bbf3e2730bd705860786a7a33d484b7cd87a8e5
> | Author: Paul Mercat >
> | Date:   Mon Aug 15 15:45:55 2016 +0200
> | 
> | Add a function that compute differently a list of translations for 
> the pieces exchange, and correct some little things.
> |  
> * commit f06b392336352cca8f825f81dc8646bc361d24d2
> | Author: Paul Mercat >
> | Date:   Sun Aug 14 11:31:15 2016 +0200
> | 
> | Correct little things.
> |  
>
>
> On Sunday, August 21, 2016 at 10:08:22 PM UTC+2, Paul Mercat wrote:
>>
>> Thank you for your answer.
>> Unfortunably, your link doesn't work.
>> Of course I've retried to push my changes. It says "Everything 
>> up-to-date" but the two commits that I've done before are not in the trac 
>> server.
>>
>> Paul
>>
>> Le dimanche 21 août 2016 16:34:21 UTC+2, leif a écrit :
>>>
>>> 'Paul Mercat' via sage-support wrote: 
>>> > Hi ! 
>>> > Yesterday or the day before, the trac server was not accessible (or 
>>> > really really slow). 
>>>
>>> Yesterday Dima installed updates and afterwards rebooted 
>>> trac.sagemath.org (aka git.sagemath.org). 
>>>
>>>
>>> > And when I tried to save my work on the sage code source, 
>>> > using the command "git push trac HEAD:u/mercatp/b-adic", 
>>> > it failed. And after that, git tells me that everything is up-to-date, 
>>> > but in fact the two commits that I tried to push when the trac server 
>>> > was not responsive doesn't appear to be on the trac server. 
>>> > How can I correct this problem ? 
>>>
>>> See the following thread on sage-devel: 
>>>
>>> http://permalink.gmane.org/gmane.comp.mathematics.sage.devel/88529 
>>> <http://www.google.com/url?q=http%3A%2F%2Fpermalink.gmane.org%2Fgmane.comp.mathematics.sage.devel%2F88529&sa=D&sntz=1&usg=AFQjCNHRNngZGjKHBkYDhXcrS1kSjb95uQ>
>>>  
>>>
>>>
>>> So I think you can simply retry pushing your changes. 
>>>
>>>
>>> -leif 
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Problem with git and trac server

2016-08-21 Thread &#x27;Paul Mercat&#x27; via sage-support
Thank you for your answer.
Unfortunably, your link doesn't work.
Of course I've retried to push my changes. It says "Everything up-to-date" 
but the two commits that I've done before are not in the trac server.

Paul

Le dimanche 21 août 2016 16:34:21 UTC+2, leif a écrit :
>
> 'Paul Mercat' via sage-support wrote: 
> > Hi ! 
> > Yesterday or the day before, the trac server was not accessible (or 
> > really really slow). 
>
> Yesterday Dima installed updates and afterwards rebooted 
> trac.sagemath.org (aka git.sagemath.org). 
>
>
> > And when I tried to save my work on the sage code source, 
> > using the command "git push trac HEAD:u/mercatp/b-adic", 
> > it failed. And after that, git tells me that everything is up-to-date, 
> > but in fact the two commits that I tried to push when the trac server 
> > was not responsive doesn't appear to be on the trac server. 
> > How can I correct this problem ? 
>
> See the following thread on sage-devel: 
>
> http://permalink.gmane.org/gmane.comp.mathematics.sage.devel/88529 
> <http://www.google.com/url?q=http%3A%2F%2Fpermalink.gmane.org%2Fgmane.comp.mathematics.sage.devel%2F88529&sa=D&sntz=1&usg=AFQjCNHRNngZGjKHBkYDhXcrS1kSjb95uQ>
>  
>
>
> So I think you can simply retry pushing your changes. 
>
>
> -leif 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Problem with git and trac server

2016-08-21 Thread &#x27;Paul Mercat&#x27; via sage-support
Hi !
Yesterday or the day before, the trac server was not accessible (or really 
really slow).
And when I tried to save my work on the sage code source,
using the command "git push trac HEAD:u/mercatp/b-adic",
it failed. And after that, git tells me that everything is up-to-date,
but in fact the two commits that I tried to push when the trac server was 
not responsive doesn't appear to be on the trac server.
How can I correct this problem ?
Paul

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: sage-6.3-x86_64-Darwin-OSX_10.6_x86_64-app.dmg won't be built?

2014-08-21 Thread &#x27;Paul Mercat&#x27; via sage-support
I have an OS X 10.6 computer and I know how to compile sage. I you tell me how 
to do I can provide you the binaries of the last version of sage.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: problem with sig_on() and sig_off()

2014-08-17 Thread &#x27;Paul Mercat&#x27; via sage-support
Thank you very much, it works !

Paul

Le dimanche 17 août 2014 22:46:17 UTC+2, Nathann Cohen a écrit :
>
> That's because you need to explicitly import/define sig_on and sig_off. I 
> guess that this is done automatically when the extension is .spyx.
>
> In the file sage/graphs/cliquer.pyx it is done with the line :
>
> include "sage/ext/interrupt.pxi"
>
> Nathann
>
> On Sunday, August 17, 2014 10:11:48 PM UTC+2, Paul Mercat wrote:
>>
>> Hi !
>>
>> I have writed some C code that I've integrated to sage using a .spyx 
>> file, and it work well.
>> But when I put it in the sage source code and replace the .spyx extension 
>> by .pyx, the functions sig_on() and sig_off() doesn't work anymore (if I 
>> avoid them, it works well).
>> I get the following error :
>> {{{
>> sage/combinat/words/cautomata.pyx:364:14: undeclared name not builtin: 
>> sig_on
>> }}}
>> Do you know why there is this error and how to fix it ?
>>
>> Thanks,
>> Paul
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: partitioned graphs in Sage?

2014-08-17 Thread &#x27;Paul Mercat&#x27; via sage-support
I think that the dot utility (from GraphViz) is able to do that.
This tool is not inclued in sage I think (I have inclued it in sage only 
for myself at this time), but there is a way to produce a input file for 
dot, from a DiGraph.
Probably you will have to convert it by hand into the dot language to do 
what you want.

Paul

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] problem with sig_on() and sig_off()

2014-08-17 Thread &#x27;Paul Mercat&#x27; via sage-support
Hi !

I have writed some C code that I've integrated to sage using a .spyx file, 
and it work well.
But when I put it in the sage source code and replace the .spyx extension 
by .pyx, the functions sig_on() and sig_off() doesn't work anymore (if I 
avoid them, it works well).
I get the following error :
{{{
sage/combinat/words/cautomata.pyx:364:14: undeclared name not builtin: 
sig_on
}}}
Do you know why there is this error and how to fix it ?

Thanks,
Paul

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Problems modifying sage 6.2 source code

2014-07-27 Thread &#x27;Paul Mercat&#x27; via sage-support
Thank you.
In fact I didn't have git installed in my computer.
I will retry following the steps given in the developper guide, using git.
I didn't know that the way you commit/push/pull/etc.. has changed since the 
last version of sage.
I hope it will not change for each version of sage, because it wastes me 
time to re-learn how to contribute to sage...

Le dimanche 27 juillet 2014 19:24:57 UTC+2, Volker Braun a écrit :
>
> That is a git conflict marker. "git status" will tell you that you are 
> supposed to resolve the conflict.
>
>
>
> On Sunday, July 27, 2014 11:30:59 AM UTC-4, Paul Mercat wrote:
>>
>> Hello,
>>
>> I have developped some tools that works well with several versions of 
>> sage, but it doesn't work well with sage 6.2.
>> When I try to modify the file sage/combinat/words/morphism.py, I get the 
>> following error :
>>
>> iMac-de-Paul-Mercat:sage-6.2 mercat$ ./sage -n
>> ┌┐
>> │ Sage Version 6.2, Release Date: 2014-05-06 │
>> │ Type "notebook()" for the browser-based notebook interface.│
>> │ Type "help()" for help.│
>> └┘
>>
>> Please wait while the Sage Notebook server starts...
>> Traceback (most recent call last):
>>   File "/Applications/sage-6.2/src/bin/sage-notebook", line 9, in 
>> from sage.all import *
>>   File 
>> "/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/all.py", 
>> line 103, in 
>> import sage.symbolic.pynac
>>   File "pynac.pyx", line 2269, in init sage.symbolic.pynac 
>> (sage/symbolic/pynac.cpp:23271)
>>   File "pynac.pyx", line 2163, in sage.symbolic.pynac.init_pynac_I 
>> (sage/symbolic/pynac.cpp:20350)
>>   File 
>> "/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.py",
>>  
>> line 739, in QuadraticField
>> return NumberField(f, name, check=False, embedding=embedding, 
>> latex_name=latex_name, **args)
>>   File 
>> "/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.py",
>>  
>> line 461, in NumberField
>> assume_disc_small=assume_disc_small, 
>> maximize_at_primes=maximize_at_primes)
>>   File 
>> "/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.py",
>>  
>> line 9120, in __init__
>> self._standard_embedding = CDF.has_coerce_map_from(self) and 
>> CDF(rootD).imag() > 0
>>   File "complex_double.pyx", line 336, in 
>> sage.rings.complex_double.ComplexDoubleField_class.__call__ 
>> (sage/rings/complex_double.c:4633)
>>   File "parent.pyx", line 1070, in sage.structure.parent.Parent.__call__ 
>> (sage/structure/parent.c:8858)
>>   File "map.pyx", line 1604, in 
>> sage.categories.map.FormalCompositeMap._call_ (sage/categories/map.c:8852)
>>   File "number_field_morphisms.pyx", line 135, in 
>> sage.rings.number_field.number_field_morphisms.NumberFieldEmbedding._call_ 
>> (sage/rings/number_field/number_field_morphisms.c:2889)
>>   File "polynomial_rational_flint.pyx", line 491, in 
>> sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.__call__
>>  
>> (sage/rings/polynomial/polynomial_rational_flint.cpp:7981)
>>   File "polynomial_element.pyx", line 657, in 
>> sage.rings.polynomial.polynomial_element.Polynomial.__call__ 
>> (sage/rings/polynomial/polynomial_element.c:8264)
>>   File "element.pyx", line 806, in 
>> sage.structure.element.Element.__nonzero__ (sage/structure/element.c:7908)
>>   File "real_lazy.pyx", line 667, in 
>> sage.rings.real_lazy.LazyFieldElement.__richcmp__ 
>> (sage/rings/real_lazy.c:7836)
>>   File "element.pyx", line 902, in 
>> sage.structure.element.Element._richcmp (sage/structure/element.c:9316)
>>   File "element.pyx", line 949, in 
>> sage.structure.element.Element._richcmp_c_impl 
>> (sage/structure/element.c:9645)
>>   File "real_lazy.pyx", line 655, in 
>> sage.rings.real_lazy.LazyFieldElement._cmp_c_impl 
>> (sage/rings/real_lazy.c:7739)
>>   File "real_lazy.pyx", line 738, in 
>> sage.rings.real_lazy.LazyFieldElement.approx (sage/rings/real_lazy.c:8383)
>>   File "real_lazy.pyx", line 1626, in 
>> sage.rings.real_lazy.LazyAlgebraic.eval (sage/rings/real_lazy.c:15292)
>>   File "polynomial_element.pyx", line 5737, in 
>> sage.rings.polynomial.polynomial_element.Polynomial.roots 
>> (sage/rings/polynomial/polynomial_element.c:37505)
>>   File 
>> "/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/rings/polynomial/complex_roots.py",
>>  
>> line 349, in complex_roots
>> factors = p.squarefree_decomposition()
>>   File "polynomial_element.pyx", line 1332, in 
>> sage.rings.polynomial.polynomial_element.Polynomial.squarefree_decomposition 
>> (sage/rings/polynomial/polynomial_element.c:14176)
>>   File 
>> "/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/structure/factorization.py",
>>  
>> line 305, in _

[sage-support] Problems modifying sage 6.2 source code

2014-07-27 Thread &#x27;Paul Mercat&#x27; via sage-support
Hello,

I have developped some tools that works well with several versions of sage, 
but it doesn't work well with sage 6.2.
When I try to modify the file sage/combinat/words/morphism.py, I get the 
following error :

iMac-de-Paul-Mercat:sage-6.2 mercat$ ./sage -n
┌┐
│ Sage Version 6.2, Release Date: 2014-05-06 │
│ Type "notebook()" for the browser-based notebook interface.│
│ Type "help()" for help.│
└┘

Please wait while the Sage Notebook server starts...
Traceback (most recent call last):
  File "/Applications/sage-6.2/src/bin/sage-notebook", line 9, in 
from sage.all import *
  File 
"/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/all.py", 
line 103, in 
import sage.symbolic.pynac
  File "pynac.pyx", line 2269, in init sage.symbolic.pynac 
(sage/symbolic/pynac.cpp:23271)
  File "pynac.pyx", line 2163, in sage.symbolic.pynac.init_pynac_I 
(sage/symbolic/pynac.cpp:20350)
  File 
"/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.py",
 
line 739, in QuadraticField
return NumberField(f, name, check=False, embedding=embedding, 
latex_name=latex_name, **args)
  File 
"/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.py",
 
line 461, in NumberField
assume_disc_small=assume_disc_small, 
maximize_at_primes=maximize_at_primes)
  File 
"/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.py",
 
line 9120, in __init__
self._standard_embedding = CDF.has_coerce_map_from(self) and 
CDF(rootD).imag() > 0
  File "complex_double.pyx", line 336, in 
sage.rings.complex_double.ComplexDoubleField_class.__call__ 
(sage/rings/complex_double.c:4633)
  File "parent.pyx", line 1070, in sage.structure.parent.Parent.__call__ 
(sage/structure/parent.c:8858)
  File "map.pyx", line 1604, in 
sage.categories.map.FormalCompositeMap._call_ (sage/categories/map.c:8852)
  File "number_field_morphisms.pyx", line 135, in 
sage.rings.number_field.number_field_morphisms.NumberFieldEmbedding._call_ 
(sage/rings/number_field/number_field_morphisms.c:2889)
  File "polynomial_rational_flint.pyx", line 491, in 
sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.__call__
 
(sage/rings/polynomial/polynomial_rational_flint.cpp:7981)
  File "polynomial_element.pyx", line 657, in 
sage.rings.polynomial.polynomial_element.Polynomial.__call__ 
(sage/rings/polynomial/polynomial_element.c:8264)
  File "element.pyx", line 806, in 
sage.structure.element.Element.__nonzero__ (sage/structure/element.c:7908)
  File "real_lazy.pyx", line 667, in 
sage.rings.real_lazy.LazyFieldElement.__richcmp__ 
(sage/rings/real_lazy.c:7836)
  File "element.pyx", line 902, in sage.structure.element.Element._richcmp 
(sage/structure/element.c:9316)
  File "element.pyx", line 949, in 
sage.structure.element.Element._richcmp_c_impl 
(sage/structure/element.c:9645)
  File "real_lazy.pyx", line 655, in 
sage.rings.real_lazy.LazyFieldElement._cmp_c_impl 
(sage/rings/real_lazy.c:7739)
  File "real_lazy.pyx", line 738, in 
sage.rings.real_lazy.LazyFieldElement.approx (sage/rings/real_lazy.c:8383)
  File "real_lazy.pyx", line 1626, in 
sage.rings.real_lazy.LazyAlgebraic.eval (sage/rings/real_lazy.c:15292)
  File "polynomial_element.pyx", line 5737, in 
sage.rings.polynomial.polynomial_element.Polynomial.roots 
(sage/rings/polynomial/polynomial_element.c:37505)
  File 
"/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/rings/polynomial/complex_roots.py",
 
line 349, in complex_roots
factors = p.squarefree_decomposition()
  File "polynomial_element.pyx", line 1332, in 
sage.rings.polynomial.polynomial_element.Polynomial.squarefree_decomposition 
(sage/rings/polynomial/polynomial_element.c:14176)
  File 
"/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/structure/factorization.py",
 
line 305, in __init__
self.__universe = Sequence(t[0] for t in x).universe()
  File 
"/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/structure/sequence.py",
 
line 289, in Sequence
from sage.rings.polynomial.pbori import BooleanMonomialMonoid
  File "pbori.pyx", line 215, in init sage.rings.polynomial.pbori 
(sage/rings/polynomial/pbori.cpp:59841)
  File 
"/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/monoids/__init__.py",
 
line 1, in 
import all
  File 
"/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/monoids/all.py", 
line 3, in 
from free_monoid import FreeMonoid, is_FreeMonoid
  File 
"/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/monoids/free_monoid.py",
 
line 39, in 
from sage.combinat.words.finite_word import FiniteWord_class
  File 
"/Applications/sage-6.2/local/lib/python2.7/site-packages/sage/comb