Guest User

/home/jorge/.sage/ipython-5.0.0/Sage_crash_report.txt

a guest
May 30th, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 20.46 KB | None | 0 0
  1. ***************************************************************************
  2.  
  3. IPython post-mortem report
  4.  
  5. {'commit_hash': u'<not found>',
  6.  'commit_source': '(none found)',
  7.  'default_encoding': 'UTF-8',
  8.  'ipython_path': '/ausr/lib/python2.7/site-packages/IPython',
  9.  'ipython_version': '5.6.0',
  10.  'os_name': 'posix',
  11.  'platform': 'Linux-4.14.41-1-lts-x86_64-with-glibc2.2.5',
  12.  'sys_executable': '/usr/bin/python2',
  13.  'sys_platform': 'linux2',
  14.  'sys_version': '2.7.15 (default, May  1 2018, 20:16:04) \n[GCC 7.3.1 20180406]'}
  15.  
  16. ***************************************************************************
  17.  
  18.  
  19.  
  20. ***************************************************************************
  21.  
  22. Crash traceback:
  23.  
  24. ---------------------------------------------------------------------------
  25. ---------------------------------------------------------------------------
  26. ImportError                                 Python 2.7.15: /usr/bin/python2
  27.                                                    Wed May 30 15:11:35 2018
  28. A problem occurred executing Python code.  Here is the sequence of function
  29. calls leading up to the error, with the most recent (innermost) call last.
  30. /usr/bin/sage-ipython in <module>()
  31.       1 #!/usr/bin/env python2
  32.       2 # -*- coding: utf-8 -*-
  33.       3 """
  34.      4 Sage IPython startup script.
  35.      5 """
  36.       6
  37.       7 # Display startup banner. Do this before anything else to give the user
  38.       8 # early feedback that Sage is starting.
  39.       9 from sage.misc.banner import banner
  40.      10 banner()
  41.      11
  42.      12 from sage.repl.interpreter import SageTerminalApp
  43.      13
  44.      14 app = SageTerminalApp.instance()
  45. ---> 15 app.initialize()
  46.         global app.initialize = <bound method SageTerminalApp.initialize of <sage.repl.interpreter.SageTerminalApp object at 0x7fb6164fa090>>
  47.      16 app.start()
  48.  
  49. <decorator-gen-110> in initialize(self=<sage.repl.interpreter.SageTerminalApp object>, argv=None)
  50.  
  51. /usr/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={})
  52.      72     TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR = False
  53.      73 else:
  54.      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 )
  55.      75
  56.      76
  57.      77 @decorator
  58.      78 def catch_config_error(method, app, *args, **kwargs):
  59.      79     """Method decorator for catching invalid config (Trait/ArgumentErrors) during init.
  60.     80
  61.     81     On a TraitError (generally caused by bad config), this will print the trait's
  62.     82     message, and exit the app.
  63.     83
  64.     84     For use on init methods, to prevent invoking excepthook on invalid input.
  65.     85     """
  66.      86     try:
  67. ---> 87         return method(app, *args, **kwargs)
  68.         method = <function initialize at 0x7fb61124d320>
  69.         app = <sage.repl.interpreter.SageTerminalApp object at 0x7fb6164fa090>
  70.         args = (None,)
  71.         kwargs = {}
  72.      88     except (TraitError, ArgumentError) as e:
  73.      89         app.print_help()
  74.      90         app.log.fatal("Bad config encountered during initialization:")
  75.      91         app.log.fatal(str(e))
  76.      92         app.log.debug("Config at the time: %s", app.config)
  77.      93         app.exit(1)
  78.      94
  79.      95
  80.      96 class ApplicationError(Exception):
  81.      97     pass
  82.      98
  83.      99
  84.     100 class LevelFormatter(logging.Formatter):
  85.     101     """Formatter with additional `highlevel` record
  86.    102
  87.  
  88. /usr/lib/python2.7/site-packages/IPython/terminal/ipapp.pyc in initialize(self=<sage.repl.interpreter.SageTerminalApp object>, argv=None)
  89.    301
  90.    302         return super(TerminalIPythonApp, self).parse_command_line(argv)
  91.    303    
  92.    304     @catch_config_error
  93.    305     def initialize(self, argv=None):
  94.    306         """Do actions after construct, but before starting the app."""
  95.    307         super(TerminalIPythonApp, self).initialize(argv)
  96.    308         if self.subapp is not None:
  97.    309             # don't bother initializing further, starting subapp
  98.    310             return
  99.    311         # print self.extra_args
  100.    312         if self.extra_args and not self.something_to_run:
  101.    313             self.file_to_run = self.extra_args[0]
  102.    314         self.init_path()
  103.    315         # create the shell
  104. --> 316         self.init_shell()
  105.        self.init_shell = <bound method SageTerminalApp.init_shell of <sage.repl.interpreter.SageTerminalApp object at 0x7fb6164fa090>>
  106.    317         # and draw the banner
  107.    318         self.init_banner()
  108.    319         # Now a variety of things that happen after the banner is printed.
  109.    320         self.init_gui_pylab()
  110.    321         self.init_extensions()
  111.    322         self.init_code()
  112.    323
  113.    324     def init_shell(self):
  114.    325         """initialize the InteractiveShell instance"""
  115.    326         # Create an InteractiveShell instance.
  116.    327         # shell.display_banner should always be False for the terminal
  117.    328         # based app, because we call shell.show_banner() by hand below
  118.    329         # so the banner shows *before* all extension loading stuff.
  119.    330         self.shell = self.interactive_shell_class.instance(parent=self,
  120.    331                         profile_dir=self.profile_dir,
  121.  
  122. /usr/lib/python2.7/site-packages/sage/repl/interpreter.py in init_shell(self=<sage.repl.interpreter.SageTerminalApp object>)
  123.    747         self.shell.has_sage_extensions = SAGE_EXTENSION in self.extensions
  124.    748
  125.    749         # Load the %lprun extension if available
  126.    750         try:
  127.    751             import line_profiler
  128.    752         except ImportError:
  129.    753             pass
  130.    754         else:
  131.    755             self.extensions.append('line_profiler')
  132.    756
  133.    757         if self.shell.has_sage_extensions:
  134.    758             self.extensions.remove(SAGE_EXTENSION)
  135.    759
  136.    760             # load sage extension here to get a crash if
  137.    761             # something is wrong with the sage library
  138. --> 762             self.shell.extension_manager.load_extension(SAGE_EXTENSION)
  139.        self.shell.extension_manager.load_extension = <bound method ExtensionManager.load_extension of <IPython.core.extensions.ExtensionManager object at 0x7fb6104d8390>>
  140.        global SAGE_EXTENSION = 'sage'
  141.    763
  142.    764
  143.  
  144. /usr/lib/python2.7/site-packages/IPython/core/extensions.pyc in load_extension(self=<IPython.core.extensions.ExtensionManager object>, module_str='sage')
  145.     70
  146.     71         Returns the string "already loaded" if the extension is already loaded,
  147.     72         "no load function" if the module doesn't have a load_ipython_extension
  148.     73         function, or None if it succeeded.
  149.     74         """
  150.      75         if module_str in self.loaded:
  151.      76             return "already loaded"
  152.      77        
  153.      78         from IPython.utils.syspathcontext import prepended_to_syspath
  154.      79        
  155.      80         with self.shell.builtin_trap:
  156.      81             if module_str not in sys.modules:
  157.      82                 with prepended_to_syspath(self.ipython_extension_dir):
  158.      83                     __import__(module_str)
  159.      84             mod = sys.modules[module_str]
  160. ---> 85             if self._call_load_ipython_extension(mod):
  161.         self._call_load_ipython_extension = <bound method ExtensionManager._call_load_ipython_extension of <IPython.core.extensions.ExtensionManager object at 0x7fb6104d8390>>
  162.         mod = <module 'sage' from '/usr/lib/python2.7/site-packages/sage/__init__.py'>
  163.      86                 self.loaded.add(module_str)
  164.      87             else:
  165.      88                 return "no load function"
  166.      89
  167.      90     def unload_extension(self, module_str):
  168.      91         """Unload an IPython extension by its module name.
  169.     92
  170.     93         This function looks up the extension's name in ``sys.modules`` and
  171.     94         simply calls ``mod.unload_ipython_extension(self)``.
  172.     95        
  173.     96         Returns the string "no unload function" if the extension doesn't define
  174.     97         a function to unload itself, "not loaded" if the extension isn't loaded,
  175.     98         otherwise None.
  176.     99         """
  177.     100         if module_str not in self.loaded:
  178.  
  179. /usr/lib/python2.7/site-packages/IPython/core/extensions.pyc in _call_load_ipython_extension(self=<IPython.core.extensions.ExtensionManager object>, mod=<module 'sage' from '/usr/lib/python2.7/site-packages/sage/__init__.py'>)
  180.     117         """
  181.    118         from IPython.utils.syspathcontext import prepended_to_syspath
  182.    119
  183.    120         if (module_str in self.loaded) and (module_str in sys.modules):
  184.    121             self.unload_extension(module_str)
  185.    122             mod = sys.modules[module_str]
  186.    123             with prepended_to_syspath(self.ipython_extension_dir):
  187.    124                 reload(mod)
  188.    125             if self._call_load_ipython_extension(mod):
  189.    126                 self.loaded.add(module_str)
  190.    127         else:
  191.    128             self.load_extension(module_str)
  192.    129
  193.    130     def _call_load_ipython_extension(self, mod):
  194.    131         if hasattr(mod, 'load_ipython_extension'):
  195. --> 132             mod.load_ipython_extension(self.shell)
  196.        mod.load_ipython_extension = <function load_ipython_extension at 0x7fb6189d66e0>
  197.        self.shell = <sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7fb6111e25d0>
  198.    133             return True
  199.    134
  200.    135     def _call_unload_ipython_extension(self, mod):
  201.    136         if hasattr(mod, 'unload_ipython_extension'):
  202.    137             mod.unload_ipython_extension(self.shell)
  203.    138             return True
  204.    139
  205.    140     def install_extension(self, url, filename=None):
  206.    141         """Download and install an IPython extension.
  207.     142
  208.     143         If filename is given, the file will be so named (inside the extension
  209.     144         directory). Otherwise, the name from the URL will be used. The file must
  210.     145         have a .py or .zip extension; otherwise, a ValueError will be raised.
  211.     146
  212.     147         Returns the full path to the installed file.
  213.  
  214. /usr/lib/python2.7/site-packages/sage/__init__.py in load_ipython_extension(*args=(<sage.repl.interpreter.SageTerminalInteractiveShell object>,))
  215.       1 __all__ = ['all']
  216.       2
  217.       3 # Make sure that the correct zlib library is loaded. This is needed
  218.       4 # to prevent the system zlib to be loaded instead of the Sage one.
  219.       5 # See https://trac.sagemath.org/ticket/23122
  220.       6 import zlib
  221.       7
  222.       8 # IPython calls this when starting up
  223.       9 def load_ipython_extension(*args):
  224.      10     import sage.repl.ipython_extension
  225. ---> 11     sage.repl.ipython_extension.load_ipython_extension(*args)
  226.         sage.repl.ipython_extension.load_ipython_extension = <function load_ipython_extension at 0x7fb610073c80>
  227.         args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7fb6111e25d0>,)
  228.      12
  229.      13
  230.      14 # Monkey-patch inspect.isfunction() to support Cython functions.
  231.      15 def isfunction(obj):
  232.      16     """
  233.     17     Check whether something is a function.
  234.     18
  235.     19     We assume that anything which has a genuine ``__code__``
  236.     20     attribute (not using ``__getattr__`` overrides) is a function.
  237.     21     This is meant to support Cython functions.
  238.     22
  239.     23     EXAMPLES::
  240.     24
  241.     25         sage: from inspect import isfunction
  242.     26         sage: def f(): pass
  243.     27         sage: isfunction(f)
  244.     28         True
  245.     29         sage: isfunction(lambda x:x)
  246.     30         True
  247.     31         sage: from sage.categories.coercion_methods import _mul_parent
  248.  
  249. /usr/lib/python2.7/site-packages/sage/repl/ipython_extension.py in wrapper(*args=(<sage.repl.interpreter.SageTerminalInteractiveShell object>,), **kwargs={})
  250.    546         ....:     if work:
  251.    547         ....:         return 'foo worked'
  252.    548         ....:     raise RuntimeError("foo didn't work")
  253.    549         sage: foo(False)
  254.    550         Traceback (most recent call last):
  255.    551         ...
  256.    552         RuntimeError: foo didn't work
  257.    553         sage: foo(True)
  258.    554         'foo worked'
  259.    555         sage: foo(False)
  260.    556         sage: foo(True)
  261.    557     """
  262.     558     @wraps(func)
  263.     559     def wrapper(*args, **kwargs):
  264.     560         if not wrapper.has_run:
  265. --> 561             result = func(*args, **kwargs)
  266.         result = undefined
  267.         global func = undefined
  268.         args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7fb6111e25d0>,)
  269.         kwargs = {}
  270.     562             wrapper.has_run = True
  271.     563             return result
  272.     564     wrapper.has_run = False
  273.     565     return wrapper
  274.     566
  275.     567
  276.     568 @run_once
  277.     569 def load_ipython_extension(ip):
  278.     570     """
  279.    571     Load the extension in IPython.
  280.    572     """
  281.     573     # this modifies ip
  282.     574     SageCustomizations(shell=ip)
  283.  
  284. /usr/lib/python2.7/site-packages/sage/repl/ipython_extension.py in load_ipython_extension(ip=<sage.repl.interpreter.SageTerminalInteractiveShell object>)
  285.     559     def wrapper(*args, **kwargs):
  286.     560         if not wrapper.has_run:
  287.     561             result = func(*args, **kwargs)
  288.     562             wrapper.has_run = True
  289.     563             return result
  290.     564     wrapper.has_run = False
  291.     565     return wrapper
  292.     566
  293.     567
  294.     568 @run_once
  295.     569 def load_ipython_extension(ip):
  296.     570     """
  297.    571     Load the extension in IPython.
  298.    572     """
  299.     573     # this modifies ip
  300. --> 574     SageCustomizations(shell=ip)
  301.         global SageCustomizations = <class 'sage.repl.ipython_extension.SageCustomizations'>
  302.         global shell = undefined
  303.         ip = <sage.repl.interpreter.SageTerminalInteractiveShell object at 0x7fb6111e25d0>
  304.  
  305. /usr/lib/python2.7/site-packages/sage/repl/ipython_extension.py in __init__(self=<sage.repl.ipython_extension.SageCustomizations object>, shell=<sage.repl.interpreter.SageTerminalInteractiveShell object>)
  306.     417     def __init__(self, shell=None):
  307.     418         """
  308.    419         Initialize the Sage plugin.
  309.    420         """
  310.     421         self.shell = shell
  311.     422
  312.     423         self.auto_magics = SageMagics(shell)
  313.     424         self.shell.register_magics(self.auto_magics)
  314.     425
  315.     426         import sage.misc.edit_module as edit_module
  316.     427         self.shell.set_hook('editor', edit_module.edit_devel)
  317.     428
  318.     429         self.init_inspector()
  319.     430         self.init_line_transforms()
  320.     431
  321. --> 432         import sage.all # until sage's import hell is fixed
  322.         sage.all = undefined
  323.     433
  324.     434         self.shell.verbose_quit = True
  325.     435         self.set_quit_hook()
  326.     436
  327.     437         self.register_interface_magics()
  328.     438
  329.     439         if SAGE_IMPORTALL == 'yes':
  330.     440             self.init_environment()
  331.     441
  332.     442     def register_interface_magics(self):
  333.     443         """
  334.    444         Register magics for each of the Sage interfaces
  335.    445         """
  336.     446         from sage.repl.interface_magic import InterfaceMagic
  337.     447         InterfaceMagic.register_all(self.shell)
  338.  
  339. /usr/lib/python2.7/site-packages/sage/all.py in <module>()
  340.      81
  341.      82 import sage.misc.lazy_import
  342.      83 from sage.misc.all       import *         # takes a while
  343.      84 from sage.typeset.all    import *
  344.      85 from sage.repl.all       import *
  345.      86
  346.      87 from sage.misc.sh import sh
  347.      88
  348.      89 from sage.libs.all       import *
  349.      90 from sage.data_structures.all import *
  350.      91 from sage.doctest.all    import *
  351.      92
  352.      93 from sage.structure.all  import *
  353.      94 from sage.rings.all      import *
  354.      95 from sage.arith.all      import *
  355. ---> 96 from sage.matrix.all     import *
  356.         global sage.matrix.all = undefined
  357.      97
  358.      98 from sage.symbolic.all   import *
  359.      99 from sage.modules.all    import *
  360.     100 from sage.monoids.all    import *
  361.     101 from sage.algebras.all   import *
  362.     102 from sage.modular.all    import *
  363.     103 from sage.sat.all        import *
  364.     104 from sage.schemes.all    import *
  365.     105 from sage.graphs.all     import *
  366.     106 from sage.groups.all     import *
  367.     107 from sage.arith.power    import generic_power as power
  368.     108 from sage.databases.all  import *
  369.     109 from sage.categories.all import *
  370.     110 from sage.sets.all       import *
  371.     111 from sage.probability.all import *
  372.  
  373. /usr/lib/python2.7/site-packages/sage/matrix/all.py in <module>()
  374.       1 from __future__ import absolute_import
  375. ----> 2 from .matrix_space import MatrixSpace
  376.         global matrix_space = undefined
  377.         global MatrixSpace = undefined
  378.       3 from .constructor import (matrix, Matrix, column_matrix, random_matrix,
  379.       4                          diagonal_matrix, identity_matrix, block_matrix,
  380.       5                          block_diagonal_matrix, jordan_block, zero_matrix,
  381.       6                          ones_matrix, elementary_matrix, companion_matrix)
  382.       7 from .berlekamp_massey import berlekamp_massey
  383.       8
  384.       9 Mat = MatrixSpace
  385.  
  386. /usr/lib/python2.7/site-packages/sage/matrix/matrix_space.py in <module>()
  387.      32 #                  http://www.gnu.org/licenses/
  388.      33 #*****************************************************************************
  389.      34 from __future__ import print_function, absolute_import
  390.      35 from six.moves import range
  391.      36 from six import iteritems, integer_types
  392.      37
  393.      38 # System imports
  394.      39 import sys
  395.      40 import types
  396.      41 import operator
  397.      42
  398.      43 # Sage matrix imports
  399.      44 from . import matrix_generic_dense
  400.      45 from . import matrix_generic_sparse
  401.      46
  402. ---> 47 from . import matrix_modn_sparse
  403.         global matrix_modn_sparse = undefined
  404.      48
  405.      49 from . import matrix_mod2_dense
  406.      50 from . import matrix_gf2e_dense
  407.      51
  408.      52 from . import matrix_integer_dense
  409.      53 from . import matrix_integer_sparse
  410.      54
  411.      55 from . import matrix_rational_dense
  412.      56 from . import matrix_rational_sparse
  413.      57
  414.      58 from . import matrix_polynomial_dense
  415.      59 from . import matrix_mpolynomial_dense
  416.      60
  417.      61 # Sage imports
  418.      62 from sage.misc.superseded import deprecation
  419.  
  420. /usr/lib/python2.7/site-packages/sage/matrix/matrix_integer_dense.pxd in init sage.matrix.matrix_modn_sparse()
  421.       1 from sage.libs.gmp.types cimport *
  422.       2 from sage.libs.flint.types cimport fmpz_mat_t
  423.       3
  424.       4 from .matrix_dense cimport Matrix_dense
  425.       5 from sage.rings.integer cimport Integer
  426.       6 from sage.ext.mod_int cimport *
  427.       7
  428.       8 ctypedef long* GEN
  429.       9
  430. ---> 10 cdef class Matrix_integer_dense(Matrix_dense):
  431.         global cdef = undefined
  432.         global Matrix_integer_dense = undefined
  433.         global Matrix_dense = undefined
  434.      11     cdef fmpz_mat_t _matrix
  435.      12     cdef object _pivots
  436.      13     cdef int mpz_height(self, mpz_t height) except -1
  437.      14     cdef _mod_int_c(self, mod_int modulus)
  438.      15     cdef _mod_two(self)
  439.      16     cdef _pickle_version0(self)
  440.      17     cdef _unpickle_version0(self, data)
  441.      18     cpdef _export_as_string(self, int base=?)
  442.      19     cdef void set_unsafe_mpz(self, Py_ssize_t i, Py_ssize_t j, const mpz_t value)
  443.      20     cdef void set_unsafe_si(self, Py_ssize_t i, Py_ssize_t j, long value)
  444.      21     cdef void set_unsafe_double(self, Py_ssize_t i, Py_ssize_t j, double value)
  445.      22     cdef inline void get_unsafe_mpz(self, Py_ssize_t i, Py_ssize_t j, mpz_t value)
  446.      23     cdef inline double get_unsafe_double(self, Py_ssize_t i, Py_ssize_t j)
  447.      24
  448.      25     # HNF Modn
  449.      26     cdef int _hnf_modn(Matrix_integer_dense self, Matrix_integer_dense res,
  450.      27             unsigned int det) except -1
  451.      28     cdef int* _hnf_modn_impl(Matrix_integer_dense self, unsigned int det,
  452.      29             Py_ssize_t nrows, Py_ssize_t ncols) except NULL
  453.      30
  454.      31     cdef Matrix_integer_dense _new(self, Py_ssize_t nrows, Py_ssize_t ncols)
  455.  
  456. ImportError: libcblas.so.3: cannot open shared object file: No such file or directory
  457.  
  458. ***************************************************************************
  459.  
  460. History of session input:
  461. *** Last line of input (may not be in above history):
Advertisement
Add Comment
Please, Sign In to add comment