On Sat, Jun 19, 2010 at 8:04 AM, Johannes <dajo.m...@web.de> wrote: > I'm working with the version, contained in ubuntu 10.04
Delete that and get a recent version from http://sagemath.org/. The Ubuntu/Debian version is ancient (well over 2 years old), and nobody working on Sage knows how to update it or get it removed from Ubuntu. William > > j_sch...@neo:~$ sage -version > | SAGE Version 3.0.5, Release Date: 2008-07-11 | > j_sch...@neo:~$ uname -a > Linux neo 2.6.31-22-generic #60-Ubuntu SMP Thu May 27 00:22:23 UTC 2010 > i686 GNU/Linux > j_sch...@neo:~$ python --version > Python 2.6.4 > > greatz > > Am 19.06.2010 16:51, schrieb William Stein: >> On Sat, Jun 19, 2010 at 7:33 AM, Johannes <dajo.m...@web.de> wrote: >> >>> i tried the first example in the given link and i get the following error: >>> >>> sage: V0 = span([[1/2,0,0],[3/2,2,1],[0,0,1]],ZZ) >>> --------------------------------------------------------------------------- >>> TypeError Traceback (most recent call last) >>> >>> /home/j_schn14/<ipython console> in <module>() >>> >>> /usr/lib/python2.5/site-packages/sage/modules/free_module.pyc in span(R, >>> gens, check, already_echelonized) >>> 349 [1 0 1] >>> 350 """ >>> --> 351 if len(gens) == 0: >>> 352 return FreeModule(R, 0) >>> 353 else: >>> >>> /usr/lib/python2.5/site-packages/sage/rings/integer_ring.so in >>> sage.rings.integer_ring.IntegerRing_class.__len__ >>> (sage/rings/integer_ring.c:3903)() >>> >>> TypeError: len() of unsized object >>> >>> is this a bug, or am I doing something wrong? >>> greatz Mad >>> >> What version of Sage are you using? It works fine in recent versions: >> >> flat:Library wstein$ sage >> ---------------------------------------------------------------------- >> | Sage Version 4.4.2, Release Date: 2010-05-19 | >> | Type notebook() for the GUI, and license() for information. | >> ---------------------------------------------------------------------- >> sage: V0 = span([[1/2,0,0],[3/2,2,1],[0,0,1]],ZZ) >> sage: >> sage: V0 >> Free module of degree 3 and rank 3 over Integer Ring >> Echelon basis matrix: >> [1/2 0 0] >> [ 0 2 0] >> [ 0 0 1] >> > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org