> Please, put the log somewhere accessible to everybody. > From which version did you upgrade? Sometimes, the build system is not > smart enough and it is needed to do a "make distclean" and then > "make"... i.e. rebuilding Sage from scratch. >
Thanks for your help! I attach the report -- I upgraded from 6.2.beta4 if I remember right. I will redo the make, but that will take until tomorrow morning... -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
*************************************************************************** IPython post-mortem report {'codename': 'An Afternoon Hack', 'commit_hash': 'f4fdcea', 'commit_source': 'installation', 'default_encoding': 'UTF-8', 'ipython_path': '/home/stumpc5/progs/sage/local/lib/python2.7/site-packages/IPython', 'ipython_version': '1.2.1', 'os_name': 'posix', 'platform': 'Linux-3.13.0-24-generic-x86_64-with-debian-jessie-sid', 'sys_executable': '/home/stumpc5/progs/sage/local/bin/python', 'sys_platform': 'linux2', 'sys_version': '2.7.5 (default, Mar 16 2014, 20:03:41) \n[GCC 4.8.1]'} *************************************************************************** *************************************************************************** Crash traceback: --------------------------------------------------------------------------- ImportError Python 2.7.5: /home/stumpc5/progs/sage/local/bin/python Thu Apr 24 22:33:29 2014 A problem occured executing Python code. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call last. /home/stumpc5/progs/sage/src/bin/sage-ipython in <module>() 1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 """ 4 Sage IPython startup script. 5 """ 6 from sage.repl.interpreter import SageTerminalApp 7 8 # installs the extra readline commands before the IPython initialization begins. 9 from sage.repl.readline_extra_commands import * 10 11 app = SageTerminalApp.instance() ---> 12 app.initialize() global app.initialize = <bound method SageTerminalApp.initialize of <sage.repl.interpreter.SageTerminalApp object at 0x1d2ac50>> 13 app.start() /home/stumpc5/progs/sage/local/lib/python2.7/site-packages/IPython/terminal/ipapp.pyc in initialize(self=<sage.repl.interpreter.SageTerminalApp object>, argv=None) /home/stumpc5/progs/sage/local/lib/python2.7/site-packages/IPython/config/application.pyc in catch_config_error(method=<function initialize>, app=<sage.repl.interpreter.SageTerminalApp object>, *args=(None,), **kwargs={}) 74 75 #----------------------------------------------------------------------------- 76 # Application class 77 #----------------------------------------------------------------------------- 78 79 @decorator 80 def catch_config_error(method, app, *args, **kwargs): 81 """Method decorator for catching invalid config (Trait/ArgumentErrors) during init. 82 83 On a TraitError (generally caused by bad config), this will print the trait's 84 message, and exit the app. 85 86 For use on init methods, to prevent invoking excepthook on invalid input. 87 """ 88 try: ---> 89 return method(app, *args, **kwargs) method = <function initialize at 0x1d238c0> app = <sage.repl.interpreter.SageTerminalApp object at 0x1d2ac50> args = (None,) kwargs = {} 90 except (TraitError, ArgumentError) as e: 91 app.print_help() 92 app.log.fatal("Bad config encountered during initialization:") 93 app.log.fatal(str(e)) 94 app.log.debug("Config at the time: %s", app.config) 95 app.exit(1) 96 97 98 class ApplicationError(Exception): 99 pass 100 101 class LevelFormatter(logging.Formatter): 102 """Formatter with additional `highlevel` record 103 104 This field is empty if log level is less than highlevel_limit, /home/stumpc5/progs/sage/local/lib/python2.7/site-packages/IPython/terminal/ipapp.pyc in initialize(self=<sage.repl.interpreter.SageTerminalApp object>, argv=None) 308 309 @catch_config_error 310 def initialize(self, argv=None): 311 """Do actions after construct, but before starting the app.""" 312 super(TerminalIPythonApp, self).initialize(argv) 313 if self.subapp is not None: 314 # don't bother initializing further, starting subapp 315 return 316 if not self.ignore_old_config: 317 check_for_old_config(self.ipython_dir) 318 # print self.extra_args 319 if self.extra_args and not self.something_to_run: 320 self.file_to_run = self.extra_args[0] 321 self.init_path() 322 # create the shell --> 323 self.init_shell() self.init_shell = <bound method SageTerminalApp.init_shell of <sage.repl.interpreter.SageTerminalApp object at 0x1d2ac50>> 324 # and draw the banner 325 self.init_banner() 326 # Now a variety of things that happen after the banner is printed. 327 self.init_gui_pylab() 328 self.init_extensions() 329 self.init_code() 330 331 def init_shell(self): 332 """initialize the InteractiveShell instance""" 333 # Create an InteractiveShell instance. 334 # shell.display_banner should always be False for the terminal 335 # based app, because we call shell.show_banner() by hand below 336 # so the banner shows *before* all extension loading stuff. 337 self.shell = TerminalInteractiveShell.instance(parent=self, 338 display_banner=False, profile_dir=self.profile_dir, /home/stumpc5/progs/sage/local/lib/python2.7/site-packages/sage/repl/interpreter.pyc in init_shell(self=<sage.repl.interpreter.SageTerminalApp object>) 510 sage: app.shell 511 <sage.repl.interpreter.SageInteractiveShell object at 0x...> 512 """ 513 # Shell initialization 514 self.shell = SageInteractiveShell.instance(config=self.config, 515 display_banner=False, profile_dir=self.profile_dir, 516 ipython_dir=self.ipython_dir) 517 self.shell.configurables.append(self) 518 self.shell.has_sage_extensions = SAGE_EXTENSION in self.extensions 519 520 if self.shell.has_sage_extensions: 521 self.extensions.remove(SAGE_EXTENSION) 522 523 # load sage extension here to get a crash if 524 # something is wrong with the sage library --> 525 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 0x1d4ef10>> global SAGE_EXTENSION = 'sage' /home/stumpc5/progs/sage/local/lib/python2.7/site-packages/IPython/core/extensions.pyc in load_extension(self=<IPython.core.extensions.ExtensionManager object>, module_str='sage') 85 86 Returns the string "already loaded" if the extension is already loaded, 87 "no load function" if the module doesn't have a load_ipython_extension 88 function, or None if it succeeded. 89 """ 90 if module_str in self.loaded: 91 return "already loaded" 92 93 from IPython.utils.syspathcontext import prepended_to_syspath 94 95 with self.shell.builtin_trap: 96 if module_str not in sys.modules: 97 with prepended_to_syspath(self.ipython_extension_dir): 98 __import__(module_str) 99 mod = sys.modules[module_str] --> 100 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 0x1d4ef10>> mod = <module 'sage' from '/home/stumpc5/progs/sage/local/lib/python2.7/site-packages/sage/__init__.pyc'> 101 self.loaded.add(module_str) 102 else: 103 return "no load function" 104 105 def unload_extension(self, module_str): 106 """Unload an IPython extension by its module name. 107 108 This function looks up the extension's name in ``sys.modules`` and 109 simply calls ``mod.unload_ipython_extension(self)``. 110 111 Returns the string "no unload function" if the extension doesn't define 112 a function to unload itself, "not loaded" if the extension isn't loaded, 113 otherwise None. 114 """ 115 if module_str not in self.loaded: /home/stumpc5/progs/sage/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 '/home/stumpc5/progs/sage/local/lib/python2.7/site-packages/sage/__init__.pyc'>) 132 """ 133 from IPython.utils.syspathcontext import prepended_to_syspath 134 135 if (module_str in self.loaded) and (module_str in sys.modules): 136 self.unload_extension(module_str) 137 mod = sys.modules[module_str] 138 with prepended_to_syspath(self.ipython_extension_dir): 139 reload(mod) 140 if self._call_load_ipython_extension(mod): 141 self.loaded.add(module_str) 142 else: 143 self.load_extension(module_str) 144 145 def _call_load_ipython_extension(self, mod): 146 if hasattr(mod, 'load_ipython_extension'): --> 147 mod.load_ipython_extension(self.shell) mod.load_ipython_extension = <function load_ipython_extension at 0x1d2e0c8> self.shell = <sage.repl.interpreter.SageInteractiveShell object at 0x1d2af50> 148 return True 149 150 def _call_unload_ipython_extension(self, mod): 151 if hasattr(mod, 'unload_ipython_extension'): 152 mod.unload_ipython_extension(self.shell) 153 return True 154 155 def install_extension(self, url, filename=None): 156 """Download and install an IPython extension. 157 158 If filename is given, the file will be so named (inside the extension 159 directory). Otherwise, the name from the URL will be used. The file must 160 have a .py or .zip extension; otherwise, a ValueError will be raised. 161 162 Returns the full path to the installed file. /home/stumpc5/progs/sage/local/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in wrapper(*args=(<sage.repl.interpreter.SageInteractiveShell object>,), **kwargs={}) 396 ....: if work: 397 ....: return 'foo worked' 398 ....: raise RuntimeError("foo didn't work") 399 sage: foo(False) 400 Traceback (most recent call last): 401 ... 402 RuntimeError: foo didn't work 403 sage: foo(True) 404 'foo worked' 405 sage: foo(False) 406 sage: foo(True) 407 """ 408 @wraps(func) 409 def wrapper(*args, **kwargs): 410 if not wrapper.has_run: --> 411 result = func(*args, **kwargs) result = undefined global func = undefined args = (<sage.repl.interpreter.SageInteractiveShell object at 0x1d2af50>,) kwargs = {} 412 wrapper.has_run = True 413 return result 414 wrapper.has_run = False 415 return wrapper 416 417 418 @run_once 419 def load_ipython_extension(ip): 420 """ 421 Load the extension in IPython. 422 """ 423 # this modifies ip 424 SageCustomizations(shell=ip) /home/stumpc5/progs/sage/local/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in load_ipython_extension(ip=<sage.repl.interpreter.SageInteractiveShell object>) 409 def wrapper(*args, **kwargs): 410 if not wrapper.has_run: 411 result = func(*args, **kwargs) 412 wrapper.has_run = True 413 return result 414 wrapper.has_run = False 415 return wrapper 416 417 418 @run_once 419 def load_ipython_extension(ip): 420 """ 421 Load the extension in IPython. 422 """ 423 # this modifies ip --> 424 SageCustomizations(shell=ip) global SageCustomizations = <class 'sage.repl.ipython_extension.SageCustomizations'> global shell = undefined ip = <sage.repl.interpreter.SageInteractiveShell object at 0x1d2af50> /home/stumpc5/progs/sage/local/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in __init__(self=<sage.repl.ipython_extension.SageCustomizations object>, shell=<sage.repl.interpreter.SageInteractiveShell object>) 280 self.shell.register_magics(self.auto_magics) 281 282 import sage.misc.displayhook as displayhook 283 self.shell.display_formatter.formatters['text/plain'] = ( 284 displayhook.SagePlainTextFormatter(config=shell.config)) 285 286 import sage.misc.edit_module as edit_module 287 self.shell.set_hook('editor', edit_module.edit_devel) 288 289 self.init_inspector() 290 self.init_line_transforms() 291 292 import inputhook 293 inputhook.install() 294 --> 295 import sage.all # until sage's import hell is fixed sage.all = undefined 296 297 self.shell.verbose_quit = True 298 self.set_quit_hook() 299 300 self.register_interface_magics() 301 302 if SAGE_IMPORTALL == 'yes': 303 self.init_environment() 304 305 306 def register_interface_magics(self): 307 """ 308 Register magics for each of the Sage interfaces 309 """ 310 from sage.misc.superseded import deprecation /home/stumpc5/progs/sage/local/lib/python2.7/site-packages/sage/all.py in <module>() 84 from sage.ext.c_lib import AlarmInterrupt, SignalError 85 86 import sage.misc.lazy_import 87 from sage.misc.all import * # takes a while 88 from sage.repl.all import * 89 90 from sage.misc.sh import sh 91 92 from sage.libs.all import * 93 from sage.doctest.all import * 94 try: 95 from sage.dev.all import * 96 except ImportError: 97 pass # dev scripts are disabled 98 ---> 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.schemes.all import * 110 from sage.graphs.all import * 111 from sage.groups.all import * 112 from sage.databases.all import * 113 from sage.structure.all import * 114 from sage.categories.all import * /home/stumpc5/progs/sage/local/lib/python2.7/site-packages/sage/rings/all.pyc in <module>() 53 54 # Rational numbers 55 from rational_field import RationalField, QQ 56 from rational import Rational 57 Rationals = RationalField 58 59 # Integers modulo n. 60 from sage.rings.finite_rings.integer_mod_ring import IntegerModRing, Zmod 61 from sage.rings.finite_rings.integer_mod import IntegerMod, Mod, mod 62 Integers = IntegerModRing 63 64 # Finite fields 65 from finite_rings.all import * 66 67 # Number field ---> 68 from number_field.all import * global number_field.all = undefined 69 70 # Function field 71 from function_field.all import * 72 73 # p-adic field 74 from padics.all import * 75 from padics.padic_printing import _printer_defaults as padic_printing 76 77 # Semirings 78 from semirings.all import * 79 80 # Real numbers 81 from real_mpfr import (RealField, RR, 82 create_RealNumber as RealNumber) # this is used by the preparser to wrap real literals -- very important. 83 Reals = RealField /home/stumpc5/progs/sage/local/lib/python2.7/site-packages/sage/rings/number_field/all.py in <module>() 1 from number_field_base import is_NumberField 2 3 from number_field import (NumberField, NumberFieldTower, CyclotomicField, QuadraticField, 4 is_CyclotomicField, is_QuadraticField, 5 is_AbsoluteNumberField, 6 is_fundamental_discriminant) 7 from number_field_element import (NumberFieldElement, is_NumberFieldElement) 8 from number_field_ideal import is_NumberFieldIdeal, is_NumberFieldFractionalIdeal 9 10 from number_field_rel import is_RelativeNumberField 11 12 from number_field_ideal_rel import is_NumberFieldFractionalIdeal_rel 13 14 from order import is_NumberFieldOrder, EquationOrder 15 ---> 16 from totallyreal import enumerate_totallyreal_fields_prim global totallyreal = undefined global enumerate_totallyreal_fields_prim = undefined 17 from totallyreal_data import hermite_constant 18 from totallyreal_rel import enumerate_totallyreal_fields_all, enumerate_totallyreal_fields_rel 19 20 from unit_group import UnitGroup /home/stumpc5/progs/sage-5.6/totallyreal_data.pxd in init sage.rings.number_field.totallyreal (sage/rings/number_field/totallyreal.c:7909)() /home/stumpc5/progs/sage-5.6/totallyreal_data.pyx in init sage.rings.number_field.totallyreal_data (sage/rings/number_field/totallyreal_data.c:9189)() /home/stumpc5/progs/sage/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) 452 arg2 = [str(x) for x in arg2] 453 if isinstance(arg2, (int, long, Integer)): 454 # 3. PolynomialRing(base_ring, names, n, order='degrevlex'): 455 if not isinstance(arg1, (list, tuple, str)): 456 raise TypeError("You *must* specify the names of the variables.") 457 n = int(arg2) 458 names = arg1 459 R = _multi_variate(base_ring, names, n, sparse, order, implementation) 460 461 elif isinstance(arg1, str) or (isinstance(arg1, (list,tuple)) and len(arg1) == 1): 462 if not ',' in arg1: 463 # 1. PolynomialRing(base_ring, name, sparse=False): 464 if not arg2 is None: 465 raise TypeError("if second arguments is a string with no commas, then there must be no other non-optional arguments") 466 name = arg1 --> 467 R = _single_variate(base_ring, name, sparse, implementation) R = None global _single_variate = <function _single_variate at 0x2a31488> base_ring = Integer Ring name = 'x' sparse = False implementation = None 468 else: 469 # 2-4. PolynomialRing(base_ring, names, order='degrevlex'): 470 if not arg2 is None: 471 raise TypeError("invalid input to PolynomialRing function; please see the docstring for that function") 472 names = arg1.split(',') 473 n = len(names) 474 R = _multi_variate(base_ring, names, n, sparse, order, implementation) 475 elif isinstance(arg1, (list, tuple)): 476 # PolynomialRing(base_ring, names (list or tuple), order='degrevlex'): 477 names = arg1 478 n = len(names) 479 R = _multi_variate(base_ring, names, n, sparse, order, implementation) 480 481 if arg1 is None and arg2 is None: 482 raise TypeError("you *must* specify the indeterminates (as not None).") /home/stumpc5/progs/sage/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) 526 R = m.PolynomialRing_dense_padic_field_capped_relative(base_ring, name) 527 528 elif isinstance(base_ring, padic_base_leaves.pAdicRingCappedRelative): 529 R = m.PolynomialRing_dense_padic_ring_capped_relative(base_ring, name) 530 531 elif isinstance(base_ring, padic_base_leaves.pAdicRingCappedAbsolute): 532 R = m.PolynomialRing_dense_padic_ring_capped_absolute(base_ring, name) 533 534 elif isinstance(base_ring, padic_base_leaves.pAdicRingFixedMod): 535 R = m.PolynomialRing_dense_padic_ring_fixed_mod(base_ring, name) 536 537 elif base_ring.is_field(proof = False): 538 R = m.PolynomialRing_field(base_ring, name, sparse) 539 540 elif base_ring.is_integral_domain(proof = False): --> 541 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 542 else: 543 R = m.PolynomialRing_commutative(base_ring, name, sparse) 544 else: 545 R = m.PolynomialRing_general(base_ring, name, sparse) 546 547 if hasattr(R, '_implementation_names'): 548 for name in R._implementation_names: 549 real_key = key[0:3] + (name,) 550 _save_in_cache(real_key, R) 551 else: 552 _save_in_cache(key, R) 553 return R 554 555 def _multi_variate(base_ring, names, n, sparse, order, implementation): 556 # if not sparse: /home/stumpc5/progs/sage/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'>) 1438 if is_IntegerRing(base_ring) and not sparse: 1439 if implementation == 'NTL': 1440 from sage.rings.polynomial.polynomial_integer_dense_ntl \ 1441 import Polynomial_integer_dense_ntl 1442 element_class = Polynomial_integer_dense_ntl 1443 self._implementation_names = ('NTL',) 1444 self._implementation_repr = ' (using NTL)' 1445 elif implementation == 'FLINT' or implementation is None: 1446 from sage.rings.polynomial.polynomial_integer_dense_flint \ 1447 import Polynomial_integer_dense_flint 1448 element_class = Polynomial_integer_dense_flint 1449 self._implementation_names = (None, 'FLINT') 1450 else: 1451 raise ValueError("Unknown implementation %s for ZZ[x]"%implementation) 1452 PolynomialRing_commutative.__init__(self, base_ring, name=name, -> 1453 sparse=sparse, element_class=element_class) sparse = False element_class = <type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'> 1454 1455 def _repr_(self): 1456 """ 1457 TESTS:: 1458 1459 sage: from sage.rings.polynomial.polynomial_ring import PolynomialRing_integral_domain as PRing 1460 sage: R = PRing(ZZ, 'x', implementation='NTL'); R 1461 Univariate Polynomial Ring in x over Integer Ring (using NTL) 1462 """ 1463 s = PolynomialRing_commutative._repr_(self) 1464 return s + self._implementation_repr 1465 1466 1467 class PolynomialRing_field(PolynomialRing_integral_domain, 1468 PolynomialRing_singular_repr, /home/stumpc5/progs/sage/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...ategory of commutative algebras over Integer Ring) 1358 if max_degree is not None and of_degree is None: 1359 return self._monics_max( max_degree ) 1360 raise ValueError("you should pass exactly one of of_degree and max_degree") 1361 1362 class PolynomialRing_commutative(PolynomialRing_general, commutative_algebra.CommutativeAlgebra): 1363 """ 1364 Univariate polynomial ring over a commutative ring. 1365 """ 1366 def __init__(self, base_ring, name=None, sparse=False, element_class=None, category=None): 1367 if base_ring not in _CommutativeRings: 1368 raise TypeError("Base ring %s must be a commutative ring."%repr(base_ring)) 1369 # We trust that, if a category is given, that it is useful. 1370 if category is None: 1371 category = polynomial_default_category(base_ring,False) 1372 PolynomialRing_general.__init__(self, base_ring, name=name, -> 1373 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 Integer Ring 1374 1375 def quotient_by_principal_ideal(self, f, names=None): 1376 """ 1377 Return the quotient of this polynomial ring by the principal 1378 ideal (generated by) `f`. 1379 1380 INPUT: 1381 1382 - ``f`` - either a polynomial in ``self``, or a principal 1383 ideal of ``self``. 1384 1385 EXAMPLES:: 1386 1387 sage: R.<x> = QQ[] 1388 sage: I = (x^2-1)*R /home/stumpc5/progs/sage/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...ategory of commutative algebras over Integer Ring) 279 self._has_singular = False 280 # Algebra.__init__ also calls __init_extra__ of Algebras(...).parent_class, which 281 # tries to provide a conversion from the base ring, if it does not exist. 282 # This is for algebras that only do the generic stuff in their initialisation. 283 # But the attribute _no_generic_basering_coercion prevents that from happening, 284 # since we want to use PolynomialBaseringInjection. 285 sage.algebras.algebra.Algebra.__init__(self, base_ring, names=name, normalize=True, category=category) 286 self.__generator = self._polynomial_class(self, [0,1], is_gen=True) 287 self._populate_coercion_lists_( 288 #coerce_list = [base_inject], 289 #convert_list = [list, base_inject], 290 convert_method_name = '_polynomial_') 291 if is_PolynomialRing(base_ring): 292 self._Karatsuba_threshold = 0 293 else: --> 294 from sage.matrix.matrix_space import is_MatrixSpace global sage.matrix.matrix_space = undefined is_MatrixSpace = undefined 295 if is_MatrixSpace(base_ring): 296 self._Karatsuba_threshold = 0 297 else: 298 self._Karatsuba_threshold = 8 299 300 def __reduce__(self): 301 import sage.rings.polynomial.polynomial_ring_constructor 302 return (sage.rings.polynomial.polynomial_ring_constructor.PolynomialRing, 303 (self.base_ring(), self.variable_name(), None, self.is_sparse())) 304 305 306 def _element_constructor_(self, x=None, check=True, is_gen = False, construct=False, **kwds): 307 r""" 308 Convert ``x`` into this univariate polynomial ring, 309 possibly non-canonically. /home/stumpc5/progs/sage/local/lib/python2.7/site-packages/sage/matrix/matrix_space.pyc in <module>() 33 import matrix 34 import matrix_generic_dense 35 import matrix_generic_sparse 36 37 import matrix_modn_sparse 38 39 import matrix_mod2_dense 40 import matrix_mod2e_dense 41 42 import matrix_integer_dense 43 import matrix_integer_sparse 44 45 import matrix_rational_dense 46 import matrix_rational_sparse 47 ---> 48 import matrix_mpolynomial_dense global matrix_mpolynomial_dense = undefined 49 50 #import padics.matrix_padic_capped_relative_dense 51 52 ## import matrix_cyclo_dense 53 ## import matrix_cyclo_sparse 54 55 56 # Sage imports 57 import sage.structure.coerce 58 import sage.structure.parent_gens as parent_gens 59 from sage.structure.unique_representation import UniqueRepresentation 60 from sage.rings.all import ZZ 61 import sage.rings.ring as ring 62 import sage.rings.rational_field as rational_field 63 import sage.rings.integer_ring as integer_ring ImportError: libntl.so.2: cannot open shared object file: No such file or directory *************************************************************************** History of session input: *** Last line of input (may not be in above history):