*************************************************************************** IPython post-mortem report {'commit_hash': 'a76c44e', 'commit_source': 'repository', 'ipython_path': '/home/jscandal/sw/ipython_src/ipython.git/IPython', 'ipython_version': '0.12.dev', 'os_name': 'posix', 'platform': 'Linux-3.0-ARCH-x86_64-Intel-R-_Core-TM-_i5_CPU_M_450_@_2.40GHz-with-glibc2.2.5', 'sys_executable': '/usr/bin/python2', 'sys_platform': 'linux2', 'sys_version': '2.7.2 (default, Jun 29 2011, 11:10:00) \n[GCC 4.6.1]'} *************************************************************************** *************************************************************************** Crash traceback: --------------------------------------------------------------------------- KeyError Python 2.7.2: /usr/bin/python2 Tue Aug 2 16:24:37 2011 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/jscandal/sw/ipython_src/ipython.git/IPython/frontend/qt/base_frontend_mixin.pyc in _dispatch(self=, msg={'buffers': [], 'content': {u'status': u'aborted'}, 'header': {u'date': datetime.datetime(2011, 8, 2, 16, 24, 37, 519223), u'msg_id': u'6a1e0c2c-933e-49de-bbca-33f6d864b3bc', u'msg_type': u'history_reply', u'session': u'968174cf-9e0c-4773-b2f0-803dc84654bb', u'username': u'kernel'}, 'msg_type': u'history_reply', 'parent_header': {u'date': datetime.datetime(2011, 8, 2, 16, 24, 34, 912289), u'msg_id': u'cb4cbb54-ab28-432b-867a-76840a040a5e', u'msg_type': u'history_request', u'session': u'67142a7f-df8d-4618-a5aa-7d097311bde8', u'username': u'jscandal'}}) 87 """ Called when the KernelManager channels have stopped listening or 88 when a listening KernelManager is removed from the frontend. 89 """ 90 91 #--------------------------------------------------------------------------- 92 # 'BaseFrontendMixin' protected interface 93 #--------------------------------------------------------------------------- 94 95 def _dispatch(self, msg): 96 """ Calls the frontend handler associated with the message type of the 97 given message. 98 """ 99 msg_type = msg['msg_type'] 100 handler = getattr(self, '_handle_' + msg_type, None) 101 if handler: --> 102 handler(msg) 103 104 def _is_from_this_session(self, msg): 105 """ Returns whether a reply from the kernel originated from a request 106 from this frontend. 107 """ 108 session = self._kernel_manager.session.session 109 return msg['parent_header']['session'] == session /home/jscandal/sw/ipython_src/ipython.git/IPython/frontend/qt/console/ipython_widget.pyc in _handle_history_reply(self=, msg={'buffers': [], 'content': {u'status': u'aborted'}, 'header': {u'date': datetime.datetime(2011, 8, 2, 16, 24, 37, 519223), u'msg_id': u'6a1e0c2c-933e-49de-bbca-33f6d864b3bc', u'msg_type': u'history_reply', u'session': u'968174cf-9e0c-4773-b2f0-803dc84654bb', u'username': u'kernel'}, 'msg_type': u'history_reply', 'parent_header': {u'date': datetime.datetime(2011, 8, 2, 16, 24, 34, 912289), u'msg_id': u'cb4cbb54-ab28-432b-867a-76840a040a5e', u'msg_type': u'history_request', u'session': u'67142a7f-df8d-4618-a5aa-7d097311bde8', u'username': u'jscandal'}}) 163 def _handle_execute_reply(self, msg): 164 """ Reimplemented to support prompt requests. 165 """ 166 info = self._request_info.get('execute') 167 if info and info.id == msg['parent_header']['msg_id']: 168 if info.kind == 'prompt': 169 number = msg['content']['execution_count'] + 1 170 self._show_interpreter_prompt(number) 171 else: 172 super(IPythonWidget, self)._handle_execute_reply(msg) 173 174 def _handle_history_reply(self, msg): 175 """ Implemented to handle history tail replies, which are only supported 176 by the IPython kernel. 177 """ --> 178 history_items = msg['content']['history'] 179 items = [ line.rstrip() for _, _, line in history_items ] 180 self._set_history(items) 181 182 def _handle_pyout(self, msg): 183 """ Reimplemented for IPython-style "display hook". 184 """ 185 if not self._hidden and self._is_from_this_session(msg): 186 content = msg['content'] 187 prompt_number = content['execution_count'] 188 data = content['data'] 189 if data.has_key('text/html'): 190 self._append_plain_text(self.output_sep, True) 191 self._append_html(self._make_out_prompt(prompt_number), True) 192 html = data['text/html'] 193 self._append_plain_text('\n', True) KeyError: 'history' *************************************************************************** History of session input: