-- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
***************************************************************************
IPython post-mortem report {'commit_hash': u'a1b60f2', 'commit_source': 'installation', 'default_encoding': 'UTF-8', 'ipython_path': '/opt/sage/sage-6.10/local/lib/python2.7/site-packages/IPython', 'ipython_version': '4.0.0', 'os_name': 'posix', 'platform': 'Linux-3.13.0-24-generic-x86_64-with-debian-jessie-sid', 'sys_executable': '/opt/sage/sage-6.10/local/bin/python', 'sys_platform': 'linux2', 'sys_version': '2.7.10 (default, Dec 21 2015, 09:55:02) \n[GCC 4.9.2]'} *************************************************************************** *************************************************************************** Crash traceback: --------------------------------------------------------------------------- --------------------------------------------------------------------------- ImportError Python 2.7.10: /opt/sage/sage-6.10/local/bin/python Fri Jan 15 19:11:21 2016 A problem occurred executing Python code. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call last. /opt/sage/sage-6.10/src/bin/sage-ipython in <module>() 1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 """ 4 Sage IPython startup script. 5 """ 6 7 # Install extra readline commands before IPython initialization 8 from sage.repl.readline_extra_commands import * 9 10 from sage.repl.interpreter import SageTerminalApp 11 12 app = SageTerminalApp.instance() ---> 13 app.initialize() global app.initialize = <bound method SageTerminalApp.initialize of <sage.repl.interpreter.SageTerminalApp object at 0x7f78b52bba10>> 14 app.start() /opt/sage/sage-6.10/local/lib/python2.7/site-packages/IPython/terminal/ipapp.pyc in initialize(self=<sage.repl.interpreter.SageTerminalApp object>, argv=None) /opt/sage/sage-6.10/local/lib/python2.7/site-packages/traitlets/config/application.pyc in catch_config_error(method=<function initialize>, app=<sage.repl.interpreter.SageTerminalApp object>, *args=(None,), **kwargs={}) 60 61 #----------------------------------------------------------------------------- 62 # Application class 63 #----------------------------------------------------------------------------- 64 65 @decorator 66 def catch_config_error(method, app, *args, **kwargs): 67 """Method decorator for catching invalid config (Trait/ArgumentErrors) during init. 68 69 On a TraitError (generally caused by bad config), this will print the trait's 70 message, and exit the app. 71 72 For use on init methods, to prevent invoking excepthook on invalid input. 73 """ 74 try: ---> 75 return method(app, *args, **kwargs) method = <function initialize at 0x7f78ae7c00c8> app = <sage.repl.interpreter.SageTerminalApp object at 0x7f78b52bba10> args = (None,) kwargs = {} 76 except (TraitError, ArgumentError) as e: 77 app.print_help() 78 app.log.fatal("Bad config encountered during initialization:") 79 app.log.fatal(str(e)) 80 app.log.debug("Config at the time: %s", app.config) 81 app.exit(1) 82 83 84 class ApplicationError(Exception): 85 pass 86 87 class LevelFormatter(logging.Formatter): 88 """Formatter with additional `highlevel` record 89 90 This field is empty if log level is less than highlevel_limit, /opt/sage/sage-6.10/local/lib/python2.7/site-packages/IPython/terminal/ipapp.pyc in initialize(self=<sage.repl.interpreter.SageTerminalApp object>, argv=None) 299 300 return super(TerminalIPythonApp, self).parse_command_line(argv) 301 302 @catch_config_error 303 def initialize(self, argv=None): 304 """Do actions after construct, but before starting the app.""" 305 super(TerminalIPythonApp, self).initialize(argv) 306 if self.subapp is not None: 307 # don't bother initializing further, starting subapp 308 return 309 # print self.extra_args 310 if self.extra_args and not self.something_to_run: 311 self.file_to_run = self.extra_args[0] 312 self.init_path() 313 # create the shell --> 314 self.init_shell() self.init_shell = <bound method SageTerminalApp.init_shell of <sage.repl.interpreter.SageTerminalApp object at 0x7f78b52bba10>> 315 # and draw the banner 316 self.init_banner() 317 # Now a variety of things that happen after the banner is printed. 318 self.init_gui_pylab() 319 self.init_extensions() 320 self.init_code() 321 322 def init_shell(self): 323 """initialize the InteractiveShell instance""" 324 # Create an InteractiveShell instance. 325 # shell.display_banner should always be False for the terminal 326 # based app, because we call shell.show_banner() by hand below 327 # so the banner shows *before* all extension loading stuff. 328 self.shell = TerminalInteractiveShell.instance(parent=self, 329 display_banner=False, profile_dir=self.profile_dir, /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/repl/interpreter.pyc in init_shell(self=<sage.repl.interpreter.SageTerminalApp object>) 793 self.shell.has_sage_extensions = SAGE_EXTENSION in self.extensions 794 795 # Load the %lprun extension if available 796 try: 797 import line_profiler 798 except ImportError: 799 pass 800 else: 801 self.extensions.append('line_profiler') 802 803 if self.shell.has_sage_extensions: 804 self.extensions.remove(SAGE_EXTENSION) 805 806 # load sage extension here to get a crash if 807 # something is wrong with the sage library --> 808 self.shell.extension_manager.load_extension(SAGE_EXTENSION) self.shell.extension_manager.load_extension = <bound method ExtensionManager.load_extension of <IPython.core.extensions.ExtensionManager object at 0x7f78ad42ea10>> global SAGE_EXTENSION = 'sage' 809 810 /opt/sage/sage-6.10/local/lib/python2.7/site-packages/IPython/core/extensions.pyc in load_extension(self=<IPython.core.extensions.ExtensionManager object>, module_str='sage') 76 77 Returns the string "already loaded" if the extension is already loaded, 78 "no load function" if the module doesn't have a load_ipython_extension 79 function, or None if it succeeded. 80 """ 81 if module_str in self.loaded: 82 return "already loaded" 83 84 from IPython.utils.syspathcontext import prepended_to_syspath 85 86 with self.shell.builtin_trap: 87 if module_str not in sys.modules: 88 with prepended_to_syspath(self.ipython_extension_dir): 89 __import__(module_str) 90 mod = sys.modules[module_str] ---> 91 if self._call_load_ipython_extension(mod): self._call_load_ipython_extension = <bound method ExtensionManager._call_load_ipython_extension of <IPython.core.extensions.ExtensionManager object at 0x7f78ad42ea10>> mod = <module 'sage' from '/opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/__init__.pyc'> 92 self.loaded.add(module_str) 93 else: 94 return "no load function" 95 96 def unload_extension(self, module_str): 97 """Unload an IPython extension by its module name. 98 99 This function looks up the extension's name in ``sys.modules`` and 100 simply calls ``mod.unload_ipython_extension(self)``. 101 102 Returns the string "no unload function" if the extension doesn't define 103 a function to unload itself, "not loaded" if the extension isn't loaded, 104 otherwise None. 105 """ 106 if module_str not in self.loaded: /opt/sage/sage-6.10/local/lib/python2.7/site-packages/IPython/core/extensions.pyc in _call_load_ipython_extension(self=<IPython.core.extensions.ExtensionManager object>, mod=<module 'sage' from '/opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/__init__.pyc'>) 123 """ 124 from IPython.utils.syspathcontext import prepended_to_syspath 125 126 if (module_str in self.loaded) and (module_str in sys.modules): 127 self.unload_extension(module_str) 128 mod = sys.modules[module_str] 129 with prepended_to_syspath(self.ipython_extension_dir): 130 reload(mod) 131 if self._call_load_ipython_extension(mod): 132 self.loaded.add(module_str) 133 else: 134 self.load_extension(module_str) 135 136 def _call_load_ipython_extension(self, mod): 137 if hasattr(mod, 'load_ipython_extension'): --> 138 mod.load_ipython_extension(self.shell) mod.load_ipython_extension = <function load_ipython_extension at 0x7f78b52bcb90> self.shell = <sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7f78ae7c24d0> 139 return True 140 141 def _call_unload_ipython_extension(self, mod): 142 if hasattr(mod, 'unload_ipython_extension'): 143 mod.unload_ipython_extension(self.shell) 144 return True 145 146 def install_extension(self, url, filename=None): 147 """Download and install an IPython extension. 148 149 If filename is given, the file will be so named (inside the extension 150 directory). Otherwise, the name from the URL will be used. The file must 151 have a .py or .zip extension; otherwise, a ValueError will be raised. 152 153 Returns the full path to the installed file. /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/__init__.pyc in load_ipython_extension(*args=(<sage.repl.interpreter.SageTerminalInteractiveShell object>,)) 1 __all__ = ['all'] 2 3 # IPython calls this when starting up 4 def load_ipython_extension(*args): 5 import sage.repl.ipython_extension ----> 6 sage.repl.ipython_extension.load_ipython_extension(*args) sage.repl.ipython_extension.load_ipython_extension = <function load_ipython_extension at 0x7f78ad43f7d0> args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7f78ae7c24d0>,) /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in wrapper(*args=(<sage.repl.interpreter.SageTerminalInteractiveShell object>,), **kwargs={}) 448 ....: if work: 449 ....: return 'foo worked' 450 ....: raise RuntimeError("foo didn't work") 451 sage: foo(False) 452 Traceback (most recent call last): 453 ... 454 RuntimeError: foo didn't work 455 sage: foo(True) 456 'foo worked' 457 sage: foo(False) 458 sage: foo(True) 459 """ 460 @wraps(func) 461 def wrapper(*args, **kwargs): 462 if not wrapper.has_run: --> 463 result = func(*args, **kwargs) result = undefined global func = undefined args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7f78ae7c24d0>,) kwargs = {} 464 wrapper.has_run = True 465 return result 466 wrapper.has_run = False 467 return wrapper 468 469 470 @run_once 471 def load_ipython_extension(ip): 472 """ 473 Load the extension in IPython. 474 """ 475 # this modifies ip 476 SageCustomizations(shell=ip) /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in load_ipython_extension(ip=<sage.repl.interpreter.SageTerminalInteractiveShell object>) 461 def wrapper(*args, **kwargs): 462 if not wrapper.has_run: 463 result = func(*args, **kwargs) 464 wrapper.has_run = True 465 return result 466 wrapper.has_run = False 467 return wrapper 468 469 470 @run_once 471 def load_ipython_extension(ip): 472 """ 473 Load the extension in IPython. 474 """ 475 # this modifies ip --> 476 SageCustomizations(shell=ip) global SageCustomizations = <class 'sage.repl.ipython_extension.SageCustomizations'> global shell = undefined ip = <sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7f78ae7c24d0> /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in __init__(self=<sage.repl.ipython_extension.SageCustomizations object>, shell=<sage.repl.interpreter.SageTerminalInteractiveShell object>) 330 """ 331 self.shell = shell 332 333 self.auto_magics = SageMagics(shell) 334 self.shell.register_magics(self.auto_magics) 335 336 import sage.misc.edit_module as edit_module 337 self.shell.set_hook('editor', edit_module.edit_devel) 338 339 self.init_inspector() 340 self.init_line_transforms() 341 342 import inputhook 343 inputhook.install() 344 --> 345 import sage.all # until sage's import hell is fixed sage.all = undefined 346 347 self.shell.verbose_quit = True 348 self.set_quit_hook() 349 350 self.register_interface_magics() 351 352 if SAGE_IMPORTALL == 'yes': 353 self.init_environment() 354 355 356 def register_interface_magics(self): 357 """ 358 Register magics for each of the Sage interfaces 359 """ 360 from sage.misc.superseded import deprecation /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/all.py in <module>() 84 from sage.misc.all import * # takes a while 85 from sage.typeset.all import * 86 from sage.repl.all import * 87 88 from sage.misc.sh import sh 89 90 from sage.libs.all import * 91 from sage.data_structures.all import * 92 from sage.doctest.all import * 93 try: 94 from sage.dev.all import * 95 except ImportError: 96 pass # dev scripts are disabled 97 98 from sage.structure.all import * ---> 99 from sage.rings.all import * global sage.rings.all = undefined 100 from sage.matrix.all import * 101 102 # This must come before Calculus -- it initializes the Pynac library. 103 import sage.symbolic.pynac 104 105 from sage.modules.all import * 106 from sage.monoids.all import * 107 from sage.algebras.all import * 108 from sage.modular.all import * 109 from sage.sat.all import * 110 from sage.schemes.all import * 111 from sage.graphs.all import * 112 from sage.groups.all import * 113 from sage.databases.all import * 114 from sage.categories.all import * /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/rings/all.py in <module>() 47 48 # Rational numbers 49 from rational_field import RationalField, QQ 50 from rational import Rational 51 Rationals = RationalField 52 53 # Integers modulo n. 54 from sage.rings.finite_rings.integer_mod_ring import IntegerModRing, Zmod 55 from sage.rings.finite_rings.integer_mod import IntegerMod, Mod, mod 56 Integers = IntegerModRing 57 58 # Finite fields 59 from finite_rings.all import * 60 61 # Number field ---> 62 from number_field.all import * global number_field.all = undefined 63 64 # Function field 65 from function_field.all import * 66 67 # Finite residue fields 68 from finite_rings.residue_field import ResidueField 69 70 # p-adic field 71 from padics.all import * 72 from padics.padic_printing import _printer_defaults as padic_printing 73 74 # Semirings 75 from semirings.all import * 76 77 # Real numbers /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/rings/number_field/all.py in <module>() 1 from number_field import (NumberField, NumberFieldTower, CyclotomicField, QuadraticField, 2 is_fundamental_discriminant) 3 from number_field_element import NumberFieldElement 4 5 from order import EquationOrder 6 ----> 7 from totallyreal import enumerate_totallyreal_fields_prim global totallyreal = undefined global enumerate_totallyreal_fields_prim = undefined 8 from totallyreal_data import hermite_constant 9 from totallyreal_rel import enumerate_totallyreal_fields_all, enumerate_totallyreal_fields_rel 10 11 from unit_group import UnitGroup /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/rings/number_field/totallyreal_data.pxd in init sage.rings.number_field.totallyreal (/opt/sage/sage-6.10/src/build/cythonized/sage/rings/number_field/totallyreal.c:10979)() 1 cdef double eval_seq_as_poly(int *f, int n, double x) 2 cdef double newton(int *f, int *df, int n, double x0, double eps) 3 cdef void newton_in_intervals(int *f, int *df, int n, double *beta, double eps, double *rts) 4 cpdef lagrange_degree_3(int n, int an1, int an2, int an3) 5 6 cimport sage.rings.integer 7 8 cdef int eval_seq_as_poly_int(int *f, int n, int x) 9 10 cdef int easy_is_irreducible(int *a, int n) 11 ---> 12 cdef class tr_data: global cdef = undefined global tr_data = undefined 13 14 cdef int n, k 15 cdef double B 16 cdef double b_lower, b_upper, gamma 17 18 cdef int *a 19 cdef int *amax 20 cdef double *beta 21 cdef int *gnk 22 23 cdef int *df 24 25 cdef void incr(self, int *f_out, int verbose, int haltk, int phc) 26 sage/rings/number_field/totallyreal_data.pyx in init sage.rings.number_field.totallyreal_data (/opt/sage/sage-6.10/src/build/cythonized/sage/rings/number_field/totallyreal_data.c:11690)() /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring_constructor.pyc in PolynomialRing(base_ring=Integer Ring, arg1='x', arg2=None, sparse=False, order='degrevlex', names=None, name='x', var_array=None, implementation=None) 444 arg2 = [str(x) for x in arg2] 445 if isinstance(arg2, (int, long, Integer)): 446 # 3. PolynomialRing(base_ring, names, n, order='degrevlex'): 447 if not isinstance(arg1, (list, tuple, str)): 448 raise TypeError("You *must* specify the names of the variables.") 449 n = int(arg2) 450 names = arg1 451 R = _multi_variate(base_ring, names, n, sparse, order, implementation) 452 453 elif isinstance(arg1, str) or (isinstance(arg1, (list,tuple)) and len(arg1) == 1): 454 if not ',' in arg1: 455 # 1. PolynomialRing(base_ring, name, sparse=False): 456 if not arg2 is None: 457 raise TypeError("if second arguments is a string with no commas, then there must be no other non-optional arguments") 458 name = arg1 --> 459 R = _single_variate(base_ring, name, sparse, implementation) R = None global _single_variate = <function _single_variate at 0x7f78b1fec320> base_ring = Integer Ring name = 'x' sparse = False implementation = None 460 else: 461 # 2-4. PolynomialRing(base_ring, names, order='degrevlex'): 462 if not arg2 is None: 463 raise TypeError("invalid input to PolynomialRing function; please see the docstring for that function") 464 names = arg1.split(',') 465 R = _multi_variate(base_ring, names, -1, sparse, order, implementation) 466 elif isinstance(arg1, (list, tuple)): 467 # PolynomialRing(base_ring, names (list or tuple), order='degrevlex'): 468 names = arg1 469 R = _multi_variate(base_ring, names, -1, sparse, order, implementation) 470 471 if arg1 is None and arg2 is None: 472 raise TypeError("you *must* specify the indeterminates (as not None).") 473 if R is None: 474 raise TypeError("invalid input (%s, %s, %s) to PolynomialRing function; please see the docstring for that function"%( /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring_constructor.pyc in _single_variate(base_ring=Integer Ring, name=('x',), sparse=False, implementation=None) 516 R = m.PolynomialRing_dense_padic_field_capped_relative(base_ring, name) 517 518 elif isinstance(base_ring, padic_base_leaves.pAdicRingCappedRelative): 519 R = m.PolynomialRing_dense_padic_ring_capped_relative(base_ring, name) 520 521 elif isinstance(base_ring, padic_base_leaves.pAdicRingCappedAbsolute): 522 R = m.PolynomialRing_dense_padic_ring_capped_absolute(base_ring, name) 523 524 elif isinstance(base_ring, padic_base_leaves.pAdicRingFixedMod): 525 R = m.PolynomialRing_dense_padic_ring_fixed_mod(base_ring, name) 526 527 elif base_ring.is_field(proof = False): 528 R = m.PolynomialRing_field(base_ring, name, sparse) 529 530 elif base_ring.is_integral_domain(proof = False): --> 531 R = m.PolynomialRing_integral_domain(base_ring, name, sparse, implementation) R = None m.PolynomialRing_integral_domain = <class 'sage.rings.polynomial.polynomial_ring.PolynomialRing_integral_domain'> base_ring = Integer Ring name = ('x',) sparse = False implementation = None 532 else: 533 R = m.PolynomialRing_commutative(base_ring, name, sparse) 534 else: 535 R = m.PolynomialRing_general(base_ring, name, sparse) 536 537 if hasattr(R, '_implementation_names'): 538 for name in R._implementation_names: 539 real_key = key[0:3] + (name,) 540 _save_in_cache(real_key, R) 541 else: 542 _save_in_cache(key, R) 543 return R 544 545 def _multi_variate(base_ring, names, n, sparse, order, implementation): 546 # if not sparse: /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring.pyc in __init__(self=Univariate Polynomial Ring in x over Integer Ring, base_ring=Integer Ring, name=('x',), sparse=False, implementation=None, element_class=<type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>) 1530 if is_IntegerRing(base_ring) and not sparse: 1531 if implementation == 'NTL': 1532 from sage.rings.polynomial.polynomial_integer_dense_ntl \ 1533 import Polynomial_integer_dense_ntl 1534 element_class = Polynomial_integer_dense_ntl 1535 self._implementation_names = ('NTL',) 1536 self._implementation_repr = ' (using NTL)' 1537 elif implementation == 'FLINT' or implementation is None: 1538 from sage.rings.polynomial.polynomial_integer_dense_flint \ 1539 import Polynomial_integer_dense_flint 1540 element_class = Polynomial_integer_dense_flint 1541 self._implementation_names = (None, 'FLINT') 1542 else: 1543 raise ValueError("Unknown implementation %s for ZZ[x]"%implementation) 1544 PolynomialRing_commutative.__init__(self, base_ring, name=name, -> 1545 sparse=sparse, element_class=element_class) sparse = False element_class = <type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'> 1546 1547 def _repr_(self): 1548 """ 1549 TESTS:: 1550 1551 sage: from sage.rings.polynomial.polynomial_ring import PolynomialRing_integral_domain as PRing 1552 sage: R = PRing(ZZ, 'x', implementation='NTL'); R 1553 Univariate Polynomial Ring in x over Integer Ring (using NTL) 1554 """ 1555 s = PolynomialRing_commutative._repr_(self) 1556 return s + self._implementation_repr 1557 1558 1559 class PolynomialRing_field(PolynomialRing_integral_domain, 1560 PolynomialRing_singular_repr, /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring.pyc in __init__(self=Univariate Polynomial Ring in x over Integer Ring, base_ring=Integer Ring, name=('x',), sparse=False, element_class=<type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>, category=Join of Category of unique factorization domains...s and infinite enumerated sets and metric spaces)) 1437 if max_degree is not None and of_degree is None: 1438 return self._monics_max( max_degree ) 1439 raise ValueError("you should pass exactly one of of_degree and max_degree") 1440 1441 class PolynomialRing_commutative(PolynomialRing_general, commutative_algebra.CommutativeAlgebra): 1442 """ 1443 Univariate polynomial ring over a commutative ring. 1444 """ 1445 def __init__(self, base_ring, name=None, sparse=False, element_class=None, category=None): 1446 if base_ring not in _CommutativeRings: 1447 raise TypeError("Base ring %s must be a commutative ring."%repr(base_ring)) 1448 # We trust that, if a category is given, that it is useful. 1449 if category is None: 1450 category = polynomial_default_category(base_ring.category(),False) 1451 PolynomialRing_general.__init__(self, base_ring, name=name, -> 1452 sparse=sparse, element_class=element_class, category=category) sparse = False element_class = <type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'> category = Join of Category of unique factorization domains and Category of commutative algebras over (euclidean domains and infinite enumerated sets and metric spaces) 1453 1454 def quotient_by_principal_ideal(self, f, names=None): 1455 """ 1456 Return the quotient of this polynomial ring by the principal 1457 ideal (generated by) `f`. 1458 1459 INPUT: 1460 1461 - ``f`` - either a polynomial in ``self``, or a principal 1462 ideal of ``self``. 1463 1464 EXAMPLES:: 1465 1466 sage: R.<x> = QQ[] 1467 sage: I = (x^2-1)*R /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/rings/polynomial/polynomial_ring.pyc in __init__(self=Univariate Polynomial Ring in x over Integer Ring, base_ring=Integer Ring, name=('x',), sparse=False, element_class=<type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>, category=Join of Category of unique factorization domains...s and infinite enumerated sets and metric spaces)) 291 self._has_singular = False 292 # Algebra.__init__ also calls __init_extra__ of Algebras(...).parent_class, which 293 # tries to provide a conversion from the base ring, if it does not exist. 294 # This is for algebras that only do the generic stuff in their initialisation. 295 # But the attribute _no_generic_basering_coercion prevents that from happening, 296 # since we want to use PolynomialBaseringInjection. 297 sage.algebras.algebra.Algebra.__init__(self, base_ring, names=name, normalize=True, category=category) 298 self.__generator = self._polynomial_class(self, [0,1], is_gen=True) 299 self._populate_coercion_lists_( 300 #coerce_list = [base_inject], 301 #convert_list = [list, base_inject], 302 convert_method_name = '_polynomial_') 303 if is_PolynomialRing(base_ring): 304 self._Karatsuba_threshold = 0 305 else: --> 306 from sage.matrix.matrix_space import is_MatrixSpace global sage.matrix.matrix_space = undefined is_MatrixSpace = undefined 307 if is_MatrixSpace(base_ring): 308 self._Karatsuba_threshold = 0 309 else: 310 self._Karatsuba_threshold = 8 311 312 def __reduce__(self): 313 import sage.rings.polynomial.polynomial_ring_constructor 314 return (sage.rings.polynomial.polynomial_ring_constructor.PolynomialRing, 315 (self.base_ring(), self.variable_name(), None, self.is_sparse())) 316 317 318 def _element_constructor_(self, x=None, check=True, is_gen = False, construct=False, **kwds): 319 r""" 320 Convert ``x`` into this univariate polynomial ring, 321 possibly non-canonically. /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/matrix/matrix_space.pyc in <module>() 31 # (at your option) any later version. 32 # http://www.gnu.org/licenses/ 33 #***************************************************************************** 34 35 36 # System imports 37 import sys 38 import types 39 import operator 40 41 # Sage matrix imports 42 import matrix 43 import matrix_generic_dense 44 import matrix_generic_sparse 45 ---> 46 import matrix_modn_sparse global matrix_modn_sparse = undefined 47 48 import matrix_mod2_dense 49 import matrix_gf2e_dense 50 51 import matrix_integer_dense 52 import matrix_integer_sparse 53 54 import matrix_rational_dense 55 import matrix_rational_sparse 56 57 import matrix_mpolynomial_dense 58 59 60 # Sage imports 61 from sage.misc.superseded import deprecation /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/matrix/matrix_integer_dense.pxd in init sage.matrix.matrix_modn_sparse (/opt/sage/sage-6.10/src/build/cythonized/sage/matrix/matrix_modn_sparse.c:19967)() 1 from sage.libs.gmp.types cimport * 2 from sage.libs.flint.fmpz cimport * 3 from sage.libs.flint.fmpz_mat cimport * 4 5 cimport matrix_dense 6 from sage.rings.integer cimport Integer 7 from sage.ext.mod_int cimport * 8 9 ctypedef long* GEN 10 ---> 11 cdef class Matrix_integer_dense(matrix_dense.Matrix_dense): global cdef = undefined global Matrix_integer_dense = undefined global matrix_dense.Matrix_dense = undefined 12 cdef fmpz_mat_t _matrix # Always initialized in __cinit__ 13 cdef bint _initialized_mpz 14 cdef mpz_t * _entries # Only used if _initialized_mpz 15 cdef mpz_t ** _rows # Only used if _initialized_mpz 16 cdef object _pivots 17 cdef int mpz_height(self, mpz_t height) except -1 18 cdef _mod_int_c(self, mod_int modulus) 19 cdef _mod_two(self) 20 cdef _pickle_version0(self) 21 cdef _unpickle_version0(self, data) 22 cpdef _export_as_string(self, int base=?) 23 cdef inline int _init_mpz(self) except -1 24 cdef int _init_mpz_impl(self) except -1 25 cdef inline int _init_linbox(self) except -1 26 cdef void _dealloc_mpz(self) 27 cdef void set_unsafe_mpz(self, Py_ssize_t i, Py_ssize_t j, const mpz_t value) 28 cdef void set_unsafe_si(self, Py_ssize_t i, Py_ssize_t j, long value) 29 cdef void set_unsafe_double(self, Py_ssize_t i, Py_ssize_t j, double value) 30 cdef inline void get_unsafe_mpz(self, Py_ssize_t i, Py_ssize_t j, mpz_t value) 31 cdef inline double get_unsafe_double(self, Py_ssize_t i, Py_ssize_t j) /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/matrix/matrix_modn_dense_template_header.pxi in init sage.matrix.matrix_integer_dense (/opt/sage/sage-6.10/src/build/cythonized/sage/matrix/matrix_integer_dense.c:52753)() 1 """ 2 Dense Matrix Template for C/C++ Library Interfaces 3 """ 4 5 from sage.ext.mod_int cimport * 6 7 cimport matrix_dense 8 ----> 9 cdef class Matrix_modn_dense_template(matrix_dense.Matrix_dense): global cdef = undefined global Matrix_modn_dense_template = undefined global matrix_dense.Matrix_dense = undefined 10 cdef celement **_matrix 11 cdef celement *_entries 12 cdef mod_int p 13 cdef xgcd_eliminate (self, celement * row1, celement* row2, Py_ssize_t start_col) 14 cdef set_unsafe_int(self, Py_ssize_t i, Py_ssize_t j, int value) 15 cpdef _export_as_string(self) 16 cdef int _copy_row_to_mod_int_array(self, mod_int *to, Py_ssize_t i) ImportError: /opt/sage/sage-6.10/local/lib/../lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /opt/sage/sage-6.10/local/lib/python2.7/site-packages/sage/matrix/matrix_modn_dense_float.so) *************************************************************************** History of session input: *** Last line of input (may not be in above history):