Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Pdb instance has no attribute 'curframe' #128

mhearne-usgs opened this Issue · 2 comments

3 participants


I am using Enthought's most recent distribution:

Python 2.6.5 |EPD 6.2-1 (64-bit)| (r265:79063, May 28 2010, 15:24:16)
IPython 0.10

My platform is Mac OS 10.6.3

Any time I attempt to run ipython with the debugger option, I see the following error:
"Pdb instance has no attribute 'curframe'" (full output below).

I had this issue with a couple of previous versions of ipython, and I think I was able to work around it by following instructions listed at the bottom of this reported bug:

However, the version of IPython/ I have now doesn't have a function checkline() anymore, so I think the solution suggested there isn't relevant.

Complete stack trace:

In [1]: run -d

AttributeError Traceback (most recent call last)

/Users/mhearne/src/python/ in ()

/Library/Frameworks/EPD64.framework/Versions/6.2/lib/python2.6/site-packages/IPython/ in ipmagic(self, arg_s)
1180 else:
1181 magic_args = self.var_expand(magic_args,1)
-> 1182 return fn(magic_args)
1184 def ipalias(self,arg_s):

/Library/Frameworks/EPD64.framework/Versions/6.2/lib/python2.6/site-packages/IPython/ in magic_run(self, parameter_s, runner, file_finder)
1631 maxtries = 10
1632 bp = int(opts.get('b',[1])[0])
-> 1633 checkline = deb.checkline(filename,bp)
1634 if not checkline:
1635 for bp in range(bp+1,bp+maxtries+1):

/Library/Frameworks/EPD64.framework/Versions/6.2/lib/python2.6/pdb.pyc in checkline(self, filename, lineno)
452 line or EOF). Warning: testing is not comprehensive.
453 """
--> 454 line = linecache.getline(filename, lineno, self.curframe.f_globals)
455 if not line:
456 print >>self.stdout, 'End of file'

AttributeError: Pdb instance has no attribute 'curframe'


I see the same issue for EPD's distribution for Redhat Linux (6.1.1). I then installed ipython directly into that distribution (0.10) and it still failed the same way. I have older EPD distributions (e.g. on Mac OS X) for which this is not an issue. Not sure what is going on.

I wonder if this is a python 2.6 issue, because my other distributions are 2.5, I believe.


This bug has already been fixed in IPython 0.10.1 (already released and available in current EPD), it was only present in 0.10. Closing here.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.