Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ***************************************************************************
- IPython post-mortem report
- IPython version: 0.10.2
- Platform info : os.name -> posix, sys.platform -> linux2
- ***************************************************************************
- Current user configuration structure:
- {'Version': 0,
- '__allownew': True,
- 'alias': [],
- 'args': [],
- 'autocall': 0,
- 'autoedit_syntax': 0,
- 'autoexec': [],
- 'autoindent': 1,
- 'automagic': 1,
- 'banner': 0,
- 'c': '',
- 'cache_size': 1000,
- 'classic': 0,
- 'color_info': 1,
- 'colors': 'NoColor',
- 'confirm_exit': 0,
- 'debug': 0,
- 'deep_reload': 0,
- 'editor': 'vi',
- 'embedded': False,
- 'execfile': [],
- 'execute': ['',
- "def view_all(): view([(i, globals()[i]) for i in variables()], title='All SAGE Variables')",
- "def variables(): return [k for k in globals() if not k in iglob and len(k) > 0 and k[0] != '_']",
- 'import sage.misc.preparser_ipython; sage.misc.preparser_ipython.magma_colon_equals=True'],
- 'gthread': 0,
- 'help': 0,
- 'import_all': [],
- 'import_mod': [],
- 'import_some': [[]],
- 'include': [],
- 'interact': 1,
- 'ipythondir': u'/home/knsam/.sage/ipython',
- 'log': 0,
- 'logfile': '',
- 'logplay': '',
- 'magic_docstrings': 0,
- 'messages': 1,
- 'multi_line_specials': 1,
- 'nosep': 0,
- 'object_info_string_level': 0,
- 'opts': Struct({'__allownew': True, 'interact': 1, 'profile': ''}),
- 'pdb': 0,
- 'pprint': 1,
- 'profile': '',
- 'prompt_in1': '${sage_prompt()}: ',
- 'prompt_in2': "${'.'*len(sage_prompt())}: ",
- 'prompt_out': '',
- 'prompts_pad_left': 0,
- 'pydb': 0,
- 'pylab': 0,
- 'pylab_import_all': 1,
- 'q4thread': 0,
- 'qthread': 0,
- 'quick': 0,
- 'quiet': 0,
- 'rcfile': 'ipythonrc',
- 'readline': 1,
- 'readline_merge_completions': 1,
- 'readline_omit__names': 2,
- 'readline_parse_and_bind': ['tab: complete',
- '"\\C-l": possible-completions',
- 'set show-all-if-ambiguous on',
- '"\\C-o": tab-insert',
- '"\\M-i": " "',
- '"\\M-o": "\\d\\d\\d\\d"',
- '"\\M-I": "\\d\\d\\d\\d"',
- '"\\C-r": reverse-search-history',
- '"\\C-s": forward-search-history',
- '"\\C-p": history-search-backward',
- '"\\C-n": history-search-forward',
- '"\\e[A": history-search-backward',
- '"\\e[B": history-search-forward',
- '"\\C-k": kill-line',
- '"\\C-u": unix-line-discard'],
- 'readline_remove_delims': '-/~',
- 'screen_length': -1,
- 'separate_in': '',
- 'separate_out': '',
- 'separate_out2': '',
- 'system_header': 'IPython system call: ',
- 'system_verbose': 0,
- 'term_title': 1,
- 'tk': 0,
- 'upgrade': 0,
- 'wildcards_case_sensitive': 1,
- 'wthread': 0,
- 'wxversion': '0',
- 'xmode': 'Context'}
- ***************************************************************************
- Crash traceback:
- ---------------------------------------------------------------------------
- OSError Python 2.7.3: /usr/lib/sagemath/local/bin/python
- Wed Nov 14 13:50:35 2012
- 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/lib/python/atexit.pyc in _run_exitfuncs()
- 9
- 10 import sys
- 11
- 12 _exithandlers = []
- 13 def _run_exitfuncs():
- 14 """run any registered exit functions
- 15
- 16 _exithandlers is traversed in reverse order so functions are executed
- 17 last in, first out.
- 18 """
- 19
- 20 exc_info = None
- 21 while _exithandlers:
- 22 func, targs, kargs = _exithandlers.pop()
- 23 try:
- ---> 24 func(*targs, **kargs)
- func = <function delete_tmpfiles at 0xeecf50>
- global function = undefined
- global to = undefined
- global be = undefined
- global called = undefined
- global at = undefined
- global exit = undefined
- 25 except SystemExit:
- 26 exc_info = sys.exc_info()
- 27 except:
- 28 import traceback
- 29 print >> sys.stderr, "Error in atexit._run_exitfuncs:"
- 30 traceback.print_exc()
- 31 exc_info = sys.exc_info()
- 32
- 33 if exc_info is not None:
- 34 raise exc_info[0], exc_info[1], exc_info[2]
- 35
- 36
- 37 def register(func, *targs, **kargs):
- 38 """register a function to be executed upon normal program termination
- 39
- /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/misc/temporary_file.pyc in delete_tmpfiles()
- 33
- 34 sage: from sage.tests.cmdline import test_executable
- 35 sage: child_SAGE_TMP, err, ret = test_executable(["sage", "-c", "print SAGE_TMP"])
- 36 sage: err, ret
- 37 ('', 0)
- 38 sage: os.path.exists(child_SAGE_TMP)
- 39 False
- 40
- 41 The parent directory should exist::
- 42
- 43 sage: parent_SAGE_TMP = os.path.normpath(child_SAGE_TMP + '/..')
- 44 sage: os.path.isdir(parent_SAGE_TMP)
- 45 True
- 46 """
- 47 import shutil
- ---> 48 from sage.misc.misc import SAGE_TMP
- global EXAMPLES = undefined
- 49 shutil.rmtree(str(SAGE_TMP), ignore_errors=True)
- 50
- 51
- 52 # Run when Python shuts down
- 53 atexit.register(delete_tmpfiles)
- 54
- 55
- 56 #################################################################
- 57 # temporary directory
- 58 #################################################################
- 59
- 60 def tmp_dir(name="dir_", ext=""):
- 61 r"""
- 62 Create and return a temporary directory in
- 63 ``$HOME/.sage/temp/hostname/pid/``
- /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/misc/misc.py in <module>()
- 126 sage_makedirs(DOT_SAGE)
- 127
- 128 _mode = os.stat(DOT_SAGE)[stat.ST_MODE]
- 129 _desired_mode = 040700 # drwx------
- 130 if _mode != _desired_mode:
- 131 print "Setting permissions of DOT_SAGE directory so only you can read and write it."
- 132 # Change mode of DOT_SAGE.
- 133 os.chmod(DOT_SAGE, _desired_mode)
- 134
- 135
- 136 #################################################
- 137 # Next we create the Sage temporary directory.
- 138 #################################################
- 139
- 140 SAGE_TMP = os.path.join(DOT_SAGE, 'tmp', HOSTNAME, str(os.getpid()))
- --> 141 sage_makedirs(SAGE_TMP)
- global sage_makedirs = None
- global SAGE_TMP = None
- 142
- 143 SPYX_TMP = os.path.join(SAGE_TMP, 'spyx')
- 144
- 145 SAGE_TMP_INTERFACE = os.path.join(SAGE_TMP, 'interface')
- 146 sage_makedirs(SAGE_TMP_INTERFACE)
- 147
- 148 SAGE_DB = os.path.join(DOT_SAGE, 'db')
- 149 sage_makedirs(SAGE_DB)
- 150
- 151 try:
- 152 # Create the matplotlib config directory.
- 153 sage_makedirs(os.environ["MPLCONFIGDIR"])
- 154 except KeyError:
- 155 pass
- 156
- /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/misc/misc.py in sage_makedirs(dir='/home/knsam/.sage/tmp/PerverseSheaf/20894')
- 61 EXAMPLES::
- 62
- 63 sage: from sage.misc.misc import sage_makedirs
- 64 sage: sage_makedirs(DOT_SAGE) # no output
- 65
- 66 The following fails because we are trying to create a directory in
- 67 place of an ordinary file (the main Sage executable)::
- 68
- 69 sage: sage_executable = os.path.join(SAGE_ROOT, 'sage')
- 70 sage: sage_makedirs(sage_executable)
- 71 Traceback (most recent call last):
- 72 ...
- 73 OSError: ...
- 74 """
- 75 try:
- ---> 76 os.makedirs(dir)
- global os.makedirs = undefined
- dir = '/home/knsam/.sage/tmp/PerverseSheaf/20894'
- 77 except OSError:
- 78 if not os.path.isdir(dir):
- 79 raise
- 80
- 81
- 82 try:
- 83 SAGE_URL = os.environ["SAGE_URL"]
- 84 except KeyError:
- 85 SAGE_URL = "http://sage.math.washington.edu/sage/" # default server
- 86
- 87 LOGFILE = "%s/log/sage_log"%SAGE_ROOT
- 88
- 89
- 90 try:
- 91 DOT_SAGE = os.environ['DOT_SAGE']
- /usr/lib/sagemath/local/lib/python/os.pyc in makedirs(name='/home/knsam/.sage/tmp/PerverseSheaf/20894', mode=511)
- 142 recursive.
- 143
- 144 """
- 145 head, tail = path.split(name)
- 146 if not tail:
- 147 head, tail = path.split(head)
- 148 if head and tail and not path.exists(head):
- 149 try:
- 150 makedirs(head, mode)
- 151 except OSError, e:
- 152 # be happy if someone already created the path
- 153 if e.errno != errno.EEXIST:
- 154 raise
- 155 if tail == curdir: # xxx/newdir/. exists if xxx/newdir exists
- 156 return
- --> 157 mkdir(name, mode)
- global N = undefined
- global R = undefined
- global t = undefined
- global islinkt = undefined
- global joint = undefined
- global isdirt = undefined
- global listdirR = undefined
- global Nonet = undefined
- global appendt = undefined
- global walk = <function walk at 0x7f5bdd897d70>
- global topt = undefined
- global topdownt = undefined
- global onerrort = undefined
- global followlinksR0 = undefined
- global R1 = undefined
- global R2 = undefined
- global namest = undefined
- global errt = undefined
- global dirst = undefined
- global nondirsR = undefined
- global new_patht = undefined
- global x = undefined
- global s = undefined
- global usr = undefined
- global lib = undefined
- global sagemath = undefined
- global local = undefined
- global python = undefined
- global os.pyR6 = undefined
- global R6 = undefined
- global c = undefined
- global G = undefined
- global d = undefined
- global S = undefined
- global sp = undefined
- global execl = <function execl at 0x7f5bdd897de8>
- global file = undefined
- global args = undefined
- global Execute = undefined
- global the = undefined
- global executable = undefined
- global argument = undefined
- global list = undefined
- global replacing = undefined
- global current = undefined
- global process.N = undefined
- global execv = <built-in function execv>
- global filet = undefined
- global os.pyt = undefined
- global execl3 = undefined
- global execle = <function execle at 0x7f5bdd897e60>
- global env = undefined
- global environment = undefined
- global process.i = undefined
- global execve = <built-in function execve>
- global RB = undefined
- global RC = undefined
- global execlp = <function execlp at 0x7f5bdd897ed8>
- global which = undefined
- global searched = undefined
- global along = undefined
- global PATH = undefined
- global execvp = <function execvp at 0x7f5bdd898050>
- global execlpB = undefined
- global execlpe = <function execlpe at 0x7f5bdd897f50>
- global execvpe = <function execvpe at 0x7f5bdd8980c8>
- global RF = undefined
- global execlpeI = undefined
- global C = undefined
- global process.args = undefined
- global may = undefined
- global be = undefined
- global a = undefined
- global tuple = undefined
- global of = undefined
- global strings.N = undefined
- global _execvpe = <function _execvpe at 0x7f5bdd898140>
- global os.pyRH = undefined
- global RL = undefined
- global os.pyRJ = undefined
- global Z = undefined
- global RD = undefined
- global RG = undefined
- global RI = undefined
- global RK = undefined
- global RH = undefined
- global RJ = undefined
- global sZ = undefined
- global k = undefined
- global r = undefined
- global f = undefined
- global n = undefined
- global j = undefined
- global rb = undefined
- global Sd = undefined
- global D = undefined
- global y = undefined
- global Wq = undefined
- global r0 = undefined
- global r1 = undefined
- global q1 = undefined
- global q = undefined
- global Xq = undefined
- global W = undefined
- global rJ = undefined
- global Nt = undefined
- global PATHi = undefined
- global R4 = undefined
- global RE = undefined
- global RA = undefined
- global environR = undefined
- global syst = undefined
- global exc_infoR = undefined
- global ENOENTt = undefined
- global ENOTDIR = undefined
- global funct = undefined
- global argrestR = undefined
- global envpathRM = undefined
- global saved_exct = undefined
- global saved_tbR = undefined
- global fullnameR = undefined
- global tb = undefined
- global os.pyRL = undefined
- e = undefined
- global putenv = <built-in function putenv>
- global key = undefined
- global unsetenv = <built-in function unsetenv>
- global _EnvironR = undefined
- global B = undefined
- global Wn = undefined
- global rE = undefined
- global Xd = undefined
- global RS = undefined
- global sJ = undefined
- global Wd = undefined
- global UserDictt = undefined
- global __init__t = undefined
- global datat = undefined
- global itemst = undefined
- global upper = undefined
- global selfRN = undefined
- global Ra = undefined
- global kt = undefined
- global v = undefined
- global os.pyR = undefined
- global Rc = undefined
- global Rd = undefined
- global item = undefined
- global __setitem__ = undefined
- global __getitem__ = undefined
- global __delitem__ = undefined
- global os.pyRj = undefined
- global s2 = undefined
- global keysR = undefined
- global clear = undefined
- global has_key = undefined
- global __contains__ = undefined
- global getRc = undefined
- global failobj = undefined
- global os.pyRp = undefined
- global K = undefined
- global rm = undefined
- global Wn2 = undefined
- global xA = undefined
- global Wqm = undefined
- global Xx = undefined
- global qR = undefined
- global Rk = undefined
- global update = undefined
- global dictt = undefined
- global kwargsRk = undefined
- global Re = undefined
- global Rf = undefined
- global os.pyRr = undefined
- global Rs = undefined
- global copy = undefined
- global __name__t = undefined
- global __module__R = undefined
- global Rh = undefined
- global Ri = undefined
- global NameErrorRj = undefined
- global Rl = undefined
- global Rm = undefined
- global Rn = undefined
- global Ro = undefined
- global Rp = undefined
- global Rr = undefined
- global Ru = undefined
- global sf = undefined
- global _ = undefined
- global R_ = undefined
- global RN = undefined
- global Rg = undefined
- global os.pyRh = undefined
- global Rt = undefined
- global os.pyRl = undefined
- global os.pyRm = undefined
- global os.pyRu = undefined
- global Rv = undefined
- global Rw = undefined
- global Rx = undefined
- global Rj = undefined
- global Get = undefined
- global an = undefined
- global variable = undefined
- global None = undefined
- global it = undefined
- global doesn = undefined
- global exist.The = undefined
- global optional = undefined
- global second = undefined
- global can = undefined
- global specify = undefined
- global alternate = undefined
- global default.RN = undefined
- global default = undefined
- global getenv = <function getenv at 0x7f5bdd80fd70>
- global Rz = undefined
- global globals = undefined
- global _exists = <function _exists at 0x7f5bdd817488>
- global forkt = undefined
- global spawnvRA = undefined
- global sV = undefined
- global y0 = undefined
- global r.n = undefined
- global Xns = undefined
- global rf = undefined
- global Sx = undefined
- global qi = undefined
- global St = undefined
- global Ni = undefined
- global i = undefined
- global Not = undefined
- global stopped = undefined
- global signaled = undefined
- global exited = undefined
- global P_NOWAITt = undefined
- global waitpidt = undefined
- global WIFSTOPPEDt = undefined
- global WIFSIGNALEDt = undefined
- global WTERMSIGt = undefined
- global WIFEXITEDt = undefined
- global WEXITSTATUSR = undefined
- global pidt = undefined
- global wpidt = undefined
- global sts = undefined
- global _spawnvef = <function _spawnvef at 0x7f5bdd817500>
- global spawnv = <function spawnv at 0x7f5bdd817578>
- mode = 511
- global integer = undefined
- global arguments = undefined
- global subprocess.If = undefined
- global P_NOWAIT = 1
- global pid = undefined
- global process.If = undefined
- global P_WAIT = 0
- global process = undefined
- global exit = undefined
- global code = undefined
- global exits = undefined
- global normally = undefined
- global otherwise = undefined
- global SIG = undefined
- global where = undefined
- global signal = undefined
- global that = undefined
- global killed = undefined
- global it.N = undefined
- global spawnve = <function spawnve at 0x7f5bdd8175f0>
- global subprocess = undefined
- global specified = undefined
- global environment.If = undefined
- global it.R = undefined
- global spawnve5 = undefined
- global s8 = undefined
- global spawnvp = <function spawnvp at 0x7f5bdd817668>
- global looked = undefined
- global spawnvpA = undefined
- global spawnvpe = <function spawnvpe at 0x7f5bdd8176e0>
- global supplied = undefined
- global spawnvpeK = undefined
- global spawnl = <function spawnl at 0x7f5bdd817758>
- global spawnlY = undefined
- global spawnle = <function spawnle at 0x7f5bdd8177d0>
- global it.i = undefined
- global spawnleb = undefined
- global sW = undefined
- global spawnlp = <function spawnlp at 0x7f5bdd817848>
- global spawnlpt = undefined
- global spawnlpe = <function spawnlpe at 0x7f5bdd8178c0>
- global popen2t = undefined
- global tc = undefined
- global l = undefined
- global shell = undefined
- global command = undefined
- global sub = undefined
- global process.On = undefined
- global UNIX = undefined
- global sequence = undefined
- global case = undefined
- global will = undefined
- global passed = undefined
- global directly = undefined
- global to = undefined
- global program = undefined
- global without = undefined
- global intervention = undefined
- global os.spawnv.If = undefined
- global string = undefined
- global os.system.If = undefined
- global sets = undefined
- global buffer = undefined
- global size = undefined
- global I = undefined
- global O = undefined
- global pipes.The = undefined
- global objects = undefined
- global child_stdin = undefined
- global child_stdout = undefined
- global are = undefined
- global returned.i = undefined
- global Ns4 = undefined
- global os.popen2 = undefined
- global deprecated.Use = undefined
- global module.t = undefined
- global stackleveli = undefined
- global shellt = undefined
- global bufsizet = undefined
- global stdint = undefined
- global stdoutt = undefined
- global close_fds = undefined
- global warningst = undefined
- global warnt = undefined
- global DeprecationWarningt = undefined
- global subprocesst = undefined
- global PIPEt = undefined
- global Popent = undefined
- global isinstancet = undefined
- global basestringt = undefined
- global TrueR = undefined
- global cmdR = undefined
- global msgR = undefined
- global p = undefined
- global popen3c = undefined
- global child_stderr = undefined
- global os.popen3 = undefined
- global module.R = undefined
- global stderrR = undefined
- global popen4c = undefined
- global child_stdout_stderr = undefined
- global os.popen4 = undefined
- global STDOUTR = undefined
- global stat_result = <type 'posix.stat_result'>
- global tupRs = undefined
- global _make_stat_result = <function _make_stat_result at 0x7f5bdd819050>
- global __reduce__R = undefined
- global srt = undefined
- global typeRC = undefined
- global _pickle_stat_result = <function _pickle_stat_result at 0x7f5bdd8190c8>
- global statvfs_result = <type 'posix.statvfs_result'>
- global _make_statvfs_result = <function _make_statvfs_result at 0x7f5bdd819140>
- global _pickle_statvfs_result = <function _pickle_statvfs_result at 0x7f5bdd8191b8>
- global os2s = undefined
- global nt = undefined
- global X = undefined
- global __doc__RO = undefined
- global builtin_module_namest = undefined
- global _namesR = undefined
- global ImportErrort = undefined
- global posixpathR = undefined
- global extendR = undefined
- global ntpathR = undefined
- global versiont = undefined
- global findt = undefined
- global os2emxpatht = undefined
- global _emx_linkR = undefined
- global riscospatht = undefined
- global modulest = undefined
- global os.pathR = undefined
- global FalseR6 = undefined
- global R5 = undefined
- global riscosenvironR = undefined
- global IterableUserDictRz = undefined
- global P_WAITR = undefined
- global P_NOWAITOR = undefined
- global copy_regt = undefined
- global _copy_regR = undefined
- global pickleR = undefined
- global module = undefined
- 158
- 159 def removedirs(name):
- 160 """removedirs(path)
- 161
- 162 Super-rmdir; remove a leaf directory and all empty intermediate
- 163 ones. Works like rmdir except that, if the leaf directory is
- 164 successfully removed, directories corresponding to rightmost path
- 165 segments will be pruned away until either the whole path is
- 166 consumed or an error occurs. Errors during this latter phase are
- 167 ignored -- they generally mean that a directory was not empty.
- 168
- 169 """
- 170 rmdir(name)
- 171 head, tail = path.split(name)
- 172 if not tail:
- OSError: [Errno 13] Permission denied: '/home/knsam/.sage/tmp/PerverseSheaf/20894'
- ***************************************************************************
- History of session input:
- *** Last line of input (may not be in above history):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement