I have the same problem I reported with 3.4.1.rc3: on an ubuntu box
(perhaps ubuntu 8.04?), Sage() seems broken, leading to failures in
randstate.pyx and sage0.py.
$ uname -a
Linux jpalmieri538 2.6.24-23-generic #1 SMP Wed Apr 1 21:47:28 UTC
2009 i686 GNU/Linux
I'm appending logs from the failures, plus a sample sage session
displaying some problems. What other information would help to track
this down?
John
sage -t "devel/sage/sage/misc/randstate.pyx"
**********************************************************************
File "/home/palmieri/Documents/sage-3.4.1.rc4-upgrade/devel/sage/sage/
misc/randstate.pyx", line 124:
: s = ZZ(subsage('initial_seed()'))
Exception raised:
Traceback (most recent call last):
File "/home/palmieri/Documents/sage-3.4.1.rc3/local/bin/
ncadoctest.py", line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/palmieri/Documents/sage-3.4.1.rc3/local/bin/
sagedoctest.py", line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example,
filename, compileflags)
File "/home/palmieri/Documents/sage-3.4.1.rc3/local/bin/
ncadoctest.py", line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_0[32]>", line 1, in <module>
s = ZZ(subsage('initial_seed()'))###line 124:
: s = ZZ(subsage('initial_seed()'))
File "parent.pyx", line 288, in
sage.structure.parent.Parent.__call__ (sage/structure/parent.c:4320)
File "coerce_maps.pyx", line 155, in
sage.structure.coerce_maps.NamedConvertMap._call_ (sage/structure/
coerce_maps.c:4225)
File "/home/palmieri/Documents/sage-3.4.1.rc4-upgrade/local/lib/
python2.5/site-packages/sage/interfaces/expect.py", line 1648, in
_integer_
return sage.rings.all.Integer(repr(self))
File "integer.pyx", line 517, in
sage.rings.integer.Integer.__init__ (sage/rings/integer.c:6446)
TypeError: unable to convert x
(=---------------------------------------------------------------------------
AttributeError Traceback (most recent
call last)
/home/palmieri/.sage/temp/jpalmieri538/15614/
_home_palmieri__sage_init_sage_0.py in <module>()
/home/palmieri/Documents/sage-3.4.1.rc4-upgrade/local/lib/
python2.5/site-packages/sage/misc/functional.pyc in gen(x)
353 Return the generator of x.
354 """
--> 355 return x.gen()
356
357 def gens(x):
AttributeError: 'int' object has no attribute 'gen') to an integer
**********************************************************************
File "/home/palmieri/Documents/sage-3.4.1.rc4-upgrade/devel/sage/sage/
misc/randstate.pyx", line 131:
: r == ZZ.random_element(2^200)
Expected:
True
Got:
False
**********************************************************************
1 items had failures:
2 of 62 in __main__.example_0
***Test Failed*** 2 failures.
sage -t "devel/sage/sage/interfaces/sage0.py"
**********************************************************************
File "/home/palmieri/Documents/sage-3.4.1.rc4-upgrade/devel/sage/sage/
interfaces/sage0.py", line 55:
sage: a^3
Expected:
8
Got:
<BLANKLINE>
**********************************************************************
File "/home/palmieri/Documents/sage-3.4.1.rc4-upgrade/devel/sage/sage/
interfaces/sage0.py", line 62:
sage: V.gens()
Expected:
((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1))
Got:
<BLANKLINE>
(and this one goes on for a while longer).
Here's an excerpt from a sage session, showing some similar problems.
sage: subsage = Sage()
sage: subsage
(2)
sage: subsage
('2')
2
sage: a = subsage
('2')
sage:
a^3
sage:
a
sage: subsage('initial_seed
()')
2
sage: subsage('initial_seed
()')
112766853689368064777514174538283835612
sage: ZZ(subsage('initial_seed
()'))
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/home/palmieri/.sage/temp/jpalmieri538/10361/
_home_palmieri__sage_init_sage_0.py in <module>()
/usr/local/share/sage/local/lib/python2.5/site-packages/sage/structure/
parent.so in sage.structure.parent.Parent.__call__ (sage/structure/
parent.c:4320)()
/usr/local/share/sage/local/lib/python2.5/site-packages/sage/structure/
coerce_maps.so in sage.structure.coerce_maps.NamedConvertMap._call_
(sage/structure/coerce_maps.c:4225)()
/usr/local/share/sage/local/lib/python2.5/site-packages/sage/
interfaces/expect.pyc in _integer_(self, ZZ)
1646 """
1647 import sage.rings.all
-> 1648 return sage.rings.all.Integer(repr(self))
1649
1650 def _rational_(self):
/usr/local/share/sage/local/lib/python2.5/site-packages/sage/rings/
integer.so in sage.rings.integer.Integer.__init__ (sage/rings/
integer.c:6446)()
TypeError: unable to convert x
(=---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
/home/palmieri/.sage/temp/jpalmieri538/10420/
_home_palmieri__sage_init_sage_0.py in <module>()
/usr/local/share/sage/local/lib/python2.5/site-packages/sage/misc/
functional.pyc in gen(x)
353 Return the generator of x.
354 """
--> 355 return x.gen()
356
357 def gens(x):
AttributeError: 'int' object has no attribute 'gen') to an integer