Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pdb instance has no attribute 'curframe' #128

Closed
mhearne-usgs opened this issue Jun 11, 2010 · 2 comments
Closed

Pdb instance has no attribute 'curframe' #128

mhearne-usgs opened this issue Jun 11, 2010 · 2 comments
Milestone

Comments

@mhearne-usgs
Copy link

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:

https://bugs.launchpad.net/ipython/+bug/381069

However, the version of IPython/Debugger.py 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 testme.py

AttributeError Traceback (most recent call last)

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

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

/Library/Frameworks/EPD64.framework/Versions/6.2/lib/python2.6/site-packages/IPython/Magic.py 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'

@amannuc
Copy link

amannuc commented Jun 27, 2010

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.

@fperez
Copy link
Member

fperez commented Mar 13, 2011

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants