SAGE won't start under Debian unstable

5 views
Skip to first unread message

Ben Goodrich

unread,
Jul 16, 2008, 6:26:23 PM7/16/08
to debian-sage
Hi,

SAGE won't start in an updated Debian unstable system anymore, but I
don't know if that is due to a recent python update or having only
3.0.1alpha1 in the repo. Also, I still have libflint-dev and libntl-
dev on hold because of the errors they cause during a dist-upgrade.
Anyhoo, here is the output when I try to start SAGE; hope it helps. --
Thanks, Ben

goodrich@X41Laptop:/tmp$
sage
----------------------------------------------------------------------
| SAGE Version 3.0.1.alpha1, Release Date: 2008-04-30
|
| Type notebook() for the GUI, and license() for information.
|
----------------------------------------------------------------------

---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)

/usr/lib/sagemath/local/bin/<ipython console> in <module>()

/usr/lib/python2.5/site-packages/sage/all_cmdline.py in <module>()
12 try:
13
---> 14 from sage.all import *
15 from sage.calculus.predefined import x
16 preparser(on=True)

/usr/lib/python2.5/site-packages/sage/all.py in <module>()
41
42 # We have to set this here so urllib, etc. can detect it.
---> 43 import sage.server.notebook.gnutls_socket_ssl
44 sage.server.notebook.gnutls_socket_ssl.require_SSL()
45

/usr/lib/python2.5/site-packages/sage/server/notebook/
gnutls_socket_ssl.py in <module>()
2 import
gnutls
----> 3 import
gnutls.connection
4 import
gnutls.errors

5
6 class
GnuTLSSocketSSL:

/var/lib/python-support/python2.5/gnutls/connection.py in <module>()
12 from ctypes import *
13
---> 14 from gnutls.validators import *
15 from gnutls.constants import *
16 from gnutls.crypto import *

/var/lib/python-support/python2.5/gnutls/validators.py in <module>()
7 'KeyExchangeListValidator', 'CipherListValidator',
'MACListValidator',
'CompressionListValidator']

8
----> 9 from gnutls.constants import
*

10
11
#

/var/lib/python-support/python2.5/gnutls/constants.py in <module>()
36
37
---> 38 from gnutls.library import constants
39
40 class GNUTLSConstant(int):

/var/lib/python-support/python2.5/gnutls/library/__init__.py in
<module>()
5 from gnutls.library import
constants
6 from gnutls.library import
types
----> 7 from gnutls.library import
errors
8 from gnutls.library import
functions

9

/var/lib/python-support/python2.5/gnutls/library/errors.py in
<module>()
13 from gnutls.library.constants import GNUTLS_A_UNKNOWN_CA,
GNUTLS_A_INSUFFICIENT_SECURITY
14 from gnutls.library.constants import
GNUTLS_A_CERTIFICATE_EXPIRED, GNUTLS_A_CERTIFICATE_REVOKED
---> 15 from gnutls.library.functions import gnutls_strerror,
gnutls_alert_get
16
17 class ErrorMessage(str):

/var/lib/python-support/python2.5/gnutls/library/functions.py in
<module>()
825 gnutls_openpgp_crt_get_expiration_time.restype = time_t
826 gnutls_openpgp_crt_get_expiration_time.argtypes =
[gnutls_openpgp_crt_t]
--> 827 gnutls_openpgp_crt_get_id = _libraries['libgnutls-extra.so.
26'].gnutls_openpgp_crt_get_id
828 gnutls_openpgp_crt_get_id.restype = c_int
829 gnutls_openpgp_crt_get_id.argtypes = [gnutls_openpgp_crt_t,
POINTER(c_ubyte)]

/usr/lib/python2.5/ctypes/__init__.pyc in __getattr__(self, name)
359 if name.startswith('__') and name.endswith('__'):
360 raise AttributeError, name
--> 361 func = self.__getitem__(name)
362 setattr(self, name, func)
363 return func

/usr/lib/python2.5/ctypes/__init__.pyc in __getitem__(self,
name_or_ordinal)
364
365 def __getitem__(self, name_or_ordinal):
--> 366 func = self._FuncPtr((name_or_ordinal, self))
367 if not isinstance(name_or_ordinal, (int, long)):
368 func.__name__ = name_or_ordinal

AttributeError: /usr/lib/libgnutls-extra.so.26: undefined symbol:
gnutls_openpgp_crt_get_id

goodrich@X41Laptop:/tmp$

mabshoff

unread,
Jul 16, 2008, 6:30:06 PM7/16/08
to debian-sage


On Jul 16, 3:26 pm, Ben Goodrich <goodrich....@gmail.com> wrote:
> Hi,

Hi Ben,

> SAGE won't start in an updated Debian unstable system anymore, but I
> don't know if that is due to a recent python update or having only
> 3.0.1alpha1 in the repo. Also, I still have libflint-dev and libntl-
> dev on hold because of the errors they cause during a dist-upgrade.
> Anyhoo, here is the output when I try to start SAGE; hope it helps. --
> Thanks, Ben

<SNIP>


> AttributeError: /usr/lib/libgnutls-extra.so.26: undefined symbol:
> gnutls_openpgp_crt_get_id

Looks like

http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/160edbbd8346434f

to me.

> goodrich@X41Laptop:/tmp$

Cheers,

Michael

Timothy G Abbott

unread,
Jul 17, 2008, 9:32:12 PM7/17/08
to debian-sage
Regarding the libflint-dev and libntl-dev packages, you should be able to
do the upgrade by manually running

dpkg --force-depends -r libntl0
dpkg --force-depends -r libntl-dev
apt-get install libntl-dev

(and similarly for flint).

I think those may be the only ones that will have that particular problem
in upgrading from my repo to the packages in Debian's archive.

I suspect the SAGE package itself won't work after you do the upgrade,
though, since it'll have been compiled against the older versions of flint
and ntl.

I'm afraid that at the moment, my repository lacks a working sage
installation.

On the other hand, I'm getting close to having all the SAGE dependencies
in Debian itself that I need.

As usual, the big blocker is still getting a 0.4 or later version of
polybori working in SAGE.

-Tim Abbott

Timothy G Abbott

unread,
Jul 17, 2008, 9:37:32 PM7/17/08
to debian-sage
Yes, it does. I'll add that bug to those that I'm tracking. If it
doesn't get fixed soon, I guess I may have to write a patch for it.

-Tim Abbott
Reply all
Reply to author
Forward
0 new messages