*************************************************************************** IPython post-mortem report IPython version: 0.9.1 SVN revision : 1145 Platform info : os.name -> java, sys.platform -> java1.6.0_11 *************************************************************************** Current user configuration structure: {'prompt_in1': 'In [\\#]: ', 'interact': 0, 'logfile': '', 'readline_remove_delims': '-/~', 'screen_length': -2, 'separate_out': '', 'system_verbose': 0, 'readline_omit__names': 0, 'wildcards_case_sensitive': 1, 'q4thread': 0, 'cache_size': 1000, 'Version': 0, 'prompt_out': 'Out[\\#]: ', 'pylab': 0, 'include': [], 'term_title': 1, 'import_all': [], 'multi_line_specials': 1, 'deep_reload': 0, 'logplay': '', 'object_info_string_level': 0, 'prompt_in2': ' .\\D.: ', 'autocall': 1, 'pylab_import_all': 1, 'tk': 0, 'ipythondir': '/home/v3ss/_ipython', 'execute': [''], 'classic': 0, 'import_some': [[]], 'c': '', 'autoedit_syntax': 0, 'import_mod': [], 'qthread': 0, 'wxversion': '0', 'execfile': [], 'help': 0, 'nosep': 0, 'pdb': 0, 'readline': 1, 'opts': Struct({'__allownew': True}), 'profile': '', 'gthread': 0, 'quick': 0, 'separate_in': '\n', 'colors': 'Linux', 'xmode': 'Context', 'embedded': False, 'separate_out2': '', 'alias': [], 'banner': 1, 'upgrade': 0, 'autoindent': 1, 'debug': 0, 'wthread': 0, 'args': [], 'automagic': 1, 'rcfile': 'ipythonrc.ini', 'magic_docstrings': 0, 'quiet': 0, 'log': 0, 'confirm_exit': 1, 'system_header': 'IPython system call: ', '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'], 'autoexec': [], 'pprint': 1, 'color_info': 1, 'editor': '/bin/nano', 'messages': 1, 'readline_merge_completions': 1, '__allownew': True, 'prompts_pad_left': 1, 'pydb': 0} *************************************************************************** Crash traceback: --------------------------------------------------------------------------- AttributeError Python 2.5b0+: /opt/jython/bin/jython Fri Jan 16 23:00:24 2009 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. /home/v3ss/ipython-0.9-lab-working/ipython.py in () 1 2 3 4 5 6 #!/usr/bin/env python 7 # -*- coding: utf-8 -*- 8 """IPython -- An enhanced Interactive Python 9 10 The actual ipython script to be installed with 'python setup.py install' is ---> 11 in './scripts' directory. This file is here (ipython source root directory) global IPython.Shell.start.mainloop = undefined 12 to facilitate non-root 'zero-installation' (just copy the source tree 13 somewhere and run ipython.py) and development. """ 14 15 import IPython.Shell 16 IPython.Shell.start().mainloop() 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 /home/v3ss/ipython-0.9-lab-working/IPython/Shell$py.class in start(user_ns=None) 1218 th_mode = special_opts.pop() 1219 except KeyError: 1220 th_mode = 'tkthread' 1221 return th_shell[th_mode] 1222 1223 1224 # This is the one which should be called by external code. 1225 def start(user_ns = None): 1226 """Return a running shell instance, dealing with threading options. 1227 1228 This is a factory function which will instantiate the proper IPython shell 1229 based on the user's threading choice. Such a selector is needed because 1230 different GUI toolkits require different thread handling details.""" 1231 1232 shell = _select_shell(sys.argv) -> 1233 return shell(user_ns = user_ns) 1234 1235 # Some aliases for backwards compatibility 1236 IPythonShell = IPShell 1237 IPythonShellEmbed = IPShellEmbed 1238 #************************ End of file *************************** 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 /home/v3ss/ipython-0.9-lab-working/IPython/Shell$py.class in __init__(self=, argv=None, user_ns=None, user_global_ns=None, debug=1, shell_class=) 61 CODE_RUN = None 62 63 # Default timeout for waiting for multithreaded shells (in seconds) 64 GUI_TIMEOUT = 10 65 66 #----------------------------------------------------------------------------- 67 # This class is trivial now, but I want to have it in to publish a clean 68 # interface. Later when the internals are reorganized, code that uses this 69 # shouldn't have to change. 70 71 class IPShell: 72 """Create an IPython instance.""" 73 74 def __init__(self,argv=None,user_ns=None,user_global_ns=None, 75 debug=1,shell_class=InteractiveShell): ---> 76 self.IP = make_IPython(argv,user_ns=user_ns, global matplotlib = undefined global backends = undefined global setderef = undefined 77 user_global_ns=user_global_ns, 78 debug=debug,shell_class=shell_class) 79 80 def mainloop(self,sys_exit=0,banner=None): 81 self.IP.mainloop(banner) 82 if sys_exit: 83 sys.exit() 84 85 #----------------------------------------------------------------------------- 86 def kill_embedded(self,parameter_s=''): 87 """%kill_embedded : deactivate for good the current embedded IPython. 88 89 This function (after asking for confirmation) sets an internal flag so that 90 an embedded IPython will never activate again. This is useful to 91 permanently disable a shell that is being called inside a loop: once you've /home/v3ss/ipython-0.9-lab-working/IPython/ipmaker$py.class in make_IPython(argv=['ipython.py'], user_ns=None, user_global_ns=None, debug=1, rc_override=None, shell_class=, embedded=False, **kw={}) 765 IP_rc.banner = 0 766 if IP_rc.banner: 767 BANN_P = IP.BANNER_PARTS 768 else: 769 BANN_P = [] 770 771 if IP_rc.profile: BANN_P.append('IPython profile: %s\n' % IP_rc.profile) 772 773 # add message log (possibly empty) 774 if msg.summary: BANN_P.append(msg.summary) 775 # Final banner is a string 776 IP.BANNER = '\n'.join(BANN_P) 777 778 # Finalize the IPython instance. This assumes the rc structure is fully 779 # in place. --> 780 IP.post_config_initialization() 781 782 return IP 783 #************************ end of file ************************** 784 785 786 787 788 789 790 791 792 793 794 795 /home/v3ss/ipython-0.9-lab-working/IPython/iplib$py.class in post_config_initialization(self=) 649 This is called after the configuration files have been processed to 650 'finalize' the initialization.""" 651 652 rc = self.rc 653 654 # Object inspector 655 self.inspector = OInspect.Inspector(OInspect.InspectColors, 656 PyColorize.ANSICodeColors, 657 'NoColor', 658 rc.object_info_string_level) 659 660 self.rl_next_input = None 661 self.rl_do_indent = False 662 # Load readline proper 663 --> 664 self.init_readline() global still = undefined global place = undefined global but = undefined global its = undefined global setting = undefined global may = undefined global be = undefined global partly = undefined global overridden = undefined global by = undefined global the = undefined global settings = undefined 665 666 667 # local shortcut, this is used a LOT 668 self.log = self.logger.log 669 670 # Initialize cache, set in/out prompts and printing system 671 self.outputcache = CachedOutput(self, 672 rc.cache_size, 673 rc.pprint, 674 input_sep = rc.separate_in, 675 output_sep = rc.separate_out, 676 output_sep2 = rc.separate_out2, 677 ps1 = rc.prompt_in1, 678 ps2 = rc.prompt_in2, 679 ps_out = rc.prompt_out, /home/v3ss/ipython-0.9-lab-working/IPython/iplib$py.class in init_readline(self=) 1309 def init_readline(self): 1310 """Command history completion/saving/reloading.""" 1311 1312 1313 import IPython.rlineimpl as readline 1314 1315 if not readline.have_readline: 1316 self.has_readline = 0 1317 self.readline = None 1318 # no point in bugging windows users with this every time: 1319 warn('Readline services not available on this platform.') 1320 else: 1321 sys.modules['readline'] = readline 1322 import atexit 1323 from IPython.completer import IPCompleter -> 1324 self.Completer = IPCompleter(self, global p = undefined global W = undefined global r = undefined global j = undefined 1325 None, 1326 None, 1327 self.rc.readline_omit__names, 1328 self.alias_table) 1329 sdisp = self.strdispatchers.get('complete_command', StrDispatch()) 1330 self.strdispatchers['complete_command'] = sdisp 1331 self.Completer.custom_completers = sdisp 1332 # Platform-specific configuration 1333 if os.name == 'nt': 1334 self.readline_startup_hook = readline.set_pre_input_hook 1335 else: 1336 self.readline_startup_hook = readline.set_startup_hook 1337 1338 # Load user's initrc file (readline config) 1339 # Or if libedit is used, load editrc. /home/v3ss/ipython-0.9-lab-working/IPython/completer.py in __init__(self=, shell=, namespace=None, global_namespace=None, omit__names=0, alias_table={}) 224 - global_namespace: secondary optional dict for completions, to 225 handle cases (such as IPython embedded inside functions) where 226 both Python scopes are visible. 227 228 - The optional omit__names parameter sets the completer to omit the 229 'magic' names (__magicname__) for python objects unless the text 230 to be completed explicitly starts with one or more underscores. 231 232 - If alias_table is supplied, it should be a dictionary of aliases 233 to complete. """ 234 235 Completer.__init__(self,namespace,global_namespace) 236 self.magic_prefix = shell.name+'.magic_' 237 self.magic_escape = shell.ESC_MAGIC 238 self.readline = readline --> 239 delims = self.readline.get_completer_delims() delims = undefined self.readline.get_completer_delims = undefined 240 delims = delims.replace(self.magic_escape,'') 241 self.readline.set_completer_delims(delims) 242 self.get_line_buffer = self.readline.get_line_buffer 243 self.get_endidx = self.readline.get_endidx 244 self.omit__names = omit__names 245 self.merge_completions = shell.rc.readline_merge_completions 246 if alias_table is None: 247 alias_table = {} 248 self.alias_table = alias_table 249 # Regexp to split filenames with spaces in them 250 self.space_name_re = re.compile(r'([^\\] )') 251 # Hold a local ref. to glob.glob for speed 252 self.glob = glob.glob 253 254 # Determine if we are running on 'dumb' terminals, like (X)Emacs AttributeError: 'module' object has no attribute 'get_completer_delims' *************************************************************************** History of session input: *** Last line of input (may not be in above history):