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_schn14@neo:~$ sage -version
> | SAGE Version 3.0.5, Release Date: 2008-07-11 |
> j_schn14@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_schn14@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...@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-s...@googlegroups.com
> To unsubscribe from this group, send email to sage-support...@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
I thought sage was removed from ubuntu as of 10.04, as indicated by a
search on their webpage [0].
To me it clearly suggests that sage was part of jaunty and karmic
(ubuntu 9.04 and 9.10), but is no longer "contained in ubuntu" as of 10.04.
My ubuntu installation (netbook edition, 10.04) also claims that the
sagemath package is no longer available from the official repositories.
[0]:
<http://packages.ubuntu.com/search?keywords=sagemath&searchon=names&suite=all§ion=all>
Regards
Johan