*************************************************************************** IPython post-mortem report {'commit_hash': 'bf6aeb906d', 'commit_source': 'installation', 'default_encoding': 'utf-8', 'ipython_path': '/.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/IPython', 'ipython_version': '7.29.0', 'os_name': 'posix', 'platform': 'Linux-3.10.0-1160.53.1.el7.x86_64-x86_64-with-glibc2.17', 'sys_executable': '/.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/bin/python3', 'sys_platform': 'linux', 'sys_version': '3.10.3 (main, Feb 5 2023, 08:47:12) [GCC 8.5.0]'} *************************************************************************** *************************************************************************** Crash traceback: --------------------------------------------------------------------------- --------------------------------------------------------------------------- ImportErrorPython 3.10.3: /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/bin/python3 Mon Feb 6 15:20:10 2023 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. /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/bin/sage-ipython in 1 #!/.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/bin/python3 2 # -*- coding: utf-8 -*- 3 """ 4 Sage IPython startup script. 5 """ 6 7 # Display startup banner. Do this before anything else to give the user 8 # early feedback that Sage is starting. 9 from sage.misc.banner import banner 10 banner() 11 12 from sage.repl.interpreter import SageTerminalApp 13 14 app = SageTerminalApp.instance() ---> 15 app.initialize() global app.initialize = > 16 app.start() /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/traitlets/config/application.py in inner(app=, *args=(), **kwargs={}) 73 else: 74 raise ValueError("Unsupported value for environment variable: 'TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR' is set to '%s' which is none of {'0', '1', 'false', 'true', ''}."% _envvar ) 75 76 77 def catch_config_error(method): 78 """Method decorator for catching invalid config (Trait/ArgumentErrors) during init. 79 80 On a TraitError (generally caused by bad config), this will print the trait's 81 message, and exit the app. 82 83 For use on init methods, to prevent invoking excepthook on invalid input. 84 """ 85 @functools.wraps(method) 86 def inner(app, *args, **kwargs): 87 try: ---> 88 return method(app, *args, **kwargs) global method = undefined app = args = () kwargs = {} 89 except (TraitError, ArgumentError) as e: 90 app.log.fatal("Bad config encountered during initialization: %s", e) 91 app.log.debug("Config at the time: %s", app.config) 92 app.exit(1) 93 94 return inner 95 96 class ApplicationError(Exception): 97 pass 98 99 100 class LevelFormatter(logging.Formatter): 101 """Formatter with additional `highlevel` record 102 103 This field is empty if log level is less than highlevel_limit, /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/IPython/terminal/ipapp.py in initialize(self=, argv=None) 302 303 return super(TerminalIPythonApp, self).parse_command_line(argv) 304 305 @catch_config_error 306 def initialize(self, argv=None): 307 """Do actions after construct, but before starting the app.""" 308 super(TerminalIPythonApp, self).initialize(argv) 309 if self.subapp is not None: 310 # don't bother initializing further, starting subapp 311 return 312 # print self.extra_args 313 if self.extra_args and not self.something_to_run: 314 self.file_to_run = self.extra_args[0] 315 self.init_path() 316 # create the shell --> 317 self.init_shell() self.init_shell = > 318 # and draw the banner 319 self.init_banner() 320 # Now a variety of things that happen after the banner is printed. 321 self.init_gui_pylab() 322 self.init_extensions() 323 self.init_code() 324 325 def init_shell(self): 326 """initialize the InteractiveShell instance""" 327 # Create an InteractiveShell instance. 328 # shell.display_banner should always be False for the terminal 329 # based app, because we call shell.show_banner() by hand below 330 # so the banner shows *before* all extension loading stuff. 331 self.shell = self.interactive_shell_class.instance(parent=self, 332 profile_dir=self.profile_dir, /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/repl/interpreter.py in init_shell(self=) 772 773 # Load the %lprun extension if available 774 try: 775 import line_profiler 776 assert line_profiler # silence pyflakes 777 except ImportError: 778 pass 779 else: 780 self.extensions.append('line_profiler') 781 782 if self.shell.has_sage_extensions: 783 self.extensions.remove(SAGE_EXTENSION) 784 785 # load sage extension here to get a crash if 786 # something is wrong with the sage library --> 787 self.shell.extension_manager.load_extension(SAGE_EXTENSION) self.shell.extension_manager.load_extension = > global SAGE_EXTENSION = 'sage' /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/IPython/core/extensions.py in load_extension(self=, module_str='sage') 72 if module_str in self.loaded: 73 return "already loaded" 74 75 from IPython.utils.syspathcontext import prepended_to_syspath 76 77 with self.shell.builtin_trap: 78 if module_str not in sys.modules: 79 with prepended_to_syspath(self.ipython_extension_dir): 80 mod = import_module(module_str) 81 if mod.__file__.startswith(self.ipython_extension_dir): 82 print(("Loading extensions from {dir} is deprecated. " 83 "We recommend managing extensions like any " 84 "other Python packages, in site-packages.").format( 85 dir=compress_user(self.ipython_extension_dir))) 86 mod = sys.modules[module_str] ---> 87 if self._call_load_ipython_extension(mod): self._call_load_ipython_extension = > mod = 88 self.loaded.add(module_str) 89 else: 90 return "no load function" 91 92 def unload_extension(self, module_str): 93 """Unload an IPython extension by its module name. 94 95 This function looks up the extension's name in ``sys.modules`` and 96 simply calls ``mod.unload_ipython_extension(self)``. 97 98 Returns the string "no unload function" if the extension doesn't define 99 a function to unload itself, "not loaded" if the extension isn't loaded, 100 otherwise None. 101 """ 102 if module_str not in self.loaded: /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/IPython/core/extensions.py in _call_load_ipython_extension(self=, mod=) 119 """ 120 from IPython.utils.syspathcontext import prepended_to_syspath 121 122 if (module_str in self.loaded) and (module_str in sys.modules): 123 self.unload_extension(module_str) 124 mod = sys.modules[module_str] 125 with prepended_to_syspath(self.ipython_extension_dir): 126 reload(mod) 127 if self._call_load_ipython_extension(mod): 128 self.loaded.add(module_str) 129 else: 130 self.load_extension(module_str) 131 132 def _call_load_ipython_extension(self, mod): 133 if hasattr(mod, 'load_ipython_extension'): --> 134 mod.load_ipython_extension(self.shell) mod.load_ipython_extension = self.shell = 135 return True 136 137 def _call_unload_ipython_extension(self, mod): 138 if hasattr(mod, 'unload_ipython_extension'): 139 mod.unload_ipython_extension(self.shell) 140 return True 141 142 @undoc 143 def install_extension(self, url, filename=None): 144 """ 145 Deprecated. 146 """ 147 # Ensure the extension directory exists 148 raise DeprecationWarning( 149 '`install_extension` and the `install_ext` magic have been deprecated since IPython 4.0' /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/repl/__init__.py in load_ipython_extension(*args=(,)) 1 # IPython calls this when "%load_ext sage.repl" is used. 2 # The Sage application loads it when starting up. 3 def load_ipython_extension(*args): 4 import sage.repl.ipython_extension ----> 5 sage.repl.ipython_extension.load_ipython_extension(*args) sage.repl.ipython_extension.load_ipython_extension = args = (,) 6 7 8 # The above used to be in sage.__init__, allowing users to use "%load_ext sage". 9 # But we are clearing out the __init__.py file as a preparation for 10 # making sage a native namespace package. 11 # 12 # So we make "%load_ext sage" work by monkey-patching the function 13 # into the sage package upon importing sage.repl. 14 import sage 15 sage.load_ipython_extension = load_ipython_extension /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/repl/ipython_extension.py in wrapper(*args=(,), **kwargs={}) 591 ....: if work: 592 ....: return 'foo worked' 593 ....: raise RuntimeError("foo didn't work") 594 sage: foo(False) 595 Traceback (most recent call last): 596 ... 597 RuntimeError: foo didn't work 598 sage: foo(True) 599 'foo worked' 600 sage: foo(False) 601 sage: foo(True) 602 """ 603 @wraps(func) 604 def wrapper(*args, **kwargs): 605 if not wrapper.has_run: --> 606 result = func(*args, **kwargs) result = undefined global func = undefined args = (,) kwargs = {} 607 wrapper.has_run = True 608 return result 609 wrapper.has_run = False 610 return wrapper 611 612 613 @run_once 614 def load_ipython_extension(ip): 615 """ 616 Load the extension in IPython. 617 """ 618 # this modifies ip 619 SageCustomizations(shell=ip) /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/repl/ipython_extension.py in load_ipython_extension(ip=) 604 def wrapper(*args, **kwargs): 605 if not wrapper.has_run: 606 result = func(*args, **kwargs) 607 wrapper.has_run = True 608 return result 609 wrapper.has_run = False 610 return wrapper 611 612 613 @run_once 614 def load_ipython_extension(ip): 615 """ 616 Load the extension in IPython. 617 """ 618 # this modifies ip --> 619 SageCustomizations(shell=ip) global SageCustomizations = global shell = undefined ip = /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/repl/ipython_extension.py in __init__(self=, shell=) 419 def __init__(self, shell=None): 420 """ 421 Initialize the Sage plugin. 422 """ 423 self.shell = shell 424 425 self.auto_magics = SageMagics(shell) 426 self.shell.register_magics(self.auto_magics) 427 428 import sage.misc.edit_module as edit_module 429 self.shell.set_hook('editor', edit_module.edit_devel) 430 431 self.init_inspector() 432 self.init_line_transforms() 433 --> 434 import sage.all # until sage's import hell is fixed sage.all = undefined 435 436 self.shell.verbose_quit = True 437 438 self.register_interface_magics() 439 440 if SAGE_IMPORTALL == 'yes': 441 self.init_environment() 442 443 def register_interface_magics(self): 444 """ 445 Register magics for each of the Sage interfaces 446 """ 447 from sage.repl.interface_magic import InterfaceMagic 448 InterfaceMagic.register_all(self.shell) 449 /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/all.py in 123 124 from sage.misc.sh import sh 125 126 from sage.libs.all import * 127 from sage.data_structures.all import * 128 from sage.doctest.all import * 129 130 from sage.structure.all import * 131 from sage.rings.all import * 132 from sage.arith.all import * 133 from sage.matrix.all import * 134 135 from sage.symbolic.all import * 136 from sage.modules.all import * 137 from sage.monoids.all import * --> 138 from sage.algebras.all import * global sage.algebras.all = undefined 139 from sage.modular.all import * 140 from sage.sat.all import * 141 from sage.schemes.all import * 142 from sage.graphs.all import * 143 from sage.groups.all import * 144 from sage.arith.power import generic_power as power 145 from sage.databases.all import * 146 from sage.categories.all import * 147 from sage.sets.all import * 148 from sage.probability.all import * 149 from sage.interfaces.all import * 150 151 from sage.functions.all import * 152 from sage.calculus.all import * 153 /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/algebras/all.py in 6 # Copyright (C) 2005 William Stein 7 # 8 # Distributed under the terms of the GNU General Public License (GPL) 9 # 10 # This code is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 # General Public License for more details. 14 # 15 # The full text of the GPL is available at: 16 # 17 # http://www.gnu.org/licenses/ 18 #***************************************************************************** 19 from sage.misc.lazy_import import lazy_import 20 ---> 21 import sage.algebras.catalog as algebras global sage.algebras.catalog = undefined global algebras = undefined 22 23 from .quantum_groups.all import * 24 from .quatalg.all import * 25 26 # Algebra base classes 27 from .algebra import Algebra 28 from .free_algebra import FreeAlgebra 29 from .free_algebra_quotient import FreeAlgebraQuotient 30 31 from .steenrod.all import * 32 from .lie_algebras.all import * 33 from .quantum_groups.all import * 34 from .lie_conformal_algebras.all import * 35 36 from .finite_dimensional_algebras.all import FiniteDimensionalAlgebra /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/algebras/catalog.py in 65 - :class:`algebras.RationalCherednik 66 ` 67 - :class:`algebras.Schur ` 68 - :class:`algebras.Shuffle ` 69 - :class:`algebras.Steenrod 70 ` 71 - :class:`algebras.TemperleyLieb ` 72 - :class:`algebras.WQSym ` 73 - :class:`algebras.Yangian ` 74 - :class:`algebras.YokonumaHecke 75 ` 76 - :class:`algebras.Tensor ` 77 """ 78 79 from sage.algebras.free_algebra import FreeAlgebra as Free ---> 80 from sage.algebras.quatalg.quaternion_algebra import QuaternionAlgebra as Quaternion global sage.algebras.quatalg.quaternion_algebra = undefined global QuaternionAlgebra = undefined global Quaternion = undefined 81 from sage.algebras.steenrod.steenrod_algebra import SteenrodAlgebra as Steenrod 82 from sage.algebras.finite_dimensional_algebras.finite_dimensional_algebra import FiniteDimensionalAlgebra as FiniteDimensional 83 from sage.algebras.group_algebra import GroupAlgebra as Group 84 from sage.algebras.clifford_algebra import CliffordAlgebra as Clifford 85 from sage.algebras.clifford_algebra import ExteriorAlgebra as Exterior 86 from sage.algebras.weyl_algebra import DifferentialWeylAlgebra as DifferentialWeyl 87 from sage.algebras.lie_algebras.lie_algebra import LieAlgebra as Lie 88 89 from sage.misc.lazy_import import lazy_import 90 lazy_import('sage.algebras.iwahori_hecke_algebra', 'IwahoriHeckeAlgebra', 'IwahoriHecke') 91 lazy_import('sage.algebras.nil_coxeter_algebra', 'NilCoxeterAlgebra', 'NilCoxeter') 92 lazy_import('sage.algebras.free_zinbiel_algebra', 'FreeZinbielAlgebra', 'FreeZinbiel') 93 lazy_import('sage.algebras.askey_wilson', 'AskeyWilsonAlgebra', 'AskeyWilson') 94 lazy_import('sage.algebras.hall_algebra', 'HallAlgebra', 'Hall') 95 lazy_import('sage.algebras.jordan_algebra', 'JordanAlgebra', 'Jordan') /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/algebras/quatalg/quaternion_algebra.py in 53 from sage.matrix.matrix_space import MatrixSpace 54 from sage.matrix.constructor import diagonal_matrix, matrix 55 from sage.structure.sequence import Sequence 56 from sage.structure.element import is_RingElement 57 from sage.structure.factory import UniqueFactory 58 from sage.modules.free_module import FreeModule 59 from sage.modules.free_module_element import vector 60 61 from operator import itemgetter 62 63 from .quaternion_algebra_element import ( 64 QuaternionAlgebraElement_abstract, 65 QuaternionAlgebraElement_generic, 66 QuaternionAlgebraElement_rational_field, 67 QuaternionAlgebraElement_number_field) ---> 68 from . import quaternion_algebra_cython global quaternion_algebra_cython = undefined 69 70 from sage.modular.modsym.p1list import P1List 71 72 from sage.misc.cachefunc import cached_method 73 74 from sage.categories.algebras import Algebras 75 76 ######################################################## 77 # Constructor 78 ######################################################## 79 80 81 class QuaternionAlgebraFactory(UniqueFactory): 82 r""" 83 Construct a quaternion algebra. /.ccs/common/pkg/sage-9.6/sage-9.6/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/algebras/quatalg/quaternion_algebra_cython.pyx in init sage.algebras.quatalg.quaternion_algebra_cython (build/cythonized/sage/algebras/quatalg/quaternion_algebra_cython.cpp:6330)() ----> 1 # distutils: language = c++ 2 # distutils: libraries = gmp m NTL_LIBRARIES 3 # distutils: extra_compile_args = NTL_CFLAGS 4 # distutils: include_dirs = NTL_INCDIR 5 # distutils: library_dirs = NTL_LIBDIR 6 # distutils: extra_link_args = NTL_LIBEXTRA 7 """ 8 Optimized Cython code needed by quaternion algebras 9 10 This is a collection of miscellaneous routines that are in Cython for 11 speed purposes and are used by the quaternion algebra code. For 12 example, there are functions for quickly constructing an n x 4 matrix 13 from a list of n rational quaternions. 14 15 AUTHORS: 16 17 - William Stein 18 19 """ 20 21 # **************************************************************************** 22 # Copyright (C) 2009 William Stein 23 # 24 # This program is free software: you can redistribute it and/or modify 25 # it under the terms of the GNU General Public License as published by 26 # the Free Software Foundation, either version 2 of the License, or 27 # (at your option) any later version. 28 # http://www.gnu.org/licenses/ 29 # **************************************************************************** 30 31 from sage.rings.integer_ring import ZZ ImportError: libfflas.so.1: cannot open shared object file: No such file or directory *************************************************************************** History of session input: *** Last line of input (may not be in above history):