>
> Post the Sage_crash_report.txt
> (Sage 6.9rc0 with xcode 7 under macosx 10.11)
>
Here it is:
***************************************************************************
IPython post-mortem report
{'commit_hash': u'2f7c727',
'commit_source': 'installation',
'default_encoding': 'UTF-8',
'ipython_path': '/Applications/sage-6.9.rc0/local/lib/python2.7/site-packages/IPython',
'ipython_version': '4.0.0',
'os_name': 'posix',
'platform': 'Darwin-15.0.0-x86_64-i386-64bit',
'sys_executable': '/Applications/sage-6.9.rc0/local/bin/python',
'sys_platform': 'darwin',
'sys_version': '2.7.9 (default, Sep 26 2015, 01:38:56) \n[GCC 4.9.2]'}
***************************************************************************
***************************************************************************
Crash traceback:
---------------------------------------------------------------------------
---------------------------------------------------------------------------
ImportError Python 2.7.9: /Applications/sage-6.9.rc0/local/bin/python
Sat Sep 26 13:33:08 2015
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.
/Applications/sage-6.9.rc0/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 0x103d9b510>>
14 app.start()
/Applications/sage-6.9.rc0/local/lib/python2.7/site-packages/IPython/terminal/ipapp.pyc in initialize(self=<sage.repl.interpreter.SageTerminalApp object>, argv=None)
/Applications/sage-6.9.rc0/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 0x104789de8>
app = <sage.repl.interpreter.SageTerminalApp object at 0x103d9b510>
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,
/Applications/sage-6.9.rc0/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 0x103d9b510>>
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,
/Applications/sage-6.9.rc0/local/lib/python2.7/site-packages/sage/repl/interpreter.pyc in init_shell(self=<sage.repl.interpreter.SageTerminalApp object>)
797 self.shell.has_sage_extensions = SAGE_EXTENSION in self.extensions
798
799 # Load the %lprun extension if available
800 try:
801 import line_profiler
802 except ImportError:
803 pass
804 else:
805 self.extensions.append('line_profiler')
806
807 if self.shell.has_sage_extensions:
808 self.extensions.remove(SAGE_EXTENSION)
809
810 # load sage extension here to get a crash if
811 # something is wrong with the sage library
--> 812 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 0x104e22d90>>
global SAGE_EXTENSION = 'sage'
813
814
/Applications/sage-6.9.rc0/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 0x104e22d90>>
mod = <module 'sage' from '/Applications/sage-6.9.rc0/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:
/Applications/sage-6.9.rc0/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 '/Applications/sage-6.9.rc0/...l/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 0x103d9f0c8>
self.shell = <sage.repl.interpreter.SageTerminalInteractiveShell object at 0x1047a79d0>
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.
/Applications/sage-6.9.rc0/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 0x104e44488>
args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at 0x1047a79d0>,)
/Applications/sage-6.9.rc0/local/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in wrapper(*args=(<sage.repl.interpreter.SageTerminalInteractiveShell object>,), **kwargs={})
452 ....: if work:
453 ....: return 'foo worked'
454 ....: raise RuntimeError("foo didn't work")
455 sage: foo(False)
456 Traceback (most recent call last):
457 ...
458 RuntimeError: foo didn't work
459 sage: foo(True)
460 'foo worked'
461 sage: foo(False)
462 sage: foo(True)
463 """
464 @wraps(func)
465 def wrapper(*args, **kwargs):
466 if not wrapper.has_run:
--> 467 result = func(*args, **kwargs)
result = undefined
global func = undefined
args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at 0x1047a79d0>,)
kwargs = {}
468 wrapper.has_run = True
469 return result
470 wrapper.has_run = False
471 return wrapper
472
473
474 @run_once
475 def load_ipython_extension(ip):
476 """
477 Load the extension in IPython.
478 """
479 # this modifies ip
480 SageCustomizations(shell=ip)
/Applications/sage-6.9.rc0/local/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in load_ipython_extension(ip=<sage.repl.interpreter.SageTerminalInteractiveShell object>)
465 def wrapper(*args, **kwargs):
466 if not wrapper.has_run:
467 result = func(*args, **kwargs)
468 wrapper.has_run = True
469 return result
470 wrapper.has_run = False
471 return wrapper
472
473
474 @run_once
475 def load_ipython_extension(ip):
476 """
477 Load the extension in IPython.
478 """
479 # this modifies ip
--> 480 SageCustomizations(shell=ip)
global SageCustomizations = <class 'sage.repl.ipython_extension.SageCustomizations'>
global shell = undefined
ip = <sage.repl.interpreter.SageTerminalInteractiveShell object at 0x1047a79d0>
/Applications/sage-6.9.rc0/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>)
334 self.shell.register_magics(self.auto_magics)
335
336 import sage.repl.display.formatter as formatter
337 self.shell.display_formatter.formatters['text/plain'] = (
338 formatter.SagePlainTextFormatter(config=shell.config))
339
340 import sage.misc.edit_module as edit_module
341 self.shell.set_hook('editor', edit_module.edit_devel)
342
343 self.init_inspector()
344 self.init_line_transforms()
345
346 import inputhook
347 inputhook.install()
348
--> 349 import sage.all # until sage's import hell is fixed
sage.all = undefined
350
351 self.shell.verbose_quit = True
352 self.set_quit_hook()
353
354 self.register_interface_magics()
355
356 if SAGE_IMPORTALL == 'yes':
357 self.init_environment()
358
359
360 def register_interface_magics(self):
361 """
362 Register magics for each of the Sage interfaces
363 """
364 from sage.misc.superseded import deprecation
/Applications/sage-6.9.rc0/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.schemes.all import *
110 from sage.graphs.all import *
111 from sage.groups.all import *
112 from sage.databases.all import *
113 from sage.categories.all import *
114 from sage.sets.all import *
/Applications/sage-6.9.rc0/local/lib/python2.7/site-packages/sage/rings/all.pyc 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
/Applications/sage-6.9.rc0/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
/Applications/sage-6.9.rc0/local/lib/python2.7/site-packages/sage/rings/number_field/totallyreal_data.pxd in init sage.rings.number_field.totallyreal (/Applications/sage-6.9.rc0/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 (/Applications/sage-6.9.rc0/src/build/cythonized/sage/rings/number_field/totallyreal_data.c:11695)()
/Applications/sage-6.9.rc0/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)
450 arg2 = [str(x) for x in arg2]
451 if isinstance(arg2, (int, long, Integer)):
452 # 3. PolynomialRing(base_ring, names, n, order='degrevlex'):
453 if not isinstance(arg1, (list, tuple, str)):
454 raise TypeError("You *must* specify the names of the variables.")
455 n = int(arg2)
456 names = arg1
457 R = _multi_variate(base_ring, names, n, sparse, order, implementation)
458
459 elif isinstance(arg1, str) or (isinstance(arg1, (list,tuple)) and len(arg1) == 1):
460 if not ',' in arg1:
461 # 1. PolynomialRing(base_ring, name, sparse=False):
462 if not arg2 is None:
463 raise TypeError("if second arguments is a string with no commas, then there must be no other non-optional arguments")
464 name = arg1
--> 465 R = _single_variate(base_ring, name, sparse, implementation)
R = None
global _single_variate = <function _single_variate at 0x1092b38c0>
base_ring = Integer Ring
name = 'x'
sparse = False
implementation = None
466 else:
467 # 2-4. PolynomialRing(base_ring, names, order='degrevlex'):
468 if not arg2 is None:
469 raise TypeError("invalid input to PolynomialRing function; please see the docstring for that function")
470 names = arg1.split(',')
471 n = len(names)
472 R = _multi_variate(base_ring, names, n, sparse, order, implementation)
473 elif isinstance(arg1, (list, tuple)):
474 # PolynomialRing(base_ring, names (list or tuple), order='degrevlex'):
475 names = arg1
476 n = len(names)
477 R = _multi_variate(base_ring, names, n, sparse, order, implementation)
478
479 if arg1 is None and arg2 is None:
480 raise TypeError("you *must* specify the indeterminates (as not None).")
/Applications/sage-6.9.rc0/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)
524 R = m.PolynomialRing_dense_padic_field_capped_relative(base_ring, name)
525
526 elif isinstance(base_ring, padic_base_leaves.pAdicRingCappedRelative):
527 R = m.PolynomialRing_dense_padic_ring_capped_relative(base_ring, name)
528
529 elif isinstance(base_ring, padic_base_leaves.pAdicRingCappedAbsolute):
530 R = m.PolynomialRing_dense_padic_ring_capped_absolute(base_ring, name)
531
532 elif isinstance(base_ring, padic_base_leaves.pAdicRingFixedMod):
533 R = m.PolynomialRing_dense_padic_ring_fixed_mod(base_ring, name)
534
535 elif base_ring.is_field(proof = False):
536 R = m.PolynomialRing_field(base_ring, name, sparse)
537
538 elif base_ring.is_integral_domain(proof = False):
--> 539 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
540 else:
541 R = m.PolynomialRing_commutative(base_ring, name, sparse)
542 else:
543 R = m.PolynomialRing_general(base_ring, name, sparse)
544
545 if hasattr(R, '_implementation_names'):
546 for name in R._implementation_names:
547 real_key = key[0:3] + (name,)
548 _save_in_cache(real_key, R)
549 else:
550 _save_in_cache(key, R)
551 return R
552
553 def _multi_variate(base_ring, names, n, sparse, order, implementation):
554 # if not sparse:
/Applications/sage-6.9.rc0/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,
/Applications/sage-6.9.rc0/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... (euclidean domains and infinite enumerated sets))
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)
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
/Applications/sage-6.9.rc0/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... (euclidean domains and infinite enumerated sets))
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.
/Applications/sage-6.9.rc0/local/lib/python2.7/site-packages/sage/matrix/matrix_space.pyc in <module>()
42 import matrix
43 import matrix_generic_dense
44 import matrix_generic_sparse
45
46 import matrix_modn_sparse
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
global matrix_mpolynomial_dense = undefined
58
59
60 # Sage imports
61 from sage.misc.superseded import deprecation
62 import sage.structure.coerce
63 import sage.structure.parent_gens as parent_gens
64 from sage.structure.unique_representation import UniqueRepresentation
65 import sage.rings.integer as integer
66 import sage.rings.number_field.all
67 import sage.rings.finite_rings.integer_mod_ring
68 import sage.rings.finite_rings.constructor
69 import sage.rings.polynomial.multi_polynomial_ring_generic
70 import sage.misc.latex as latex
71 import sage.modules.free_module
72 from sage.structure.sequence import Sequence
ImportError: dlopen(/Applications/sage-6.9.rc0/local/lib/python2.7/site-packages/sage/matrix/matrix_mpolynomial_dense.so, 2): Library not loaded: libsingular.dylib
Referenced from: /Applications/sage-6.9.rc0/local/lib/python2.7/site-packages/sage/matrix/matrix_mpolynomial_dense.so
Reason: image not found
***************************************************************************
History of session input:
*** Last line of input (may not be in above history):