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

IPython post-mortem report

{'commit_hash': '858d539',
'commit_source': 'installation',
'default_encoding': 'UTF-8',
'ipython_path': 
'/Users/jyt/src/sage-5.12/local/lib/python2.7/site-packages/IPython',
'ipython_version': '0.13.2',
'os_name': 'posix',
'platform': 'Darwin-12.5.0-x86_64-i386-64bit',
'sys_executable': '/Users/jyt/src/sage-5.12/local/bin/python',
'sys_platform': 'darwin',
'sys_version': '2.7.5 (default, Oct 14 2013, 21:03:26) \n[GCC 4.7.3]'}

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



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

Crash traceback:

---------------------------------------------------------------------------
SyntaxError         Python 2.7.5: /Users/jyt/src/sage-5.12/local/bin/python
                                                  Tue Oct 15 15:19:15 2013
A problem occured executing Python code.  Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.
/Users/jyt/src/sage-5.12/local/bin/sage-ipython in <module>()
     2 # -*- coding: utf-8 -*-
     3 """
     4 Sage IPython startup script.
     5 """
     6 from sage.misc.interpreter import SageTerminalApp
     7 
     8 # installs the extra readline commands before the IPython initialization 
begins.
     9 from sage.misc.readline_extra_commands import *
    10 
    11 # Make sure we're using the Sage profile if one isn't specified.
    12 import sys
    13 if '--profile' not in sys.argv:
    14     sys.argv.extend(['--profile', 'sage'])
    15 
    16 app = SageTerminalApp.instance()
---> 17 app.initialize()
       global app.initialize = <bound method SageTerminalApp.initialize of 
<sage.misc.interpreter.SageTerminalApp object at 0x105208a10>>
    18 app.start()

/Users/jyt/src/sage-5.12/local/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.pyc
 in initialize(self=<sage.misc.interpreter.SageTerminalApp object>, argv=None)

/Users/jyt/src/sage-5.12/local/lib/python2.7/site-packages/IPython/config/application.pyc
 in catch_config_error(method=<function initialize>, 
app=<sage.misc.interpreter.SageTerminalApp object>, *args=(None,), **kwargs={})
    69 
    70 
#-----------------------------------------------------------------------------
    71 # Application class
    72 
#-----------------------------------------------------------------------------
    73 
    74 @decorator
    75 def catch_config_error(method, app, *args, **kwargs):
    76     """Method decorator for catching invalid config 
(Trait/ArgumentErrors) during init.
    77 
    78     On a TraitError (generally caused by bad config), this will print 
the trait's
    79     message, and exit the app.
    80     
    81     For use on init methods, to prevent invoking excepthook on invalid 
input.
    82     """
    83     try:
---> 84         return method(app, *args, **kwargs)
       method = <function initialize at 0x10657ced8>
       app = <sage.misc.interpreter.SageTerminalApp object at 0x105208a10>
       args = (None,)
       kwargs = {}
    85     except (TraitError, ArgumentError) as e:
    86         app.print_description()
    87         app.print_help()
    88         app.print_examples()
    89         app.log.fatal("Bad config encountered during initialization:")
    90         app.log.fatal(str(e))
    91         app.log.debug("Config at the time: %s", app.config)
    92         app.exit(1)
    93 
    94 
    95 class ApplicationError(Exception):
    96     pass
    97 
    98 
    99 class Application(SingletonConfigurable):

/Users/jyt/src/sage-5.12/local/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.pyc
 in initialize(self=<sage.misc.interpreter.SageTerminalApp object>, argv=None)
   309     
   310     @catch_config_error
   311     def initialize(self, argv=None):
   312         """Do actions after construct, but before starting the app."""
   313         super(TerminalIPythonApp, self).initialize(argv)
   314         if self.subapp is not None:
   315             # don't bother initializing further, starting subapp
   316             return
   317         if not self.ignore_old_config:
   318             check_for_old_config(self.ipython_dir)
   319         # print self.extra_args
   320         if self.extra_args and not self.something_to_run:
   321             self.file_to_run = self.extra_args[0]
   322         self.init_path()
   323         # create the shell
--> 324         self.init_shell()
       self.init_shell = <bound method SageTerminalApp.init_shell of 
<sage.misc.interpreter.SageTerminalApp object at 0x105208a10>>
   325         # and draw the banner
   326         self.init_banner()
   327         # Now a variety of things that happen after the banner is 
printed.
   328         self.init_gui_pylab()
   329         self.init_extensions()
   330         self.init_code()
   331 
   332     def init_shell(self):
   333         """initialize the InteractiveShell instance"""
   334         # Create an InteractiveShell instance.
   335         # shell.display_banner should always be False for the terminal
   336         # based app, because we call shell.show_banner() by hand below
   337         # so the banner shows *before* all extension loading stuff.
   338         self.shell = 
TerminalInteractiveShell.instance(config=self.config,
   339                         display_banner=False, 
profile_dir=self.profile_dir,

/Users/jyt/src/sage-5.12/local/lib/python2.7/site-packages/sage/misc/interpreter.py
 in init_shell(self=<sage.misc.interpreter.SageTerminalApp object>)
   735             sage: from sage.misc.interpreter import SageTerminalApp, 
DEFAULT_SAGE_CONFIG
   736             sage: app = SageTerminalApp(config=DEFAULT_SAGE_CONFIG)
   737             sage: app.initialize(argv=[])  # indirect doctest
   738             sage: app.shell
   739             <sage.misc.interpreter.SageInteractiveShell object at 0x...>
   740         """
   741         # We need verbose crashes for the Sage crash handler.  We set it 
here
   742         # so that we don't overwrite the traitlet attribute
   743         self.verbose_crash = True
   744 
   745         # Shell initialization
   746         self.shell = SageInteractiveShell.instance(config=self.config,
   747                         display_banner=False, 
profile_dir=self.profile_dir,
   748                         ipython_dir=self.ipython_dir)
   749         self.shell.configurables.append(self)
--> 750         
self.shell.extension_manager.load_extension('sage.misc.sage_extension')
       self.shell.extension_manager.load_extension = <bound method 
ExtensionManager.load_extension of <IPython.core.extensions.ExtensionManager 
object at 0x106a218d0>>

/Users/jyt/src/sage-5.12/local/lib/python2.7/site-packages/IPython/core/extensions.pyc
 in load_extension(self=<IPython.core.extensions.ExtensionManager object>, 
module_str='sage.misc.sage_extension')
    75 
    76     def _on_ipython_dir_changed(self):
    77         if not os.path.isdir(self.ipython_extension_dir):
    78             os.makedirs(self.ipython_extension_dir, mode = 0777)
    79 
    80     def load_extension(self, module_str):
    81         """Load an IPython extension by its module name.
    82 
    83         If :func:`load_ipython_extension` returns anything, this function
    84         will return that object.
    85         """
    86         from IPython.utils.syspathcontext import prepended_to_syspath
    87 
    88         if module_str not in sys.modules:
    89             with prepended_to_syspath(self.ipython_extension_dir):
---> 90                 __import__(module_str)
       global __import__ = undefined
       module_str = 'sage.misc.sage_extension'
    91         mod = sys.modules[module_str]
    92         return self._call_load_ipython_extension(mod)
    93 
    94     def unload_extension(self, module_str):
    95         """Unload an IPython extension by its module name.
    96 
    97         This function looks up the extension's name in ``sys.modules`` 
and
    98         simply calls ``mod.unload_ipython_extension(self)``.
    99         """
   100         if module_str in sys.modules:
   101             mod = sys.modules[module_str]
   102             self._call_unload_ipython_extension(mod)
   103 
   104     def reload_extension(self, module_str):
   105         """Reload an IPython extension by calling reload.

/Users/jyt/src/sage-5.12/local/lib/python2.7/site-packages/sage/misc/sage_extension.py
 in <module>()
    35     2
    36 
    37 In contrast, input to the ``%time`` magic command is preparsed::
    38 
    39     sage: shell.run_cell('%time 594.factor()')
    40     CPU times: user ...
    41     Wall time: ...
    42     2 * 3^3 * 11
    43 """
    44 
    45 from IPython.core.hooks import TryNext
    46 from IPython.core.magic import Magics, magics_class, line_magic
    47 import os
    48 import sys
    49 import sage
---> 50 import sage.all
       global sage.all = undefined
    51 from sage.misc.interpreter import preparser
    52 from sage.misc.preparser import preparse
    53 
    54 @magics_class
    55 class SageMagics(Magics):
    56 
    57     @line_magic
    58     def runfile(self, s):
    59         r"""     
    60         Loads the code contained in the file ``s``. This is designed
    61         to be used from the command line as ``%runfile /path/to/file``.
    62 
    63         :param s: file to be loaded
    64         :type s: string
    65 

/Users/jyt/src/sage-5.12/local/lib/python2.7/site-packages/sage/all.py in 
<module>()
    82 from sage.misc.all       import *         # takes a while
    83 
    84 from sage.misc.sh import sh
    85 
    86 from sage.libs.all       import *
    87 from sage.doctest.all    import *
    88 
    89 from sage.rings.all      import *
    90 from sage.matrix.all     import *
    91 
    92 # This must come before Calculus -- it initializes the Pynac library.
    93 import sage.symbolic.pynac
    94 
    95 from sage.modules.all    import *
    96 from sage.monoids.all    import *
---> 97 from sage.algebras.all   import *
       global sage.algebras.all = undefined
    98 from sage.operads.all    import *
    99 from sage.modular.all    import *
   100 from sage.schemes.all    import *
   101 from sage.graphs.all     import *
   102 from sage.groups.all     import *
   103 from sage.databases.all  import *
   104 from sage.structure.all  import *
   105 from sage.categories.all import *
   106 from sage.sets.all       import *
   107 from sage.probability.all import *
   108 from sage.interfaces.all import *
   109 
   110 from sage.symbolic.all   import *
   111 
   112 from sage.functions.all  import *

/Users/jyt/src/sage-5.12/local/lib/python2.7/site-packages/sage/algebras/all.py 
in <module>()
    34 
    35 from steenrod.all import *
    36 
    37 from group_algebra_new import GroupAlgebra
    38 
    39 from iwahori_hecke_algebra import IwahoriHeckeAlgebra, 
IwahoriHeckeAlgebraT
    40 from affine_nil_temperley_lieb import AffineNilTemperleyLiebTypeA
    41 lazy_import('sage.algebras.nil_coxeter_algebra', 'NilCoxeterAlgebra')
    42 
    43 lazy_import('sage.algebras.shuffle_algebra', 'ShuffleAlgebra')
    44 
    45 from clifford_algebra import CliffordAlgebra, ExteriorAlgebra
    46 from weyl_algebra import WeylAlgebra
    47 
    48 from t_q_system import TSystem, QSystem
---> 49 from yangian import Yangian
       global yangian = undefined
       global Yangian = undefined
    50 

SyntaxError: invalid syntax (yangian.py, line 447)

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

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

-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to