Herli Menezes
*Amor, trabalho e conhecimento são as fontes da nossa vida. Deveriam,
também, governá-la.*
*(Wilhelm Reich)*
--
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 [email protected].
To post to this group, send email to [email protected].
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': '/usr/lib64/sagemath/site-packages/IPython',
'ipython_version': '5.1.0',
'os_name': 'posix',
'platform': 'Linux-4.17.17-100.fc27.x86_64-x86_64-with-fedora-27-Twenty_Seven',
'sys_executable': '/usr/lib64/sagemath/local/bin/python',
'sys_platform': 'linux2',
'sys_version': '2.7.15 (default, May 15 2018, 15:37:31) \n[GCC 7.3.1 20180303
(Red Hat 7.3.1-5)]'}
***************************************************************************
***************************************************************************
Crash traceback:
---------------------------------------------------------------------------
---------------------------------------------------------------------------
KeyboardInterrupt Python 2.7.15: /usr/lib64/sagemath/local/bin/python
Wed Sep 12 11:33:25 2018
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.
/usr/lib64/sagemath/local/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 0x7efeb9f6c450>>
11 app.start()
<decorator-gen-109> in initialize(self=<sage.repl.interpreter.SageTerminalApp
object>, argv=None)
/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={})
72 TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR = False
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 @decorator
78 def catch_config_error(method, app, *args, **kwargs):
79 """Method decorator for catching invalid config
(Trait/ArgumentErrors) during init.
80
81 On a TraitError (generally caused by bad config), this will print
the trait's
82 message, and exit the app.
83
84 For use on init methods, to prevent invoking excepthook on invalid
input.
85 """
86 try:
---> 87 return method(app, *args, **kwargs)
method = <function initialize at 0x7efeabf516e0>
app = <sage.repl.interpreter.SageTerminalApp object at 0x7efeb9f6c450>
args = (None,)
kwargs = {}
88 except (TraitError, ArgumentError) as e:
89 app.print_help()
90 app.log.fatal("Bad config encountered during initialization:")
91 app.log.fatal(str(e))
92 app.log.debug("Config at the time: %s", app.config)
93 app.exit(1)
94
95
96 class ApplicationError(Exception):
97 pass
98
99
100 class LevelFormatter(logging.Formatter):
101 """Formatter with additional `highlevel` record
102
/usr/lib64/sagemath/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 0x7efeb9f6c450>>
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,
/usr/lib64/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 0x7efeb03fb810>>
global SAGE_EXTENSION = 'sage'
763
764
/usr/lib64/sagemath/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 0x7efeb03fb810>>
mod = <module 'sage' from
'/usr/lib64/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:
/usr/lib64/sagemath/site-packages/IPython/core/extensions.pyc in
_call_load_ipython_extension(self=<IPython.core.extensions.ExtensionManager
object>, mod=<module 'sage' from
'/usr/lib64/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
0x7efeb9fe1b18>
self.shell = <sage.repl.interpreter.SageTerminalInteractiveShell object
at 0x7efeabf75d90>
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.
/usr/lib64/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 0x7efeaadb7de8>
args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at
0x7efeabf75d90>,)
/usr/lib64/python2.7/site-packages/sage/repl/ipython_extension.pyc in
wrapper(*args=(<sage.repl.interpreter.SageTerminalInteractiveShell object>,),
**kwargs={})
490 ....: if work:
491 ....: return 'foo worked'
492 ....: raise RuntimeError("foo didn't work")
493 sage: foo(False)
494 Traceback (most recent call last):
495 ...
496 RuntimeError: foo didn't work
497 sage: foo(True)
498 'foo worked'
499 sage: foo(False)
500 sage: foo(True)
501 """
502 @wraps(func)
503 def wrapper(*args, **kwargs):
504 if not wrapper.has_run:
--> 505 result = func(*args, **kwargs)
result = undefined
global func = undefined
args = (<sage.repl.interpreter.SageTerminalInteractiveShell object at
0x7efeabf75d90>,)
kwargs = {}
506 wrapper.has_run = True
507 return result
508 wrapper.has_run = False
509 return wrapper
510
511
512 @run_once
513 def load_ipython_extension(ip):
514 """
515 Load the extension in IPython.
516 """
517 # this modifies ip
518 SageCustomizations(shell=ip)
/usr/lib64/python2.7/site-packages/sage/repl/ipython_extension.pyc in
load_ipython_extension(ip=<sage.repl.interpreter.SageTerminalInteractiveShell
object>)
503 def wrapper(*args, **kwargs):
504 if not wrapper.has_run:
505 result = func(*args, **kwargs)
506 wrapper.has_run = True
507 return result
508 wrapper.has_run = False
509 return wrapper
510
511
512 @run_once
513 def load_ipython_extension(ip):
514 """
515 Load the extension in IPython.
516 """
517 # this modifies ip
--> 518 SageCustomizations(shell=ip)
global SageCustomizations = <class
'sage.repl.ipython_extension.SageCustomizations'>
global shell = undefined
ip = <sage.repl.interpreter.SageTerminalInteractiveShell object at
0x7efeabf75d90>
/usr/lib64/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)
/usr/lib64/python2.7/site-packages/sage/all.py in <module>()
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
126
127 from sage.crypto.all import *
128 import sage.crypto.mq as mq
129
130 from sage.plot.all import *
131 from sage.plot.plot3d.all import *
132
133 from sage.coding.all import *
--> 134 from sage.combinat.all import *
global sage.combinat.all = undefined
135
136 from sage.lfunctions.all import *
137
138 from sage.geometry.all import *
139 from sage.geometry.triangulation.all import *
140 from sage.geometry.riemannian_manifolds.all import *
141
142 from sage.dynamics.all import *
143
144 from sage.homology.all import *
145
146 from sage.quadratic_forms.all import *
147
148 from sage.games.all import *
149
/usr/lib64/python2.7/site-packages/sage/combinat/all.py in <module>()
149 # Cluster Algebras and Quivers
150 from .cluster_algebra_quiver.all import *
151
152 #import lrcalc
153
154 from . import ranker
155
156 from .integer_vector import IntegerVectors
157 from .integer_vector_weighted import WeightedIntegerVectors
158 from .integer_vectors_mod_permgroup import
IntegerVectorsModPermutationGroup
159
160 from .finite_class import FiniteCombinatorialClass
161
162 from .q_analogues import gaussian_binomial, q_binomial
163
--> 164 from .species.all import *
global species.all = undefined
165
166 from .multichoose_nk import MultichooseNK
167
168 from .kazhdan_lusztig import KazhdanLusztigPolynomial
169
170 from .degree_sequences import DegreeSequences
171
172 from .cyclic_sieving_phenomenon import CyclicSievingPolynomial,
CyclicSievingCheck
173
174 from .sidon_sets import sidon_sets
175
176 # Puzzles
177 from .knutson_tao_puzzles import KnutsonTaoPuzzleSolver
178
179 # Gelfand-Tsetlin patterns
/usr/lib64/python2.7/site-packages/sage/combinat/species/all.py in <module>()
1 r"""
2 Combinatorial species features that are imported by default in the
interpreter namespace
3 """
4 from __future__ import absolute_import
5
6 from .series import LazyPowerSeriesRing
7 from .recursive_species import CombinatorialSpecies
----> 8 from . import library as species
global library = undefined
global species = undefined
/usr/lib64/python2.7/site-packages/sage/combinat/species/library.py in
<module>()
9 # This code is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # General Public License for more details.
13 #
14 # The full text of the GPL is available at:
15 #
16 # http://www.gnu.org/licenses/
17
#*****************************************************************************
18 from __future__ import absolute_import
19
20 from .set_species import SetSpecies
21 from .partition_species import PartitionSpecies
22 from .subset_species import SubsetSpecies
23 from .recursive_species import CombinatorialSpecies
---> 24 from .characteristic_species import CharacteristicSpecies,
SingletonSpecies, EmptySetSpecies
global characteristic_species = undefined
global CharacteristicSpecies = undefined
global SingletonSpecies = undefined
global EmptySetSpecies = undefined
25 from .cycle_species import CycleSpecies
26 from .linear_order_species import LinearOrderSpecies
27 from .permutation_species import PermutationSpecies
28 from .empty_species import EmptySpecies
29 from .sum_species import SumSpecies
30 from .product_species import ProductSpecies
31 from .composition_species import CompositionSpecies
32 from .functorial_composition_species import FunctorialCompositionSpecies
33
34 from sage.misc.cachefunc import cached_function
35
36 @cached_function
37 def SimpleGraphSpecies():
38 """
39 Returns the species of simple graphs.
/usr/lib64/python2.7/site-packages/sage/combinat/species/characteristic_species.py
in <module>()
1 """
2 Characteristic Species
----> 3 """
4 from __future__ import absolute_import
5
#*****************************************************************************
6 # Copyright (C) 2008 Mike Hansen <[email protected]>,
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 six.moves import range
20
21 from .species import GenericCombinatorialSpecies
22 from .generating_series import factorial_stream
23 from .structure import GenericSpeciesStructure
24 from .set_species import SetSpecies
25 from sage.misc.cachefunc import cached_function
26 from sage.structure.unique_representation import UniqueRepresentation
27
28 class CharacteristicSpeciesStructure(GenericSpeciesStructure):
29 def __repr__(self):
30 """
31 EXAMPLES::
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):