#10608: Generating polynomial rings over matrices hangs
------------------------------+---------------------------------------------
   Reporter:  spancratz       |       Owner:  was                   
       Type:  defect          |      Status:  needs_work            
   Priority:  major           |   Milestone:  sage-4.6.2            
  Component:  user interface  |    Keywords:  matrix polynomial ring
     Author:  spancratz       |    Upstream:  N/A                   
   Reviewer:  Aly Deines      |      Merged:                        
Work_issues:                  |  
------------------------------+---------------------------------------------
Changes (by aly.deines):

  * status:  new => needs_work
  * reviewer:  => Aly Deines


Comment:

 I got the following error on sage-4.6.1.rc1:

 rlm-book:sage-4.6.1.rc1 aly$ ./sage -t
 devel/sage/sage/matrix/matrix_space.py
 sage -t  "devel/sage/sage/matrix/matrix_space.py"
 **********************************************************************
 File
 "/Users/aly/Desktop/sage-4.6.1.rc1/devel/sage/sage/matrix/matrix_space.py",
 line 630:
     sage: R.<x> = MS[]
 Exception raised:
     Traceback (most recent call last):
       File "/Users/aly/Desktop/sage-4.6.1.rc1/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/Users/aly/Desktop/sage-4.6.1.rc1/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/Users/aly/Desktop/sage-4.6.1.rc1/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_14[6]>", line 1, in <module>
         R = MS['x']; (x,) = R._first_ngens(1)###line 630:
     sage: R.<x> = MS[]
       File "/Users/aly/Desktop/sage-4.6.1.rc1/local/lib/python/site-
 packages/sage/matrix/matrix_space.py", line 655, in __getitem__
         P = PolynomialRing(self, x)
       File "/Users/aly/Desktop/sage-4.6.1.rc1/local/lib/python/site-
 packages/sage/rings/polynomial/polynomial_ring_constructor.py", line 319,
 in PolynomialRing
         raise TypeError, 'base_ring must be a ring'
     TypeError: base_ring must be a ring
 **********************************************************************
 File
 "/Users/aly/Desktop/sage-4.6.1.rc1/devel/sage/sage/matrix/matrix_space.py",
 line 640:
     sage: MS[['t']]
 Exception raised:
     Traceback (most recent call last):
       File "/Users/aly/Desktop/sage-4.6.1.rc1/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/Users/aly/Desktop/sage-4.6.1.rc1/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/Users/aly/Desktop/sage-4.6.1.rc1/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_14[8]>", line 1, in <module>
         MS[['t']]###line 640:
     sage: MS[['t']]
       File "/Users/aly/Desktop/sage-4.6.1.rc1/local/lib/python/site-
 packages/sage/matrix/matrix_space.py", line 682, in __getitem__
         R = P(self, x)
       File "/Users/aly/Desktop/sage-4.6.1.rc1/local/lib/python/site-
 packages/sage/rings/power_series_ring.py", line 211, in PowerSeriesRing
         raise TypeError, "base_ring must be a commutative ring"
     TypeError: base_ring must be a commutative ring
 **********************************************************************
 1 items had failures:
    2 of   9 in __main__.example_14
 ***Test Failed*** 2 failures.
 For whitespace errors, see the file
 /Users/aly/.sage//tmp/.doctest_matrix_space.py
          [19.8 s]

 ----------------------------------------------------------------------
 The following tests failed:


         sage -t  "devel/sage/sage/matrix/matrix_space.py"
 Total time for all tests: 19.9 seconds

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10608#comment:1>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to