Sage-4.6.1 finished compiling on my Gentoo Linux system. When I tried to run
sage the first time this is part of what I received:
==========
/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])
...
==========
There is about 2 pages of errors. I'll put it at the end of this message.
The end of install.log did not show any problems:
===========
copying ./blitz/blitz/array/expr.h ->
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/weave/blitz/blitz/array
running install_egg_info
Writing
/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/weave-0.4.9-py2.6.egg-info
running install_clib
customize UnixCCompiler
real 0m0.195s
user 0m0.137s
sys 0m0.053s
Successfully installed weave-0.4.9.p0
Now cleaning up tmp files.
Making Sage/Python scripts relocatable...
Making script relocatable
Finished installing weave-0.4.9.p0.spkg
make[1]: Leaving directory `/usr/local/sage-4.6.1/spkg'
real 201m1.272s
user 248m8.643s
sys 5m4.070s
To install gap, gp, singular, etc., scripts
in a standard bin directory, start sage and
type something like
sage: install_scripts('/usr/local/bin')
at the Sage command prompt.
To build the documentation, run
make doc
Sage build/upgrade complete!
=============
I compiled Sage from the sage-4.6.1.tar source file. I am
running gentoo linux with the latest stable packages.
My system:
gcc version 4.4.4 (Gentoo 4.4.4-r2 p1.2, pie-0.4.5) (includes g++)
m4 1.4.15
ranlib GNU ranlib (GNU Binutils) 2.20.1.20100303
make 3.81
I compiled like this:
export MAKE="make -j12" (using a hex-core intel cpu)
make > make.out 2>&1 &
The end of make.out has lots of errors:
==============
at the Sage command prompt.
To build the documentation, run
make doc
Sage build/upgrade complete!
spkg/pipestatus "./sage -docbuild all html 2>&1" "tee -a dochtml.log"
sphinx-build -b html -d
/usr/local/sage-4.6.1/devel/sage/doc/output/doctrees/en/faq
/usr/local/sage-4.6.1/devel/sage/doc/en/faq
/usr/local/sage-4.6.1/devel/sage/doc/output/html/en/faq
^[[?1034hTraceback (most recent call last):
File "/usr/local/sage-4.6.1/local/bin/sphinx-build", line 6, in <module>
import sage.all
File "/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/all.py",
line 72, in <module>
from sage.rings.all import *
File
"/usr/local/sage-4.6.1/local/lib/python2.6/site-packages/sage/rings/all.py",
line 93, in <module>
from qqbar import (AlgebraicRealField, is_AlgebraicRealField, AA,
...
=============
I'll post all of the errors at the end of make.out if it will help.
Below is the complete output when I try to start sage. Any help getting sage
up and running would be appreciated.
Richard
===========
/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:
--
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