Hi,
When I opened sage, it crashed and when I wrote in terminal sage I got
the following:
Oops, Sage crashed. We do our best to make it stable, but...
A crash report was automatically generated with the following information:
- A verbatim copy of the crash traceback.
- A copy of your input history during this session.
- Data on your current Sage configuration.
It was left in the file named:
'/home/doaa/.sage/ipython-0.12/Sage_crash_report.txt'
If you can email this file to the developers, the information in it will
help
them in understanding and correcting the problem.
You can mail it to: sage-support at [email protected]
with the subject 'Sage Crash Report'.
If you want to do it now, the following command will work (under Unix):
mail -s 'Sage Crash Report' [email protected] <
/home/doaa/.sage/ipython-0.12/Sage_crash_report.txt
To ensure accurate tracking of this issue, please file a report about it at:
http://trac.sagemath.org/sage_trac
Hit <Enter> to quit (your terminal may close):
Any suggestion
Doaa
On 8 February 2013 20:08, Surendran Karippadath <[email protected]>wrote:
> Oops, Sage crashed. We do our best to make it stable, but...
>
> A crash report was automatically generated with the following information:
> - A verbatim copy of the crash traceback.
> - A copy of your input history during this session.
> - Data on your current Sage configuration.
>
> It was left in the file named:
> '/home/surendran/.sage/ipython/Sage_crash_report.txt'
> If you can email this file to the developers, the information in it will
> help
> them in understanding and correcting the problem.
>
> You can mail it to: sage-support at [email protected]
> with the subject 'Sage Crash Report'.
>
> If you want to do it now, the following command will work (under Unix):
> mail -s 'Sage Crash Report' [email protected] <
> /home/surendran/.sage/ipython/Sage_crash_report.txt
>
> To ensure accurate tracking of this issue, please file a report about it
> at:
> http://trac.sagemath.org/sage_trac
>
> Regards
>
> Surendran
>
> --
> 247/3/1 Sadafuli Park, Off DP Road, Baner, Pune 411007
> Aadhar : 9559 4359 7055
> Phone :+91-20-27298293
>
> --
> 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 http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Doaa Mostafa Ali Elsakout
PhD student at Heriot-Watt University
Institute of Petroleum Engineering
*Phone:* +44 (0) 131 451 3563
Mobile +44 (0) 7450722558
*Email:* [email protected]
*Address:*
- Energy Academy 1.14,
Heriot-Watt University,
Edinburgh
EH14 4AS
--
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 http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
***************************************************************************
IPython post-mortem report
{'commit_hash': '177894e',
'commit_source': 'installation',
'default_encoding': 'UTF-8',
'ipython_path': '/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython',
'ipython_version': '0.13.1',
'os_name': 'posix',
'platform': 'Linux-3.2.0-39-generic-pae-i686-with-debian-wheezy-sid',
'sys_executable': '/usr/lib/sagemath/local/bin/python',
'sys_platform': 'linux2',
'sys_version': '2.7.3 (default, Mar 15 2013, 21:35:56) \n[GCC 4.6.3]'}
***************************************************************************
***************************************************************************
Crash traceback:
---------------------------------------------------------------------------
IOError Python 2.7.3: /usr/lib/sagemath/local/bin/python
Tue Apr 9 21:33:00 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.
/usr/lib/sagemath/local/bin/sage-ipython in <module>()
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 """
4 Sage IPython startup script.
5 """
6 from sage.misc.interpreter import SageTerminalApp
7
8 # Make sure we're using the Sage profile if one isn't specified.
9 import sys
10 if '--profile' not in sys.argv:
11 sys.argv.extend(['--profile', 'sage'])
12
13 app = SageTerminalApp.instance()
---> 14 app.initialize()
global app.initialize = <bound method SageTerminalApp.initialize of
<sage.misc.interpreter.SageTerminalApp object at 0xb72da98c>>
15 app.start()
/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py
in initialize(self=<sage.misc.interpreter.SageTerminalApp object>, argv=None)
/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/application.py
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 0xa20ba04>
app = <sage.misc.interpreter.SageTerminalApp object at 0xb72da98c>
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):
/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py
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 0xb72da98c>>
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,
/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/misc/interpreter.pyc
in init_shell(self=<sage.misc.interpreter.SageTerminalApp object>)
716 sage: from sage.misc.interpreter import SageTerminalApp,
DEFAULT_SAGE_CONFIG
717 sage: app = SageTerminalApp(config=DEFAULT_SAGE_CONFIG)
718 sage: app.initialize(argv=[]) # indirect doctest
719 sage: app.shell
720 <sage.misc.interpreter.SageInteractiveShell object at 0x...>
721 """
722 # We need verbose crashes for the Sage crash handler. We set
it here
723 # so that we don't overwrite the traitlet attribute
724 self.verbose_crash = True
725
726 # Shell initialization
727 self.shell = SageInteractiveShell.instance(config=self.config,
728 display_banner=False,
profile_dir=self.profile_dir,
729 ipython_dir=self.ipython_dir)
730 self.shell.configurables.append(self)
--> 731
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 0xa351f2c>>
/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/core/extensions.py
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.
/usr/lib/sagemath/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
/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/all.py in <module>()
254
255 from sage.ext.interactive_constructors_c import inject_on, inject_off
256
257
sage.structure.sage_object.register_unpickle_override('sage.categories.category',
'Sets', Sets)
258
sage.structure.sage_object.register_unpickle_override('sage.categories.category_types',
'HeckeModules', HeckeModules)
259
sage.structure.sage_object.register_unpickle_override('sage.categories.category_types',
'Objects', Objects)
260
sage.structure.sage_object.register_unpickle_override('sage.categories.category_types',
'Rings', Rings)
261
sage.structure.sage_object.register_unpickle_override('sage.categories.category_types',
'Fields', Fields)
262
sage.structure.sage_object.register_unpickle_override('sage.categories.category_types',
'VectorSpaces', VectorSpaces)
263
sage.structure.sage_object.register_unpickle_override('sage.categories.category_types',
'Schemes_over_base', sage.categories.schemes.Schemes_over_base)
264
sage.structure.sage_object.register_unpickle_override('sage.categories.category_types',
'ModularAbelianVarieties', ModularAbelianVarieties)
265
#sage.structure.sage_object.register_unpickle_override('sage.categories.category_types',
'', )
266
267 # Cache the contents of star imports.
268 import sage.misc.lazy_import
--> 269 sage.misc.lazy_import.save_cache_file()
global sage.misc.lazy_import.save_cache_file = undefined
270
271
272 ### Debugging for Singular, see trac #10903
273 # from sage.libs.singular.ring import poison_currRing
274 # sys.settrace(poison_currRing)
275
276
277 # Write a file indicating that Sage was started up successfully.
278 # This is called by the sage-starts script.
279 def _write_started_file():
280 """
281 Write a ``sage-started.txt`` file if it does not exist. The
282 contents of this file do not matter, only its existence.
283
284 The non-existence of this file will be used as a trigger to run
/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/misc/lazy_import.so in
sage.misc.lazy_import.save_cache_file (sage/misc/lazy_import.c:5762)()
/usr/lib/sagemath/local/lib/python/shutil.py in move(src='/tmp/tmp2mbcLU',
dst='/home/doaa/.sage/cache/_usr_lib_sagemath_devel_sage-main-lazy_import_cache.pickle')
284 os.rename(src, dst)
285 return
286
287 real_dst = os.path.join(dst, _basename(src))
288 if os.path.exists(real_dst):
289 raise Error, "Destination path '%s' already exists" %
real_dst
290 try:
291 os.rename(src, real_dst)
292 except OSError:
293 if os.path.isdir(src):
294 if _destinsrc(src, dst):
295 raise Error, "Cannot move a directory '%s' into itself
'%s'." % (src, dst)
296 copytree(src, real_dst, symlinks=True)
297 rmtree(src)
298 else:
--> 299 copy2(src, real_dst)
global copy2 = <function copy2 at 0xb7035df4>
src = '/tmp/tmp2mbcLU'
real_dst =
'/home/doaa/.sage/cache/_usr_lib_sagemath_devel_sage-main-lazy_import_cache.pickle'
300 os.unlink(src)
301
302 def _destinsrc(src, dst):
303 src = abspath(src)
304 dst = abspath(dst)
305 if not src.endswith(os.path.sep):
306 src += os.path.sep
307 if not dst.endswith(os.path.sep):
308 dst += os.path.sep
309 return dst.startswith(src)
310
311 def _get_gid(name):
312 """Returns a gid, given a group name."""
313 if getgrnam is None or name is None:
314 return None
/usr/lib/sagemath/local/lib/python/shutil.py in copy2(src='/tmp/tmp2mbcLU',
dst='/home/doaa/.sage/cache/_usr_lib_sagemath_devel_sage-main-lazy_import_cache.pickle')
113
114 """
115 if os.path.isdir(dst):
116 dst = os.path.join(dst, os.path.basename(src))
117 copyfile(src, dst)
118 copymode(src, dst)
119
120 def copy2(src, dst):
121 """Copy data and all stat info ("cp -p src dst").
122
123 The destination may be a directory.
124
125 """
126 if os.path.isdir(dst):
127 dst = os.path.join(dst, os.path.basename(src))
--> 128 copyfile(src, dst)
global copyfile = <function copyfile at 0xb7035d14>
src = '/tmp/tmp2mbcLU'
dst =
'/home/doaa/.sage/cache/_usr_lib_sagemath_devel_sage-main-lazy_import_cache.pickle'
129 copystat(src, dst)
130
131 def ignore_patterns(*patterns):
132 """Function that can be used as copytree() ignore parameter.
133
134 Patterns is a sequence of glob-style patterns
135 that are used to exclude files"""
136 def _ignore_patterns(path, names):
137 ignored_names = []
138 for pattern in patterns:
139 ignored_names.extend(fnmatch.filter(names, pattern))
140 return set(ignored_names)
141 return _ignore_patterns
142
143 def copytree(src, dst, symlinks=False, ignore=None):
/usr/lib/sagemath/local/lib/python/shutil.py in copyfile(src='/tmp/tmp2mbcLU',
dst='/home/doaa/.sage/cache/_usr_lib_sagemath_devel_sage-main-lazy_import_cache.pickle')
68 if _samefile(src, dst):
69 raise Error("`%s` and `%s` are the same file" % (src, dst))
70
71 for fn in [src, dst]:
72 try:
73 st = os.stat(fn)
74 except OSError:
75 # File most likely does not exist
76 pass
77 else:
78 # XXX What about other special files? (sockets, devices...)
79 if stat.S_ISFIFO(st.st_mode):
80 raise SpecialFileError("`%s` is a named pipe" % fn)
81
82 with open(src, 'rb') as fsrc:
---> 83 with open(dst, 'wb') as fdst:
global open = undefined
dst =
'/home/doaa/.sage/cache/_usr_lib_sagemath_devel_sage-main-lazy_import_cache.pickle'
fdst = undefined
84 copyfileobj(fsrc, fdst)
85
86 def copymode(src, dst):
87 """Copy mode bits from src to dst"""
88 if hasattr(os, 'chmod'):
89 st = os.stat(src)
90 mode = stat.S_IMODE(st.st_mode)
91 os.chmod(dst, mode)
92
93 def copystat(src, dst):
94 """Copy all stat info (mode bits, atime, mtime, flags) from src to
dst"""
95 st = os.stat(src)
96 mode = stat.S_IMODE(st.st_mode)
97 if hasattr(os, 'utime'):
98 os.utime(dst, (st.st_atime, st.st_mtime))
IOError: [Errno 13] Permission denied:
'/home/doaa/.sage/cache/_usr_lib_sagemath_devel_sage-main-lazy_import_cache.pickle'
***************************************************************************
History of session input:
*** Last line of input (may not be in above history):