#16243: enable using GAP to compute galois_group
---------------------------------+------------------------
       Reporter:  dimpase        |        Owner:
           Type:  enhancement    |       Status:  new
       Priority:  major          |    Milestone:  sage-6.2
      Component:  number fields  |   Resolution:
       Keywords:                 |    Merged in:
        Authors:                 |    Reviewers:
Report Upstream:  N/A            |  Work issues:
         Branch:                 |       Commit:
   Dependencies:                 |     Stopgaps:
---------------------------------+------------------------

Comment (by dimpase):

 there is an old bug on the line 4377 of
 `sage/rings/number_field/number_field.py`
 {{{
 $ git annotate -L 4377,4377 src/sage/rings/number_field/number_field.py
 f46355fc        (  mabshoff     2008-11-22 19:03:57 -0800       4377)
 sage: NumberField(x^3 + 2*x + 1, 'a').galois_group(pari_group=False)    #
 optional - database_gap
 }}}

 and here is the error:
 {{{
 $ sage -bt --optional=sage,database_gap
 src/sage/rings/number_field/number_field.py
 ...
 sage -t src/sage/rings/number_field/number_field.py
 **********************************************************************
 File "src/sage/rings/number_field/number_field.py", line 4377, in
 sage.rings.number_field.number_field.NumberField_generic.galois_group
 Failed example:
     NumberField(x^3 + 2*x + 1, 'a').galois_group(pari_group=False)    #
 optional - database_gap
 Exception raised:
     Traceback (most recent call last):
       File "/usr/local/src/sage/sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 480, in _run
         self.execute(example, compiled, test.globs)
       File "/usr/local/src/sage/sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 839, in execute
         exec compiled in globs
       File "<doctest
 sage.rings.number_field.number_field.NumberField_generic.galois_group[13]>",
 line 1, in <module>
         NumberField(x**Integer(3) + Integer(2)*x + Integer(1),
 'a').galois_group(pari_group=False)    # optional - database_gap
       File "cachefunc.pyx", line 1591, in
 sage.misc.cachefunc.CachedMethodCaller.__call__
 (sage/misc/cachefunc.c:9194)
       File "cachefunc.pyx", line 2191, in
 sage.misc.cachefunc.CachedMethod._instance_call
 (sage/misc/cachefunc.c:11887)
     TypeError: galois_group() got an unexpected keyword argument
 'pari_group'
 **********************************************************************
 1 item had failures:
    1 of  20 in
 sage.rings.number_field.number_field.NumberField_generic.galois_group
     [1666 tests, 1 failure, 36.82 s]
 ----------------------------------------------------------------------
 sage -t src/sage/rings/number_field/number_field.py  # 1 doctest failed
 ----------------------------------------------------------------------
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/16243#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

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

Reply via email to