[IPython-user] run -d crashes
Jean-Francois Moulin
jfrancis18@gmail....
Wed Oct 7 06:27:36 CDT 2009
Hi!
under ubuntu Jaunty (64bits), IPython 0.10
and with Python 2.6.2,
run -d myscript would crash with the following:
In [1]: run -d test_run.py
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/home/jfmoulin/Temp/<ipython console> in <module>()
/usr/local/lib/python2.6/dist-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):
/usr/local/lib/python2.6/dist-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):
/usr/lib/python2.6/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'
More information about the IPython-user
mailing list