You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/Debugger.py I have now doesn't have a function checkline() anymore, so I think the solution suggested there isn't relevant.
/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'
The text was updated successfully, but these errors were encountered:
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.
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'
The text was updated successfully, but these errors were encountered: