Sage crashes when starts

13 views
Skip to first unread message

tvn

unread,
Jul 20, 2012, 1:26:50 PM7/20/12
to sage-s...@googlegroups.com
I am trying to run Sage 5.1 from a computer at work running Debian and it crashes right when starts up  ..  


wooly Fri Jul 20:13:26:00 (210) ~/Src/Devel/SAGE/sage-5.1-linux-64bit-ubuntu_12.04_lts-x86_64-Linux 
$ uname -a
Linux wooly 2.6.32-5-amd64 #1 SMP Sun May 6 05:12:07 UTC 2012 x86_64 GNU/Linux

wooly Fri Jul 20:13:26:02 (211) ~/Src/Devel/SAGE/sage-5.1-linux-64bit-ubuntu_12.04_lts-x86_64-Linux 
$ ./sage 
----------------------------------------------------------------------
| Sage Version 5.1, Release Date: 2012-07-09                         |
| Type "notebook()" for the browser-based notebook interface.        |
| Type "help()" for help.                                            |
----------------------------------------------------------------------
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/usr/home/tnguyen/Src/Devel/SAGE/sage-5.1-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/bin/sage-location", line 3, in <module>
    import os, sys
  File "/usr/home/tnguyen/Src/Devel/SAGE/sage-5.1-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/lib/python/os.py", line 398, in <module>
    import UserDict
  File "/usr/home/tnguyen/Src/Devel/SAGE/sage-5.1-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/lib/python/UserDict.py", line 84, in <module>
    _abcoll.MutableMapping.register(IterableUserDict)
  File "/usr/home/tnguyen/Src/Devel/SAGE/sage-5.1-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/lib/python/abc.py", line 109, in register
    if issubclass(subclass, cls):
  File "/usr/home/tnguyen/Src/Devel/SAGE/sage-5.1-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/lib/python/abc.py", line 184, in __subclasscheck__
    cls._abc_negative_cache.add(subclass)
  File "/usr/home/tnguyen/Src/Devel/SAGE/sage-5.1-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/lib/python/_weakrefset.py", line 84, in add
    self.data.add(ref(item, self._remove))
TypeError: cannot create weak reference to 'classobj' object
wooly Fri Jul 20:13:26:06 (212) ~/Src/Devel/SAGE/sage-5.1-linux-64bit-ubuntu_12.04_lts-x86_64-Linux 

Keshav Kini

unread,
Jul 20, 2012, 1:51:41 PM7/20/12
to sage-s...@googlegroups.com
tvn <nguyent...@gmail.com> writes:

> I am trying to run Sage 5.1 from a computer at work running Debian
> and it crashes right when starts up ..
>
>
> wooly Fri Jul 20:13:26:00 (210) ~/Src/Devel/SAGE/
> sage-5.1-linux-64bit-ubuntu_12.04_lts-x86_64-Linux

You're running an Ubuntu binary on a Debian system. I would not expect
this to work. Unfortunately we don't currently have a Debian build bot
to make binaries for Debian, so you will have to compile from source.

-Keshav

----
Join us in #sagemath on irc.freenode.net !

David Kirkby

unread,
Jul 20, 2012, 1:54:52 PM7/20/12
to sage-s...@googlegroups.com
On 20 July 2012 18:26, tvn <nguyent...@gmail.com> wrote:
> I am trying to run Sage 5.1 from a computer at work running Debian and it
> crashes right when starts up ..
>
>
> wooly Fri Jul 20:13:26:00 (210)
> ~/Src/Devel/SAGE/sage-5.1-linux-64bit-ubuntu_12.04_lts-x86_64-Linux
> $ uname -a
> Linux wooly 2.6.32-5-amd64 #1 SMP Sun May 6 05:12:07 UTC 2012 x86_64
> GNU/Linux
>
> wooly Fri Jul 20:13:26:02 (211)
> ~/Src/Devel/SAGE/sage-5.1-linux-64bit-ubuntu_12.04_lts-x86_64-Linux
> $ ./sage
> ----------------------------------------------------------------------
> | Sage Version 5.1, Release Date: 2012-07-09 |
> | Type "notebook()" for the browser-based notebook interface. |
> | Type "help()" for help. |
> ----------------------------------------------------------------------
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):

Did you build from source or download a binary?

The usual reccomenedation when people get problems is to build Sage
from source code. That normallly works without problems. You are
unlikely to need to install any other packages, as Sage comes with
most things included - even a compiler! (At leat I think the compiler
is included now - it certainly will be soon if it is not already)


Dave

Dave

Keshav Kini

unread,
Jul 20, 2012, 1:57:54 PM7/20/12
to sage-s...@googlegroups.com
David Kirkby <david....@onetel.net> writes:
> The usual reccomenedation when people get problems is to build Sage
> from source code. That normallly works without problems. You are
> unlikely to need to install any other packages, as Sage comes with
> most things included - even a compiler! (At leat I think the compiler
> is included now - it certainly will be soon if it is not already)

GCC is currently included in Sage, though if the system has a native GCC
which is deemed sufficient for Sage's purposes, Sage doesn't install the
GCC it ships.

David Kirkby

unread,
Jul 20, 2012, 2:40:03 PM7/20/12
to sage-s...@googlegroups.com
Thank you.

I have some older Sun hardware here (both x86 and SPARC). It will be
interesting to try Sage on them again, as it used to build and pass
all tests on both. One issue before was the need to install a more up
to date version of gcc. I'll give it a try some time.



Dave
Reply all
Reply to author
Forward
0 new messages