Attached is a report about a crash that happened here in Chicago... enjoy the read! :)

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.
***************************************************************************

IPython post-mortem report

{'commit_hash': u'5c9c918',
 'commit_source': 'installation',
 'default_encoding': 'UTF-8',
 'ipython_path': '/home/kam/SageMath/local/lib/python2.7/site-packages/IPython',
 'ipython_version': '5.1.0',
 'os_name': 'posix',
 'platform': 'Linux-4.8.0-41-generic-x86_64-with-debian-stretch-sid',
 'sys_executable': '/home/kam/SageMath/local/bin/python',
 'sys_platform': 'linux2',
 'sys_version': '2.7.13 (default, Jan 16 2017, 03:50:51) \n[GCC 5.4.0 
20160609]'}

***************************************************************************



***************************************************************************

Crash traceback:

---------------------------------------------------------------------------
---------------------------------------------------------------------------
KeyboardInterrupt        Python 2.7.13: /home/kam/SageMath/local/bin/python
                                                   Sun Mar 19 07:49:00 2017
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.
/home/kam/SageMath/src/bin/sage-ipython in <module>()
      1 #!/usr/bin/env python
      2 # -*- coding: utf-8 -*-
      3 """
      4 Sage IPython startup script.
      5 """
      6 
      7 from sage.repl.interpreter import SageTerminalApp
      8 
      9 app = SageTerminalApp.instance()
---> 10 app.initialize()
        global app.initialize = <bound method SageTerminalApp.initialize of 
<sage.repl.interpreter.SageTerminalApp object at 0x7fae82f41610>>
     11 app.start()

<decorator-gen-109> in initialize(self=<sage.repl.interpreter.SageTerminalApp 
object>, argv=None)

/home/kam/SageMath/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={})
     59 
     60 
#-----------------------------------------------------------------------------
     61 # Application class
     62 
#-----------------------------------------------------------------------------
     63 
     64 @decorator
     65 def catch_config_error(method, app, *args, **kwargs):
     66     """Method decorator for catching invalid config 
(Trait/ArgumentErrors) during init.
     67 
     68     On a TraitError (generally caused by bad config), this will print 
the trait's
     69     message, and exit the app.
     70     
     71     For use on init methods, to prevent invoking excepthook on invalid 
input.
     72     """
     73     try:
---> 74         return method(app, *args, **kwargs)
        method = <function initialize at 0x7fae7bcf1398>
        app = <sage.repl.interpreter.SageTerminalApp object at 0x7fae82f41610>
        args = (None,)
        kwargs = {}
     75     except (TraitError, ArgumentError) as e:
     76         app.print_help()
     77         app.log.fatal("Bad config encountered during initialization:")
     78         app.log.fatal(str(e))
     79         app.log.debug("Config at the time: %s", app.config)
     80         app.exit(1)
     81 
     82 
     83 class ApplicationError(Exception):
     84     pass
     85 
     86 
     87 class LevelFormatter(logging.Formatter):
     88     """Formatter with additional `highlevel` record
     89     

/home/kam/SageMath/local/lib/python2.7/site-packages/IPython/terminal/ipapp.pyc 
in initialize(self=<sage.repl.interpreter.SageTerminalApp object>, argv=None)
    294 
    295         return super(TerminalIPythonApp, self).parse_command_line(argv)
    296     
    297     @catch_config_error
    298     def initialize(self, argv=None):
    299         """Do actions after construct, but before starting the app."""
    300         super(TerminalIPythonApp, self).initialize(argv)
    301         if self.subapp is not None:
    302             # don't bother initializing further, starting subapp
    303             return
    304         # print self.extra_args
    305         if self.extra_args and not self.something_to_run:
    306             self.file_to_run = self.extra_args[0]
    307         self.init_path()
    308         # create the shell
--> 309         self.init_shell()
        self.init_shell = <bound method SageTerminalApp.init_shell of 
<sage.repl.interpreter.SageTerminalApp object at 0x7fae82f41610>>
    310         # and draw the banner
    311         self.init_banner()
    312         # Now a variety of things that happen after the banner is 
printed.
    313         self.init_gui_pylab()
    314         self.init_extensions()
    315         self.init_code()
    316 
    317     def init_shell(self):
    318         """initialize the InteractiveShell instance"""
    319         # Create an InteractiveShell instance.
    320         # shell.display_banner should always be False for the terminal
    321         # based app, because we call shell.show_banner() by hand below
    322         # so the banner shows *before* all extension loading stuff.
    323         self.shell = TerminalInteractiveShell.instance(parent=self,
    324                         profile_dir=self.profile_dir,

/home/kam/SageMath/local/lib/python2.7/site-packages/sage/repl/interpreter.pyc 
in init_shell(self=<sage.repl.interpreter.SageTerminalApp object>)
    747         self.shell.has_sage_extensions = SAGE_EXTENSION in 
self.extensions
    748 
    749         # Load the %lprun extension if available
    750         try:
    751             import line_profiler
    752         except ImportError:
    753             pass
    754         else:
    755             self.extensions.append('line_profiler')
    756 
    757         if self.shell.has_sage_extensions:
    758             self.extensions.remove(SAGE_EXTENSION)
    759 
    760             # load sage extension here to get a crash if
    761             # something is wrong with the sage library
--> 762             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 0x7fae7ab03e50>>
        global SAGE_EXTENSION = 'sage'
    763 
    764 

/home/kam/SageMath/local/lib/python2.7/site-packages/IPython/core/extensions.pyc
 in load_extension(self=<IPython.core.extensions.ExtensionManager object>, 
module_str='sage')
     70 
     71         Returns the string "already loaded" if the extension is already 
loaded,
     72         "no load function" if the module doesn't have a 
load_ipython_extension
     73         function, or None if it succeeded.
     74         """
     75         if module_str in self.loaded:
     76             return "already loaded"
     77         
     78         from IPython.utils.syspathcontext import prepended_to_syspath
     79         
     80         with self.shell.builtin_trap:
     81             if module_str not in sys.modules:
     82                 with prepended_to_syspath(self.ipython_extension_dir):
     83                     __import__(module_str)
     84             mod = sys.modules[module_str]
---> 85             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 0x7fae7ab03e50>>
        mod = <module 'sage' from 
'/home/kam/SageMath/local/lib/python2.7/site-packages/sage/__init__.pyc'>
     86                 self.loaded.add(module_str)
     87             else:
     88                 return "no load function"
     89 
     90     def unload_extension(self, module_str):
     91         """Unload an IPython extension by its module name.
     92 
     93         This function looks up the extension's name in ``sys.modules`` 
and
     94         simply calls ``mod.unload_ipython_extension(self)``.
     95         
     96         Returns the string "no unload function" if the extension 
doesn't define
     97         a function to unload itself, "not loaded" if the extension 
isn't loaded,
     98         otherwise None.
     99         """
    100         if module_str not in self.loaded:

/home/kam/SageMath/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/kam/SageMath/local/lib/python2.7/site-packages/sage/__init__.pyc'>)
    117         """
    118         from IPython.utils.syspathcontext import prepended_to_syspath
    119 
    120         if (module_str in self.loaded) and (module_str in sys.modules):
    121             self.unload_extension(module_str)
    122             mod = sys.modules[module_str]
    123             with prepended_to_syspath(self.ipython_extension_dir):
    124                 reload(mod)
    125             if self._call_load_ipython_extension(mod):
    126                 self.loaded.add(module_str)
    127         else:
    128             self.load_extension(module_str)
    129 
    130     def _call_load_ipython_extension(self, mod):
    131         if hasattr(mod, 'load_ipython_extension'):
--> 132             mod.load_ipython_extension(self.shell)
        mod.load_ipython_extension = <function load_ipython_extension at 
0x7fae82f35758>
        self.shell = <sage.repl.interpreter.SageTerminalInteractiveShell object 
at 0x7fae7bcf3c50>
    133             return True
    134 
    135     def _call_unload_ipython_extension(self, mod):
    136         if hasattr(mod, 'unload_ipython_extension'):
    137             mod.unload_ipython_extension(self.shell)
    138             return True
    139 
    140     def install_extension(self, url, filename=None):
    141         """Download and install an IPython extension. 
    142 
    143         If filename is given, the file will be so named (inside the 
extension
    144         directory). Otherwise, the name from the URL will be used. The 
file must
    145         have a .py or .zip extension; otherwise, a ValueError will be 
raised.
    146 
    147         Returns the full path to the installed file.

/home/kam/SageMath/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 0x7fae7fd3ede8>
        args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at 
0x7fae7bcf3c50>,)

/home/kam/SageMath/local/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc
 in wrapper(*args=(<sage.repl.interpreter.SageTerminalInteractiveShell 
object>,), **kwargs={})
    458         ....:     if work:
    459         ....:         return 'foo worked'
    460         ....:     raise RuntimeError("foo didn't work")
    461         sage: foo(False)
    462         Traceback (most recent call last):
    463         ...
    464         RuntimeError: foo didn't work
    465         sage: foo(True)
    466         'foo worked'
    467         sage: foo(False)
    468         sage: foo(True)
    469     """
    470     @wraps(func)
    471     def wrapper(*args, **kwargs):
    472         if not wrapper.has_run:
--> 473             result = func(*args, **kwargs)
        result = undefined
        global func = undefined
        args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at 
0x7fae7bcf3c50>,)
        kwargs = {}
    474             wrapper.has_run = True
    475             return result
    476     wrapper.has_run = False
    477     return wrapper
    478 
    479 
    480 @run_once
    481 def load_ipython_extension(ip):
    482     """
    483     Load the extension in IPython.
    484     """
    485     # this modifies ip
    486     SageCustomizations(shell=ip)

/home/kam/SageMath/local/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc
 in 
load_ipython_extension(ip=<sage.repl.interpreter.SageTerminalInteractiveShell 
object>)
    471     def wrapper(*args, **kwargs):
    472         if not wrapper.has_run:
    473             result = func(*args, **kwargs)
    474             wrapper.has_run = True
    475             return result
    476     wrapper.has_run = False
    477     return wrapper
    478 
    479 
    480 @run_once
    481 def load_ipython_extension(ip):
    482     """
    483     Load the extension in IPython.
    484     """
    485     # this modifies ip
--> 486     SageCustomizations(shell=ip)
        global SageCustomizations = <class 
'sage.repl.ipython_extension.SageCustomizations'>
        global shell = undefined
        ip = <sage.repl.interpreter.SageTerminalInteractiveShell object at 
0x7fae7bcf3c50>

/home/kam/SageMath/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>)
    361     def __init__(self, shell=None):
    362         """
    363         Initialize the Sage plugin.
    364         """
    365         self.shell = shell
    366 
    367         self.auto_magics = SageMagics(shell)
    368         self.shell.register_magics(self.auto_magics)
    369 
    370         import sage.misc.edit_module as edit_module
    371         self.shell.set_hook('editor', edit_module.edit_devel)
    372 
    373         self.init_inspector()
    374         self.init_line_transforms()
    375 
--> 376         import sage.all # until sage's import hell is fixed
        sage.all = undefined
    377 
    378         self.shell.verbose_quit = True
    379         self.set_quit_hook()
    380 
    381         self.register_interface_magics()
    382 
    383         if SAGE_IMPORTALL == 'yes':
    384             self.init_environment()
    385 
    386     def register_interface_magics(self):
    387         """
    388         Register magics for each of the Sage interfaces
    389         """
    390         from sage.repl.interface_magic import InterfaceMagic
    391         InterfaceMagic.register_all(self.shell)

/home/kam/SageMath/local/lib/python2.7/site-packages/sage/all.py in <module>()
     95 
     96 from sage.misc.sh import sh
     97 
     98 from sage.libs.all       import *
     99 from sage.data_structures.all import *
    100 from sage.doctest.all    import *
    101 
    102 from sage.structure.all  import *
    103 from sage.rings.all      import *
    104 from sage.arith.all      import *
    105 from sage.matrix.all     import *
    106 
    107 from sage.symbolic.all   import *
    108 from sage.modules.all    import *
    109 from sage.monoids.all    import *
--> 110 from sage.algebras.all   import *
        global sage.algebras.all = undefined
    111 from sage.modular.all    import *
    112 from sage.sat.all        import *
    113 from sage.schemes.all    import *
    114 from sage.graphs.all     import *
    115 from sage.groups.all     import *
    116 from sage.databases.all  import *
    117 from sage.categories.all import *
    118 from sage.sets.all       import *
    119 from sage.probability.all import *
    120 from sage.interfaces.all import *
    121 
    122 from sage.functions.all  import *
    123 from sage.calculus.all   import *
    124 
    125 import sage.tests.all as tests

/home/kam/SageMath/local/lib/python2.7/site-packages/sage/algebras/all.py in 
<module>()
      7 #       Copyright (C) 2005 William Stein <wst...@gmail.com>
      8 #
      9 #  Distributed under the terms of the GNU General Public License (GPL)
     10 #
     11 #    This code is distributed in the hope that it will be useful,
     12 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
     13 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     14 #    General Public License for more details.
     15 #
     16 #  The full text of the GPL is available at:
     17 #
     18 #                  http://www.gnu.org/licenses/
     19 
#*****************************************************************************
     20 from sage.misc.lazy_import import lazy_import
     21 
---> 22 import sage.algebras.catalog as algebras
        global sage.algebras.catalog = undefined
        global algebras = undefined
     23 
     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 
     33 from .finite_dimensional_algebras.all import FiniteDimensionalAlgebra
     34 
     35 from .group_algebra import GroupAlgebra
     36 
     37 from .iwahori_hecke_algebra import IwahoriHeckeAlgebra

/home/kam/SageMath/local/lib/python2.7/site-packages/sage/algebras/catalog.py 
in <module>()
     37 - :class:`algebras.Partition 
<sage.combinat.diagram_algebras.PartitionAlgebra>`
     38 - :class:`algebras.PlanarPartition 
<sage.combinat.diagram_algebras.PlanarAlgebra>`
     39 - :func:`algebras.Quaternion
     40   <sage.algebras.quatalg.quaternion_algebra.QuaternionAlgebraFactory>`
     41 - :class:`algebras.Schur <sage.algebras.schur_algebra.SchurAlgebra>`
     42 - :class:`algebras.Shuffle 
<sage.algebras.shuffle_algebra.ShuffleAlgebra>`
     43 - :class:`algebras.Steenrod
     44   <sage.algebras.steenrod.steenrod_algebra.SteenrodAlgebra>`
     45 - :class:`algebras.TemperleyLieb 
<sage.combinat.diagram_algebras.TemperleyLiebAlgebra>`
     46 - :class:`algebras.YokonumaHecke
     47   <sage.algebras.yokonuma_hecke_algebra.YokonumaHeckeAlgebra>`
     48 - :class:`algebras.Tensor <sage.algebras.tensor_algebra.TensorAlgebra>`
     49 """
     50 
     51 from sage.algebras.free_algebra import FreeAlgebra as Free
---> 52 from sage.algebras.iwahori_hecke_algebra import IwahoriHeckeAlgebra as 
IwahoriHecke
        global sage.algebras.iwahori_hecke_algebra = undefined
        global IwahoriHeckeAlgebra = undefined
        global IwahoriHecke = undefined
     53 from sage.algebras.quatalg.quaternion_algebra import QuaternionAlgebra 
as Quaternion
     54 from sage.algebras.steenrod.steenrod_algebra import SteenrodAlgebra as 
Steenrod
     55 from 
sage.algebras.finite_dimensional_algebras.finite_dimensional_algebra import 
FiniteDimensionalAlgebra as FiniteDimensional
     56 from sage.algebras.group_algebra import GroupAlgebra as Group
     57 from sage.algebras.clifford_algebra import CliffordAlgebra as Clifford
     58 from sage.algebras.clifford_algebra import ExteriorAlgebra as Exterior
     59 from sage.algebras.weyl_algebra import DifferentialWeylAlgebra as 
DifferentialWeyl
     60 
     61 from sage.misc.lazy_import import lazy_import
     62 lazy_import('sage.algebras.nil_coxeter_algebra', 'NilCoxeterAlgebra', 
'NilCoxeter')
     63 lazy_import('sage.algebras.free_zinbiel_algebra', 'FreeZinbielAlgebra', 
'FreeZinbiel')
     64 lazy_import('sage.algebras.hall_algebra', 'HallAlgebra', 'Hall')
     65 lazy_import('sage.algebras.jordan_algebra', 'JordanAlgebra', 'Jordan')
     66 lazy_import('sage.algebras.orlik_solomon', 'OrlikSolomonAlgebra', 
'OrlikSolomon')
     67 lazy_import('sage.algebras.shuffle_algebra', 'ShuffleAlgebra', 
'Shuffle')

/home/kam/SageMath/local/lib/python2.7/site-packages/sage/algebras/iwahori_hecke_algebra.py
 in <module>()
     19 
#*****************************************************************************
     20 
     21 from functools import cmp_to_key
     22 from sage.misc.abstract_method import abstract_method
     23 from sage.misc.cachefunc import cached_method
     24 from sage.misc.bindable_class import BindableClass
     25 from sage.structure.parent import Parent
     26 from sage.structure.unique_representation import UniqueRepresentation
     27 from sage.structure.element import parent
     28 from sage.categories.realizations import Realizations, 
Category_realization_of_parent
     29 from sage.categories.all import AlgebrasWithBasis, 
FiniteDimensionalAlgebrasWithBasis, CoxeterGroups
     30 from sage.rings.all import ZZ
     31 from sage.rings.polynomial.laurent_polynomial_ring import 
LaurentPolynomialRing
     32 from sage.rings.polynomial.polydict import ETuple
     33 from sage.arith.all import is_square
---> 34 from sage.combinat.root_system.weyl_group import WeylGroup
        global sage.combinat.root_system.weyl_group = undefined
        global WeylGroup = undefined
     35 from sage.combinat.family import Family
     36 from sage.combinat.free_module import CombinatorialFreeModule, 
CombinatorialFreeModuleElement
     37 
     38 def normalized_laurent_polynomial(R, p):
     39     r"""
     40     Return a normalized version of the (Laurent polynomial) ``p`` in the
     41     ring ``R``.
     42 
     43     Various ring operations in ``sage`` return an element of the field 
of
     44     fractions of the parent ring even though the element is "known" to 
belong to
     45     the base ring. This function is a hack to recover from this. This 
occurs
     46     somewhat haphazardly with Laurent polynomial rings::
     47 
     48         sage: R.<q>=LaurentPolynomialRing(ZZ)
     49         sage: [type(c) for c in (q**-1).coefficients()]

/home/kam/SageMath/local/lib/python2.7/site-packages/sage/combinat/root_system/weyl_group.py
 in <module>()
     31 #       Copyright (C) 2008 Daniel Bump <bump at match.stanford.edu>,
     32 #                          Mike Hansen <mhan...@gmail.com>
     33 #                          Anne Schilling <anne at math.ucdavis.edu>
     34 #                          Nicolas Thiery <nthiery at users.sf.net>
     35 #
     36 #  Distributed under the terms of the GNU General Public License (GPL)
     37 #
     38 #                  http://www.gnu.org/licenses/
     39 
#*****************************************************************************
     40 from sage.groups.matrix_gps.finitely_generated import 
FinitelyGeneratedMatrixGroup_gap
     41 from sage.groups.matrix_gps.group_element import MatrixGroupElement_gap
     42 from sage.rings.all import ZZ, QQ
     43 from sage.interfaces.gap import gap
     44 from sage.misc.cachefunc import cached_method
     45 from sage.combinat.root_system.cartan_type import CartanType
---> 46 from sage.combinat.root_system.cartan_matrix import CartanMatrix
        global sage.combinat.root_system.cartan_matrix = undefined
        global CartanMatrix = undefined
     47 from sage.matrix.constructor import matrix, diagonal_matrix
     48 from sage.combinat.root_system.root_lattice_realizations import 
RootLatticeRealizations
     49 from sage.structure.unique_representation import UniqueRepresentation
     50 from sage.categories.all import WeylGroups, FiniteWeylGroups, 
AffineWeylGroups
     51 from sage.sets.family import Family
     52 from sage.matrix.constructor import Matrix
     53 from sage.graphs.graph import DiGraph
     54 
     55 def WeylGroup(x, prefix=None):
     56     """
     57     Returns the Weyl group of the root system defined by the Cartan
     58     type (or matrix) ``ct``.
     59 
     60     INPUT:
     61 

/home/kam/SageMath/local/lib/python2.7/site-packages/sage/combinat/root_system/cartan_matrix.py
 in <module>()
     25 
#*****************************************************************************
     26 from six.moves import range
     27 
     28 from sage.misc.cachefunc import cached_method
     29 from sage.matrix.constructor import matrix
     30 from sage.matrix.matrix import is_Matrix
     31 from sage.matrix.matrix_space import MatrixSpace
     32 from sage.misc.inherit_comparison import 
InheritComparisonClasscallMetaclass
     33 from sage.misc.classcall_metaclass import typecall
     34 from sage.misc.misc import powerset
     35 from sage.matrix.matrix_integer_sparse import Matrix_integer_sparse
     36 from sage.rings.all import ZZ
     37 from sage.combinat.root_system.cartan_type import CartanType, 
CartanType_abstract
     38 from sage.combinat.root_system.root_system import RootSystem
     39 from sage.sets.family import Family
---> 40 from sage.graphs.digraph import DiGraph
        global sage.graphs.digraph = undefined
        global DiGraph = undefined
     41 
     42 class CartanMatrix(Matrix_integer_sparse, CartanType_abstract):
     43     r"""
     44     A (generalized) Cartan matrix.
     45 
     46     A matrix `A = (a_{ij})_{i,j \in I}` for some index set `I` is a
     47     generalized Cartan matrix if it satisfies the following properties:
     48 
     49     - `a_{ii} = 2` for all `i`,
     50     - `a_{ij} \leq 0` for all `i \neq j`,
     51     - `a_{ij} = 0` if and only if `a_{ji} = 0` for all `i \neq j`.
     52 
     53     Additionally some reference assume that a Cartan matrix is
     54     *symmetrizable* (see :meth:`is_symmetrizable`). However following 
Kac, we
     55     do not make that assumption here.

/home/kam/SageMath/local/lib/python2.7/site-packages/sage/graphs/digraph.py in 
<module>()
    103     :widths: 30, 70
    104     :delim: |
    105 
    106     :meth:`~DiGraph.flow_polytope` | Computes the flow polytope of a 
digraph
    107 
    108 Methods
    109 -------
    110 """
    111 from __future__ import print_function
    112 from __future__ import absolute_import
    113 
    114 from copy import copy
    115 from sage.rings.integer import Integer
    116 from sage.rings.integer_ring import ZZ
    117 from sage.misc.superseded import deprecation
--> 118 import sage.graphs.generic_graph_pyx as generic_graph_pyx
        global sage.graphs.generic_graph_pyx = undefined
        global generic_graph_pyx = undefined
    119 from sage.graphs.generic_graph import GenericGraph
    120 from sage.graphs.dot2tex_utils import have_dot2tex
    121 
    122 
    123 class DiGraph(GenericGraph):
    124     r"""
    125     Directed graph.
    126 
    127     A digraph or directed graph is a set of vertices connected by 
oriented
    128     edges. See also the :wikipedia:`Directed_graph`. For a collection of
    129     pre-defined digraphs, see the 
:mod:`~sage.graphs.digraph_generators` module.
    130 
    131     A :class:`DiGraph` object has many methods whose list can be 
obtained by
    132     typing ``g.<tab>`` (i.e. hit the 'tab' key) or by reading the 
documentation
    133     of :mod:`~sage.graphs.digraph`, :mod:`~sage.graphs.generic_graph`, 
and

/home/kam/SageMath/local/lib/python2.7/site-packages/sage/graphs/base/graph_backends.pxd
 in init sage.graphs.generic_graph_pyx 
(/home/kam/SageMath/src/build/cythonized/sage/graphs/generic_graph_pyx.c:23148)()
      1 from sage.structure.sage_object cimport SageObject
      2 
----> 3 cdef class GenericGraphBackend(SageObject):
        global cdef = undefined
        global GenericGraphBackend = undefined
        global SageObject = undefined
      4     pass

/home/kam/SageMath/local/lib/python2.7/site-packages/sage/graphs/base/c_graph.pxd
 in init sage.graphs.base.graph_backends 
(/home/kam/SageMath/src/build/cythonized/sage/graphs/base/graph_backends.c:18586)()
      1 
#**************************************************************************
      2 #        Copyright (C) 2008-9 Robert L. Miller <rlmills...@gmail.com>
      3 #
      4 # Distributed  under  the  terms  of  the  GNU  General  Public  
License (GPL)
      5 #                         http://www.gnu.org/licenses/
      6 
#**************************************************************************
      7 
      8 from sage.data_structures.bitset cimport bitset_t
      9 from .graph_backends cimport GenericGraphBackend
     10 
---> 11 cdef class CGraph:
        global cdef = undefined
        global CGraph = undefined
     12     cdef int num_verts
     13     cdef int num_arcs
     14     cdef int *in_degrees
     15     cdef int *out_degrees
     16 
     17     cdef int add_arc_unsafe(self, int, int) except -1
     18     cdef int has_arc_unsafe(self, int, int) except -1
     19     cdef int del_arc_unsafe(self, int, int) except -1
     20     cdef int out_neighbors_unsafe(self, int, int *, int) except -2
     21     cdef int in_neighbors_unsafe(self, int, int *, int) except -2
     22 
     23     cdef bitset_t active_vertices
     24 
     25     cpdef bint has_vertex(self, int n) except -1
     26     cpdef check_vertex(self, int n)
     27     cpdef del_vertex(self, int v)
     28     cpdef int current_allocation(self)
     29     cpdef add_arc(self, int u, int v)
     30     cpdef bint has_arc(self, int u, int v) except -1
     31     cpdef del_all_arcs(self, int u, int v)

/home/kam/SageMath/local/lib/python2.7/site-packages/six.pyc in 
find_module(self=<six._SixMetaPathImporter object>, 
fullname='sage.graphs.base.c_graph', 
path=['/home/kam/SageMath/local/lib/python2.7/site-packages/sage/graphs/base'])
    169     This class implements a PEP302 finder and loader. It should be 
compatible
    170     with Python 2.5 and all existing versions of Python3
    171     """
    172 
    173     def __init__(self, six_module_name):
    174         self.name = six_module_name
    175         self.known_modules = {}
    176 
    177     def _add_module(self, mod, *fullnames):
    178         for fullname in fullnames:
    179             self.known_modules[self.name + "." + fullname] = mod
    180 
    181     def _get_module(self, fullname):
    182         return self.known_modules[self.name + "." + fullname]
    183 
--> 184     def find_module(self, fullname, path=None):
        global find_module = undefined
        self = <six._SixMetaPathImporter object at 0x7fae82eded90>
        fullname = 'sage.graphs.base.c_graph'
        path = 
['/home/kam/SageMath/local/lib/python2.7/site-packages/sage/graphs/base']
        global None = undefined
    185         if fullname in self.known_modules:
    186             return self
    187         return None
    188 
    189     def __get_module(self, fullname):
    190         try:
    191             return self.known_modules[fullname]
    192         except KeyError:
    193             raise ImportError("This loader does not know module " + 
fullname)
    194 
    195     def load_module(self, fullname):
    196         try:
    197             # in case of a reload
    198             return sys.modules[fullname]
    199         except KeyError:

src/cysignals/signals.pyx in cysignals.signals.python_check_interrupt 
(build/src/cysignals/signals.c:2854)()

src/cysignals/signals.pyx in cysignals.signals.sig_raise_exception 
(build/src/cysignals/signals.c:1303)()

KeyboardInterrupt: 

***************************************************************************

History of session input:
*** Last line of input (may not be in above history):

Reply via email to