After compiling sage-4.6.1 (again), without errors in install.log, I try
to start up sage and get the following:
/usr/local/sage-4.6.1]$ ./sage
----------------------------------------------------------------------
| Sage Version 4.6.1, Release Date: 2011-01-11 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (1097, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (1102, 0))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/IPython/ipmaker.pyc
in force_import(modname)
64 reload(sys.modules[modname])
65 else:
---> 66 __import__(modname)
67
68
/usr/local/sage-4.6.1/local/bin/ipy_profile_sage.py in <module>()
5 preparser(True)
6
----> 7 import sage.all_cmdline
8 sage.all_cmdline._init_cmdline(globals())
9
/usr/local/sage-4.6.1/local/lib/python2.6/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/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/all.py in
<module>()
70 get_sigs()
71
---> 72 from sage.rings.all import *
73 from sage.matrix.all import *
74
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/rings/all.py in
<module>()
91
92 # Algebraic numbers
---> 93 from qqbar import (AlgebraicRealField, is_AlgebraicRealField, AA,
94 AlgebraicReal, is_AlgebraicReal,
95 AlgebraicField, is_AlgebraicField, QQbar,
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/rings/qqbar.py
in <module>()
4220 return isinstance(x, AlgebraicNumber)
4221
-> 4222 QQbarPoly = PolynomialRing(QQbar, 'x')
4223 AAPoly = PolynomialRing(AA, 'x')
4224
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_constructor.pyc
in PolynomialRing(base_ring, arg1, arg2, sparse, order, names, name,
implementation)
341 raise TypeError, "if second arguments is a
string with no commas, then there must be no other non-optional arguments"
342 name = arg1
--> 343 R = _single_variate(base_ring, name, sparse,
implementation)
344 else:
345 # 2-4. PolynomialRing(base_ring, names,
order='degrevlex'):
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_constructor.pyc
in _single_variate(base_ring, name, sparse, implementation)
421
422 elif base_ring.is_field(proof = False):
--> 423 R = m.PolynomialRing_field(base_ring, name, sparse,
implementation=implementation)
424
425 elif base_ring.is_integral_domain(proof = False):
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_ring.pyc
in __init__(self, base_ring, name, sparse, element_class, implementation)
1252 element_class =
polynomial_element_generic.Polynomial_generic_dense_field
1253
-> 1254 PolynomialRing_integral_domain.__init__(self, base_ring,
name=name, sparse=sparse, element_class=element_class)
1255
1256 self._has_singular = can_convert_to_singular(self)
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_ring.pyc
in __init__(self, base_ring, name, sparse, implementation, element_class)
1187 raise ValueError, "Unknown implementation %s
for ZZ[x]"
1188 PolynomialRing_commutative.__init__(self, base_ring,
name=name,
-> 1189 sparse=sparse, element_class=element_class)
1190
1191 def _repr_(self):
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_ring.pyc
in __init__(self, base_ring, name, sparse, element_class)
1121 raise TypeError, "Base ring must be a commutative ring."
1122 PolynomialRing_general.__init__(self, base_ring, name=name,
-> 1123 sparse=sparse, element_class=element_class)
1124
1125 def quotient_by_principal_ideal(self, f, names=None):
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_ring.pyc
in __init__(self, base_ring, name, sparse, element_class)
195 from sage.rings.polynomial import polynomial_element
196 self._polynomial_class =
polynomial_element.Polynomial_generic_dense
--> 197 self.__generator = self._polynomial_class(self, [0,1],
is_gen=True)
198 self.__cyclopoly_cache = {}
199 self._has_singular = False
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_element_generic.pyc
in __init__(self, parent, x, check, is_gen, construct)
603 class Polynomial_generic_dense_field(Polynomial_generic_dense,
Polynomial_generic_field):
604 def __init__(self, parent, x=None, check=True, is_gen =
False, construct=False):
--> 605 Polynomial_generic_dense.__init__(self, parent, x,
check, is_gen)
606
607
############################################################################
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_element.so
in
sage.rings.polynomial.polynomial_element.Polynomial_generic_dense.__init__
(sage/rings/polynomial/polynomial_element.c:36646)()
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/structure/parent.so
in sage.structure.parent.Parent.__call__ (sage/structure/parent.c:6462)()
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/structure/coerce_maps.so
in sage.structure.coerce_maps.DefaultConvertMap._call_
(sage/structure/coerce_maps.c:2436)()
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/structure/coerce_maps.so
in sage.structure.coerce_maps.DefaultConvertMap._call_
(sage/structure/coerce_maps.c:2339)()
TypeError: _element_constructor_() takes exactly 2 arguments (3 given)
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.
sage: 3 + 4
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/usr/local/sage-4.6.1/local/bin/<ipython console> in <module>()
NameError: name 'Integer' is not defined
sage:
==================
Any suggestions on how to fix this?
I am using a 64-bit linux distro with the following gcc:
gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with:
/dev/shm/portage/sys-devel/gcc-4.4.4-r2/work/gcc-4.4.4/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.4
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.4
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.4/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.4/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-fixed-point --without-ppl --without-cloog --enable-nls
--without-included-gettext --with-system-zlib --disable-werror
--enable-secureplt --enable-multilib --enable-libmudflap
--disable-libssp --enable-libgomp
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.4.4/python
--enable-checking=release --disable-libgcj
--enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.4-r2
p1.2, pie-0.4.5'
Thread model: posix
gcc version 4.4.4 (Gentoo 4.4.4-r2 p1.2, pie-0.4.5)
As a temporary workaround the sagelive-511-64.iso seems to work well
from inside VirtualBox on my system**
<http://mirrors.xmission.com/sage/livecd/sagelive-511-46.iso> and
running notebook(interface='') allows a connection from my regular system.
Thanks.
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org