将pudb与ipython一起使用时出错

将pudb与ipython一起使用时出错,ipython,pudb,Ipython,Pudb,我尝试使用带有ipython的PuDB作为shell,但是当我转到shell时,我得到以下错误: can't set attribute Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfu

我尝试使用带有ipython的PuDB作为shell,但是当我转到shell时,我得到以下错误:

can't set attribute
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/Library/Python/2.7/site-packages/IPython/core/interactiveshell.py", line 2744, in atexit_operations
    self.reset(new_session=False)
  File "/Library/Python/2.7/site-packages/IPython/core/interactiveshell.py", line 1132, in reset
    self.displayhook.flush()
  File "/Library/Python/2.7/site-packages/IPython/core/displayhook.py", line 255, in flush
    self.shell.user_ns['_oh'].clear()
KeyError: '_oh'
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/Library/Python/2.7/site-packages/IPython/core/interactiveshell.py", line 2744, in atexit_operations
    self.reset(new_session=False)
  File "/Library/Python/2.7/site-packages/IPython/core/interactiveshell.py", line 1132, in reset
    self.displayhook.flush()
  File "/Library/Python/2.7/site-packages/IPython/core/displayhook.py", line 255, in flush
    self.shell.user_ns['_oh'].clear()
KeyError: '_oh'
版本详情:

  • PuDB 2011.3.1
  • 伊皮顿0.12
  • Python 2.7.1
  • Mac OS X 10.7.3

这是一个,应在IPython 0.12.1或master中固定。更新到当前的(0.12.1)IPython有帮助吗?

我不得不将IPython升级到0.12.1,将pudb升级到2012.1。做了那件事之后,它成功了。