[IPython-user] Unable to use PDB with IPython 0.10

Jesus Aguillon jesus@aguillon....
Tue Oct 20 23:14:14 CDT 2009


I cannot do a run -d myfile.py without getting the following error:

In [15]: run -d logger.py
---------------------------------------------------------------------------

> AttributeError                            Traceback (most recent call last)
>
> c:\Python26\Lib\site-packages\solecon-1.41-py2.5.egg\logger\<ipython
> console> in <module>()
>
> C:\Python26\lib\site-packages\IPython\iplib.pyc 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):
>
> C:\Python26\lib\site-packages\IPython\Magic.pyc 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):
>
> C:\Python26\lib\pdb.pyc in checkline(self, filename, lineno)
>     450         line or EOF). Warning: testing is not comprehensive.
>     451         """
> --> 452         line = linecache.getline(filename, lineno,
> self.curframe.f_globals)
>     453         if not line:
>     454             print >>self.stdout, 'End of file'
>
> AttributeError: Pdb instance has no attribute 'curframe'
>

I am running Python 2.6.2 on Windows (this all worked when I was using
Python 2.5.x).

Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)
> Type "copyright", "credits" or "license" for more information.
>
> IPython 0.10 -- 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.
>


Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20091020/9651c587/attachment.html 


More information about the IPython-user mailing list