[IPython-dev] pdb errors on latest checkout

Matthew Brett matthew.brett at gmail.com
Tue Dec 22 05:35:39 EST 2009


Hi,

As of about 4 days ago, I have been getting errors whenever I try and
enter pdb, with the latest bzr checkout:

blair:~ mb312$ ipython
Python 2.6.4 (r264:75706, Nov 29 2009, 00:03:57)
Type "copyright", "credits" or "license" for more information.

IPython 0.11.bzr.r1205 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: pdb on
Automatic pdb calling has been turned ON

In [2]: 1/0
------------------------------------------------------------
Traceback (most recent call last):
  File "<ipython console>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero

[IPythonApp] Aborting application: ipython
Traceback (most recent call last):
  File "/Users/mb312/usr/local/lib/python2.6/site-packages/IPython/core/application.py",
line 292, in attempt
    func()
  File "/Users/mb312/usr/local/lib/python2.6/site-packages/IPython/core/ipapp.py",
line 527, in start_app
    self.shell.mainloop()
  File "/Users/mb312/usr/local/lib/python2.6/site-packages/IPython/core/iplib.py",
line 1699, in mainloop
    self.interact(display_banner=display_banner)
  File "/Users/mb312/usr/local/lib/python2.6/site-packages/IPython/core/iplib.py",
line 1842, in interact
    more = self.push_line(line)
  File "/Users/mb312/usr/local/lib/python2.6/site-packages/IPython/core/iplib.py",
line 2176, in push_line
    more = self.runsource('\n'.join(self.buffer), self.filename)
  File "/Users/mb312/usr/local/lib/python2.6/site-packages/IPython/core/iplib.py",
line 2102, in runsource
    if self.runcode(code) == 0:
  File "/Users/mb312/usr/local/lib/python2.6/site-packages/IPython/core/iplib.py",
line 2144, in runcode
    self.showtraceback()
  File "/Users/mb312/usr/local/lib/python2.6/site-packages/IPython/core/iplib.py",
line 1280, in showtraceback
    self.InteractiveTB(etype,value,tb,tb_offset=tb_offset)
  File "/Users/mb312/usr/local/lib/python2.6/site-packages/IPython/core/ultratb.py",
line 1005, in __call__
    self.debugger()
  File "/Users/mb312/usr/local/lib/python2.6/site-packages/IPython/core/ultratb.py",
line 866, in debugger
    self.pdb.interaction(self.tb.tb_frame, self.tb)
  File "/Users/mb312/usr/local/lib/python2.6/site-packages/IPython/core/debugger.py",
line 282, in interaction
    __IPYTHON__.set_completer_frame(frame)
NameError: global name '__IPYTHON__' is not defined

I'm afraid I got a little lost trying to debug this - is there
anything obvious I should try?

Thanks a lot,

Matthew



More information about the IPython-dev mailing list