#17205: update ore_algebra package
-------------------------------------------------+-------------------------
       Reporter:  zieglerk                       |        Owner:
           Type:  defect                         |       Status:
       Priority:  major                          |  needs_review
      Component:  packages: optional             |    Milestone:  sage-6.4
       Keywords:  ImportError                    |   Resolution:
        Authors:  Karl-Dieter Crisman            |    Merged in:
Report Upstream:  Fixed upstream, in a later     |    Reviewers:  John
  stable release.                                |  Palmieri
         Branch:                                 |  Work issues:
   Dependencies:                                 |       Commit:
                                                 |     Stopgaps:
-------------------------------------------------+-------------------------
Changes (by {'newvalue': u'Karl-Dieter Crisman', 'oldvalue': ''}):

 * status:  new => needs_review
 * reviewer:   => John Palmieri
 * author:   => Karl-Dieter Crisman


Old description:

> After installing the ore_algebra-0.1 in Sage 6.3, the import as suggested
> in the [http://www.risc.jku.at/research/combinat/software/ore_algebra/
> documentation] fails.
> {{{
> sage: from ore_algebra import *
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call
> last)
> <ipython-input-1-27ab6e1c2b69> in <module>()
> ----> 1 from ore_algebra import *
>
> /home/zieglerk/local/share/sage/local/lib/python2.7/site-
> packages/ore_algebra/__init__.py in <module>()
>      12
>      13 from ore_algebra import OreAlgebra
> ---> 14 from guessing import guess, guess_raw
>      15
>      16 """
>
> /home/zieglerk/local/share/sage/local/lib/python2.7/site-
> packages/ore_algebra/guessing.py in <module>()
>      30 from sage.rings.integer_ring import ZZ
>      31 from sage.rings.rational_field import QQ
> ---> 32 from sage.rings.finite_rings.all import GF, is_FiniteField
>      33 from sage.matrix.constructor import Matrix, matrix
>      34 from sage.rings.arith import xgcd
>
> ImportError: cannot import name is_FiniteField
> }}}
>
> Similarly on !SageMathCloud running Sage 6.3.
> {{{
> from ore_algebra import *
> Error in lines 1-1
> Traceback (most recent call last):
>   File "/projects/9700d68d-
> 67c2-4a91-a689-c1d5b8b3f15e/.sagemathcloud/sage_server.py", line 841, in
> execute
>     exec compile(block+'\n', '', 'single') in namespace, locals
>   File "", line 1, in <module>
>   File "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-
> packages/ore_algebra/__init__.py", line 14, in <module>
>     from guessing import guess, guess_raw
>   File "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-
> packages/ore_algebra/guessing.py", line 32, in <module>
>     from sage.rings.finite_rings.all import GF, is_FiniteField
> ImportError: cannot import name is_FiniteField
> }}}

New description:

 After installing the ore_algebra-0.1 in Sage 6.3, the import as suggested
 in the [http://www.risc.jku.at/research/combinat/software/ore_algebra/
 documentation] fails.
 {{{
 sage: from ore_algebra import *
 ---------------------------------------------------------------------------
 ImportError                               Traceback (most recent call
 last)
 <ipython-input-1-27ab6e1c2b69> in <module>()
 ----> 1 from ore_algebra import *

 /home/zieglerk/local/share/sage/local/lib/python2.7/site-
 packages/ore_algebra/__init__.py in <module>()
      12
      13 from ore_algebra import OreAlgebra
 ---> 14 from guessing import guess, guess_raw
      15
      16 """

 /home/zieglerk/local/share/sage/local/lib/python2.7/site-
 packages/ore_algebra/guessing.py in <module>()
      30 from sage.rings.integer_ring import ZZ
      31 from sage.rings.rational_field import QQ
 ---> 32 from sage.rings.finite_rings.all import GF, is_FiniteField
      33 from sage.matrix.constructor import Matrix, matrix
      34 from sage.rings.arith import xgcd

 ImportError: cannot import name is_FiniteField
 }}}

 Similarly on !SageMathCloud running Sage 6.3.
 {{{
 from ore_algebra import *
 Error in lines 1-1
 Traceback (most recent call last):
   File "/projects/9700d68d-
 67c2-4a91-a689-c1d5b8b3f15e/.sagemathcloud/sage_server.py", line 841, in
 execute
     exec compile(block+'\n', '', 'single') in namespace, locals
   File "", line 1, in <module>
   File "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-
 packages/ore_algebra/__init__.py", line 14, in <module>
     from guessing import guess, guess_raw
   File "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-
 packages/ore_algebra/guessing.py", line 32, in <module>
     from sage.rings.finite_rings.all import GF, is_FiniteField
 ImportError: cannot import name is_FiniteField
 }}}

 -------

 New spkg:
 
http://www.risc.jku.at/research/combinat/software/ore_algebra/ore_algebra-0.2.spkg

 This should be copied to the mirrors. Since it is an old-style spkg, no
 modifications to Sage are needed.

--

Comment:

 So we should be able to solve this by upgrading to version 0.2. I took a
 look at 0.2, and it imports without breaking. Not everything works,
 though, and I wish it had functioning doctests or a functioning test
 suite, or both. A quick example, taken from the file `nullspace.py`:
 {{{
 sage: my_solver = cra(kronecker(gauss()))
 sage: A = MatrixSpace(ZZ['x', 'y'], 4, 5).random_element()
 sage: V = my_solver(A)
 }}}
 produces a `TypeError` for me (with Sage 6.5.beta0):
 {{{
 TypeError: x must be one of the generators of the parent.
 }}}
 Oh well. Let's upgrade on this ticket. Later on, we might consider
 changing this to a new-style spkg, but that can wait.

 Shall I give this a positive review?

--
Ticket URL: <http://trac.sagemath.org/ticket/17205#comment:4>
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