SAGE-2.5 (!)

9 views
Skip to first unread message

William Stein

unread,
May 9, 2007, 12:10:36 AM5/9/07
to sage-...@googlegroups.com, sage-a...@scipy.org
Hello,

SAGE-2.5 has been released! Yeah!

Here's a summary of changes and additions. If you build from source, do
"sage -upgrade" to upgrade now. Binaries for OS X, Linux, and Windows
will be available within a day at http://www.sagemath.org/. You can also
try sage-2.5 out now at http://www.sagenb.org or http://www.sagenb.com/.

* new packages:
- flintqs
- ipython-0.8.0 (w stein)
- maxima-5.12.0 (w stein)
- python-2.5.1 (y qiang) -- important bug fixes
- tachyon3d-0.98beta (w stein)
* m abshoff: cputime bugfix for cygwin; *many* build fixes
and improvements
* m albrecht: major new singular library mode interface for SAGE which
provides the world's fastest polynomial
arithmetic to SAGE (not
yet enabled by default!); *many* build fixes
and improvements
* r bradshaw: tons of polynomial and power series optimizations;
Coleman p-adic integration; Kedlaya for genus > 1
* t clemans: source browser bugfix
* p de napoli:fix some bugs in rationals and integers
* d deshomme: (refereed by r bradshaw and w stein) very good support
for Hida's quad-double field RQDF.
* w hart: quadratic sieve update (SAGE's qsieve command):
"It is MUCH faster,
especially for large factorizations, on account
of having implemented the
large prime variant. it will factor an 81 digit
number in under 30 minutes.
It is miles ahead of LiDIA, MAGMA and Pari, etc."
Another example: n =
next_prime(2^110)*next_prime(2^120) has these
times on 32-bit 2Ghz linux: qsieve (107s), PARI
(223s), Magma 2.13 (336s).
* d harvey: improvements, bug fixes.
* d kohel: quaternion algebra improvements
* r miller: graph theory bug fixes
* k minola: tmp file clean bugfix; misc build fixes.
* k minola, d joyner: updated the conway polynomial table
* y qiang: important dsage bug fixes; improved unit testing.
* w stein and b moretti: major new symbolic calculus functionality
* w stein: rewrite of SAGE/maxima interface.
* c witty: (refereed by n alexandar) a new algebraic reals field
(Qbar meet RR!). mpfr improvements

Hamptonio

unread,
May 9, 2007, 1:06:32 PM5/9/07
to sage-devel
Hi,

I have the following 'make test' failure for sage 2.5 on a PPC OS X
powerbook:

The following tests failed:
sage -t devel/sage-main/sage/libs/cf/cf.pyx
Total time for all tests: 4614.8 seconds

There are many errors about cf.pyx such as the following:

sage -t devel/sage-main/sage/libs/cf/cf.pyx
**********************************************************************
File "cf.pyx", line 126:
sage: cf.setBaseDomain(F)
Exception raised:
Traceback (most recent call last):
File "/Users/mh/sage-2.0/local/lib/python2.5/doctest.py", line
1212, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_0[1]>", line 1, in <module>
cf.setBaseDomain(F)###line 126:
sage: cf.setBaseDomain(F)
NameError: name 'cf' is not defined
**********************************************************************
File "cf.pyx", line 130:
sage: f == (cf.CF(y)**2-cf.CF(x)**9 - x)._sage_(R)
Exception raised:
Traceback (most recent call last):
File "/Users/mh/sage-2.0/local/lib/python2.5/doctest.py", line
1212, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_0[5]>", line 1, in <module>
f == (cf.CF(y)**Integer(2)-cf.CF(x)**Integer(9) -
x)._sage_(R)###line 130:
sage: f == (cf.CF(y)**2-cf.CF(x)**9 - x)._sage_(R)
NameError: name 'cf' is not defined
**********************************************************************

-Marshall Hampton

William Stein

unread,
May 9, 2007, 1:12:23 PM5/9/07
to sage-...@googlegroups.com
cf.pyx has been removed from sage-2.5, since it's no longer needed.
It should not be included in the sage-2.5 tarball. You might still have
it if you did an upgrade, merged in the new library, and kept cf.pyx.
You can safely just delete devel/sage-main/sage/libs/cf/cf.pyx


--
William Stein
Associate Professor of Mathematics
University of Washington
http://www.williamstein.org

David Harvey

unread,
May 9, 2007, 1:14:47 PM5/9/07
to sage-...@googlegroups.com

On May 9, 2007, at 1:06 PM, Hamptonio wrote:

>
> Hi,
>
> I have the following 'make test' failure for sage 2.5 on a PPC OS X
> powerbook:
>
> The following tests failed:
> sage -t devel/sage-main/sage/libs/cf/cf.pyx
> Total time for all tests: 4614.8 seconds

Ummm I just did a clean install of sage 2.5 on a powerpc OS X, and
the cf directory doesn't even exist.

david

Justin C. Walker

unread,
May 9, 2007, 1:19:52 PM5/9/07
to sage-...@googlegroups.com

On May 8, 2007, at 9:10 PM, William Stein wrote:

> Hello,
>
> SAGE-2.5 has been released! Yeah!

Great! The new stuff seems to be working well. SAGE is to the point
where it can be a valuable tool for a lot of people (other than
developers :-}).

I built 2.5 from scratch for Mac OS X (10.4.9) on both PowerPC (G5)
and Intel (Core Duo). On both, the build completed without complaint.

On Intel, 'make test' completed without error (in 1842 seconds).

On PowerPC/G5, most tests completed successfully. The ones that
didn't seem to be dsage/twisted issues (I haven't looked at the
details). That part of the log is appended.

Thoughts?

Justin

===================================================================
This script will run the unit tests for DSage
Running 52 tests.
sage.dsage.database.tests.test_clientdb
ClientDatabaseTestCase

testadd_user ... [
OK]

testdel_user ... [
OK]

testset_enabled ... [
OK]

testupdate_login_time ... [
OK]
sage.dsage.database.tests.test_job
JobTestCase

testcreate_job ... [
OK]

testjobCreationTime ... [
OK]

testjobFailures ... [
OK]

testjobFile ... [
OK]

testjobFinishTime ... [
OK]

testjobKilled ... [
OK]

testjobResult ... [
OK]

testjobStatus ... [
OK]

testjobUpdateTime ... [
OK]

testjob_id ... [
OK]
sage.dsage.database.tests.test_jobdb
DatabasePrunerTestCase

testclean_failed_jobs ... [
OK]

testclean_old_jobs ... [
OK]
JobDatabaseSQLiteTestCase

testcreate_jdict ... [
OK]

testget_job ... [
OK]

testget_job_by_id ... [
OK]

testget_killed_jobs_list ... [
OK]

testhas_job ... [
OK]

teststore_job ... [
OK]
JobDatabaseZODBTestCase

testget_active_jobs ... [
OK]

testget_job ... [
OK]

testget_jobs_by_username ... [
OK]

testget_jobs_list ... [
OK]

testget_next_job_id ... [
OK]

testhas_job ... [
OK]

testremove_job ... [
OK]

teststore_job ... [
OK]
sage.dsage.server.tests.test_server
DSageServerTestCase

testget_active_clients_list ... [
OK]

testget_active_jobs ... [
OK]

testget_all_jobs ... [
OK]

testget_job ... [
OK]

testget_job_by_id ... [
OK]

testget_job_result_by_id ... [
OK]

testget_jobs_by_username ... [
OK]

testget_killed_jobs_list ... [
OK]

testjob_done ... [
OK]

testjob_failed ... [
OK]

testkill_job ... [
OK]

testsubmit_job ... [
OK]
sage.dsage.twisted.tests.test_pubkeyauth
PublicKeyCredentialsCheckerTest

testBadLogin ... [
OK]

testBadLogin2 ... [
OK]

testBadLogin3 ... [
OK]

testLogin ... [
OK]
sage.dsage.twisted.tests.test_remote
ClientRemoteCallsTest

testremoteSubmitBadJob ... [
OK]

testremoteSubmitJob ... [
OK]
MonitorRemoteCallsTest

testget_killed_jobs_list ...
[ERROR]
[ERROR]

testremote_get_job ...
[ERROR]
[ERROR]

testremote_job_done ...
[ERROR]
[ERROR]

testremote_job_failed ...
[ERROR]
[ERROR]

========================================================================
=======
[ERROR]:
sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testget_kill
ed_jobs_list

Traceback from remote host -- Traceback unavailable
========================================================================
=======
[ERROR]:
sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testget_kill
ed_jobs_list

Traceback (most recent call last):

File "/SandBox/Justin/sb/sage-2.5/local/lib/python2.5/site-
packages/sage/dsage/twisted/pb.py", line 420, in requestAvatar
avatar.attached(avatar, mind)
File "/SandBox/Justin/sb/sage-2.5/local/lib/python2.5/site-
packages/sage/dsage/twisted/pb.py", line 264, in attached
self.DSageServer.monitordb.add_monitor(self.host_info)
File "/SandBox/Justin/sb/sage-2.5/local/lib/python2.5/site-
packages/sage/dsage/database/monitordb.py", line 122, in add_monitor
cpu_model = host_info['cpu_model']
exceptions.KeyError: 'cpu_model'
========================================================================
=======
[ERROR]:
sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testremote_g
et_job

Traceback from remote host -- Traceback unavailable
========================================================================
=======
[ERROR]:
sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testremote_g
et_job

Traceback (most recent call last):

File "/SandBox/Justin/sb/sage-2.5/local/lib/python2.5/site-
packages/sage/dsage/twisted/pb.py", line 420, in requestAvatar
avatar.attached(avatar, mind)
File "/SandBox/Justin/sb/sage-2.5/local/lib/python2.5/site-
packages/sage/dsage/twisted/pb.py", line 264, in attached
self.DSageServer.monitordb.add_monitor(self.host_info)
File "/SandBox/Justin/sb/sage-2.5/local/lib/python2.5/site-
packages/sage/dsage/database/monitordb.py", line 122, in add_monitor
cpu_model = host_info['cpu_model']
exceptions.KeyError: 'cpu_model'
========================================================================
=======
[ERROR]:
sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testremote_j
ob_done

Traceback from remote host -- Traceback unavailable
========================================================================
=======
[ERROR]:
sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testremote_j
ob_done

Traceback (most recent call last):

File "/SandBox/Justin/sb/sage-2.5/local/lib/python2.5/site-
packages/sage/dsage/twisted/pb.py", line 420, in requestAvatar
avatar.attached(avatar, mind)
File "/SandBox/Justin/sb/sage-2.5/local/lib/python2.5/site-
packages/sage/dsage/twisted/pb.py", line 264, in attached
self.DSageServer.monitordb.add_monitor(self.host_info)
File "/SandBox/Justin/sb/sage-2.5/local/lib/python2.5/site-
packages/sage/dsage/database/monitordb.py", line 122, in add_monitor
cpu_model = host_info['cpu_model']
exceptions.KeyError: 'cpu_model'
========================================================================
=======
[ERROR]:
sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testremote_j
ob_failed

Traceback from remote host -- Traceback unavailable
========================================================================
=======
[ERROR]:
sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testremote_j
ob_failed

Traceback (most recent call last):

File "/SandBox/Justin/sb/sage-2.5/local/lib/python2.5/site-
packages/sage/dsage/twisted/pb.py", line 420, in requestAvatar
avatar.attached(avatar, mind)
File "/SandBox/Justin/sb/sage-2.5/local/lib/python2.5/site-
packages/sage/dsage/twisted/pb.py", line 264, in attached
self.DSageServer.monitordb.add_monitor(self.host_info)
File "/SandBox/Justin/sb/sage-2.5/local/lib/python2.5/site-
packages/sage/dsage/database/monitordb.py", line 122, in add_monitor
cpu_model = host_info['cpu_model']
exceptions.KeyError: 'cpu_model'
------------------------------------------------------------------------
-------
Ran 52 tests in 10.558s

FAILED (errors=8, successes=48)
However, an ERROR occurred in the Distributed SAGE unit tests.
===================================================================

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
-----------


Hamptonio

unread,
May 9, 2007, 2:38:12 PM5/9/07
to sage-devel
Yes, I was upgrading.

-MH

William Stein

unread,
May 9, 2007, 2:43:10 PM5/9/07
to sage-...@googlegroups.com
On 5/9/07, Justin C. Walker <jus...@mac.com> wrote:
> On PowerPC/G5, most tests completed successfully. The ones that
> didn't seem to be dsage/twisted issues (I haven't looked at the
> details). That part of the log is appended.
>
> Thoughts?

The dsage developer (Yi) doesn't have access to a ppc mac. He
did create a patch for me at the last minute that might have fixed
the unit tests, but it was too late for inclusion in sage-2.5. It will
certainly be in sage-2.5.1. By the way, in the past make test didn't
run the dsage unit tests -- sage-2.5 is the first version to do this,
which is cool because it mostly guarantees that dsage will actually
work for people on a wider range of systems.

William

Yi Qiang

unread,
May 9, 2007, 4:07:13 PM5/9/07
to sage-...@googlegroups.com

On May 9, 2007, at 10:19 AM, Justin C. Walker wrote:
>
> On PowerPC/G5, most tests completed successfully. The ones that
> didn't seem to be dsage/twisted issues (I haven't looked at the
> details). That part of the log is appended.
>
> Thoughts?
Hi Justin,
Like William said, I don't have access to a OS X PPC box (maybe you
can help out there?) and apparently sysctl reports differently on OS
X. Here is a bundle that might fix this on PPC

http://sage.math.washington.edu/home/yqiang/dsage.hg

Please let me know if this resolves the issue on PPC.

Cheers,
Yi

--
http://www.yiqiang.net


didier deshommes

unread,
May 9, 2007, 4:40:02 PM5/9/07
to sage-...@googlegroups.com
On 5/9/07, William Stein <wst...@gmail.com> wrote:
> * new packages:
> - flintqs

I have not heard about flintqs for awhile and I'm curious about it.
Would the flintqs people care to explain how to use it from SAGE? Is
it for univariate polynomials over Q only? Will there be a talk about
it at SD4 :) ?

didier

David Harvey

unread,
May 9, 2007, 4:57:14 PM5/9/07
to sage-...@googlegroups.com

"flintqs" is Bill Hart's quadratic sieve code, as packaged for use in
SAGE. It's a routine for factoring huge integers. It's already
available in SAGE using the qsieve() function.

But this has nothing to do with univariate polynomials as such.

There is a larger project called FLINT, which has not yet been
released. Bill Hart and I are the authors. The quadratic sieve will
be a component, when it is released. The other component will be
univariate polynomial arithmetic over Z. (Not Q.)

Work on the polynomial arithmetic slowed down a while ago because we
both got distracted by other things. But recently we have found more
time, and development is coming along nicely.

I might be persuaded to do a short talk on the current state of FLINT
at SD4. I am also considering spending some time at SD4 on starting
to develop a patch to wrap the polynomial arithmetic in SAGE. I don't
expect it to be done by the end of SD4, but it might be feasible to
at least start getting a patch that I can maintain as FLINT matures,
until the time is ready to actually bring it into SAGE.

David

Justin C. Walker

unread,
May 9, 2007, 4:40:10 PM5/9/07
to sage-...@googlegroups.com

Thanks for the patch. I applied this on both my intel and PowerPC
systems, and re-ran sage-dsage-trial. 52 tests passed on both systems.

If you want me to try things out in the future, feel free to contact
me directly.

Justin

--
Justin C. Walker, Curmudgeon-at-Large
() The ASCII Ribbon Campaign
/\ Help Cure HTML Email

mabshoff

unread,
May 10, 2007, 3:43:02 PM5/10/07
to sage-devel
> Thanks for the patch. I applied this on both my intel and PowerPC
> systems, and re-ran sage-dsage-trial. 52 tests passed on both systems.

Hello,

>
> If you want me to try things out in the future, feel free to contact
> me directly.
>

I wanted to try 2.5.0 on cygwin because I saw that there was also some
cygwin specific update in "tip" since 2.5.0. But after unpacking the
"official" binary I got the following:

Administrator@sprocket /sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1
$ ./sage
----------------------------------------------------------------------
| SAGE Version 2.5, Release Date: 2007-05-08 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
The SAGE install tree may have moved.
Regenerating Python.pyo and .pyc files that hardcode the install PATH
(please wa
it less than a minute)...

---------------------------------------------------------------------------
<type 'exceptions.ImportError'> Traceback (most recent call
last)

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/bin/<ipython
console> in <m
odule>()

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/lib/python2.5/
site-packages
/sage/all_cmdline.py in <module>()
3 try:
4
----> 5 from sage.all import *
6
7 except ValueError, msg:

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/lib/python2.5/
site-packages
/sage/all.py in <module>()
52
53 from sage.libs.all import *
---> 54 from sage.rings.all import *
55 from sage.matrix.all import *
56

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/lib/python2.5/
site-packages
/sage/rings/all.py in <module>()
146 from bernoulli_mod_p import bernoulli_mod_p
147
--> 148 from morphism import is_RingHomomorphism
149
150 from homset import is_RingHomset

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/lib/python2.5/
site-packages
/sage/rings/morphism.py in <module>()
308
#***********************************************************************
******
309
--> 310 from sage.categories.all import Morphism, is_Homset, Sets
311 import ideal
312

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/lib/python2.5/
site-packages
/sage/categories/all.py in <module>()
2 Elements,
3 Sequences,
4 Objects,
5 Sets,
6 GSets,

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/lib/python2.5/
site-packages
/sage/categories/category.py in <module>()
58 import weakref
59 import sage.rings.all
---> 60 import sage.algebras.all
61 from sage.misc.latex import latex
62 from sage.structure.sage_object import SageObject

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/lib/python2.5/
site-packages
/sage/algebras/all.py in <module>()
26
27 from free_algebra import FreeAlgebra, is_FreeAlgebra
---> 28 from free_algebra_quotient import FreeAlgebraQuotient
29 from quaternion_algebra import (QuaternionAlgebra,
QuaternionAlgebraWith
InnerProduct,
30 QuaternionAlgebraWithGramMatrix,
QuaternionAlgebraWithDiscriminants
,

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/lib/python2.5/
site-packages
/sage/algebras/free_algebra_quotient.py in <module>()
34
35 from sage.rings.integer import Integer
---> 36 from sage.modules.free_module import FreeModule
37 from sage.monoids.free_monoid import FreeMonoid
38 from sage.monoids.free_monoid_element import FreeMonoidElement

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/lib/python2.5/
site-packages
/sage/modules/free_module.py in <module>()
115 import sage.rings.integer
116 import sage.structure.parent_gens as gens
--> 117 import sage.modules.real_double_vector
118 import sage.modules.complex_double_vector
119 from sage.structure.sequence import Sequence

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/bin/
complex_double_vector.p
xd in real_double_vector()

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/bin/
complex_double_vector.p
yx in complex_double_vector()

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/lib/python2.5/
site-packages
/numpy/__init__.py in <module>()
38 import lib
39 from lib import *
---> 40 import linalg
41 import fft
42 import random

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/lib/python2.5/
site-packages
/numpy/linalg/__init__.py in <module>()
2 from info import __doc__
3
----> 4 from linalg import *
5
6 def test(level=1, verbosity=1):

/sage-2.5-cygwin-ms_windows-i686-CYGWIN_NT-5.1/local/lib/python2.5/
site-packages
/numpy/linalg/linalg.py in <module>()
23 isfinite
24 from numpy.lib import triu
---> 25 from numpy.linalg import lapack_lite
26
27 fortran_int = intc

<type 'exceptions.ImportError'>: No such file or directory
sage:

This is a Win 2K box, i.e. CYGWIN_NT-5.0, but that shouldn't make a
difference. Any ideas?

> Justin
>

Cheers,

Michael

William Stein

unread,
May 10, 2007, 5:58:23 PM5/10/07
to sage-...@googlegroups.com
The lapack Cygwin package is a prerequisite for using
the SAGE binary on Windows. Do you have it installed?

mabshoff

unread,
May 11, 2007, 12:47:45 AM5/11/07
to sage-devel

On May 10, 11:58 pm, "William Stein" <wst...@gmail.com> wrote:
> The lapack Cygwin package is a prerequisite for using
> the SAGE binary on Windows. Do you have it installed?
>

No, I didn't and after the installation of said package sage starts.
It seems counterintuititve to me that the Lapack package also provides
a BLAS, but oh well. As you might remember I have build SAGE on cygwin
more than a couple times over the last two weeks and not had that kind
of problem because otherwise the cblas by GSL is used.

Anyway, after updating to hg tip all unit tests for DSAGE pass on
cygwin, which was the original intent of the whole exercise.

Cheers,

Michael

William Stein

unread,
May 11, 2007, 12:57:05 AM5/11/07
to sage-...@googlegroups.com
On 5/10/07, mabshoff <Michael...@fsmath.mathematik.uni-dortmund.de> wrote:
> On May 10, 11:58 pm, "William Stein" <wst...@gmail.com> wrote:
> > The lapack Cygwin package is a prerequisite for using
> > the SAGE binary on Windows. Do you have it installed?
> >
>
> No, I didn't and after the installation of said package sage starts.
> It seems counterintuititve to me that the Lapack package also provides
> a BLAS, but oh well.

I agree -- it is counterintuitive how that is package for windows -- who knows
why they did that. Sigh.

>As you might remember I have build SAGE on cygwin
> more than a couple times over the last two weeks and not had that kind
> of problem because otherwise the cblas by GSL is used.

I did some benchmarks once and I think GSL's cblas is *really*
slow compared to Cygwin's lapack, so it's much better to use lapack.

> Anyway, after updating to hg tip all unit tests for DSAGE pass on
> cygwin, which was the original intent of the whole exercise.

Excellent! That's great news.

William

Reply all
Reply to author
Forward
0 new messages