[IPython-user] Error when using debugger and EPD

Michael Hearne mhearne@usgs....
Thu Jan 21 09:56:26 CST 2010

All - I have recently installed EPD6.0.0 with ipython 0.10.   Version  
info from ipython:

"Enthought Python Distribution -- http://code.enthought.com

Python 2.6.4 |EPD 6.0.0 (64-bit)| (r264:75706, Dec 11 2009, 11:13:08)
Type "copyright", "credits" or "license" for more information.

IPython 0.10 -- An enhanced Interactive Python."

  If I try to run a Python script in ipython using:

run -d foo.py

I get the error messages below.  What can I do to update/patch my  
ipython code so that I can run scripts in debug mode?  This is a  
functionality I use all the time.



AttributeError                            Traceback (most recent call  

/Users/mhearne/src/python/qdds/<ipython console> in <module>()

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)
    1184     def ipalias(self,arg_s):

packages/IPython/Magic.py in magic_run(self, parameter_s, runner,  
    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):

pdb.pyc in checkline(self, filename, lineno)
     450         line or EOF). Warning: testing is not comprehensive.
     451         """
--> 452         line = linecache.getline(filename, lineno,  
     453         if not line:
     454             print >>self.stdout, 'End of file'

AttributeError: Pdb instance has no attribute 'curframe'

More information about the IPython-user mailing list