[IPython-user] pydb 1.23 fails

Tony Mannucci Anthony.J.Mannucci@jpl.nasa....
Tue Jun 3 12:45:30 CDT 2008


I am running ipython 0.8.4 on OS X 10.4.11 (PowerPC). If I run 
ipython with the -pylab and -pydb options, I get the following error 
when trying to step through the program.

(Note: the -d option does not automatically invoke the debugger for 
some reason. If I do an "n" or "c" command at the first ipydb prompt, 
the debugger is not entered. If I do an "s" command to try to invoke 
the debugger, the following error ensues).

>----------------Call level 
>7---------------------------------------------------------------------------
>TypeError                                 Traceback (most recent call last)
>
>/Users/mannucci/Documents/python/source/test.py in <module>()
>       1 #
>       2 # !/usr/bin/env /usr/local/bin/pythonw
>----> 3 import os
>       4 #fn = os.environ.get('PYTHONPATH')+"init.py"
>       5 #execfile(fn)
>
>/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pydb/gdb.pyc 
>in trace_dispatch_gdb(self, frame, event, arg)
>     239
>     240         try:
>--> 241             return self.trace_dispatch_old(frame, event, arg)
>     242         except BdbQuit:
>     243             if self.field_BdbQuit:
>
>/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/bdb.pyc 
>in trace_dispatch(self, frame, event, arg)
>      48             return self.dispatch_line(frame)
>      49         if event == 'call':
>---> 50             return self.dispatch_call(frame, arg)
>      51         if event == 'return':
>      52             return self.dispatch_return(frame, arg)
>
>/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/bdb.pyc 
>in dispatch_call(self, frame, arg)
>      77             # No need to trace this function
>      78             return # None
>---> 79         self.user_call(frame, arg)
>      80         if self.quitting: raise BdbQuit
>      81         return self.trace_dispatch
>
>/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pydb/pydbbdb.pyc 
>in user_call(self, frame, argument_list)
>     367                           ('-' * (2*frame_count), frame_count))
>     368             if frame_count >= 0:
>--> 369                 self.__print_call_params(frame)
>     370             else:
>     371                 self.msg("")
>
>/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pydb/pydbbdb.pyc 
>in __print_call_params(self, frame)
>      43         self.setup(frame)
>      44         self.msg(self.format_stack_entry(self.stack[-1],
>---> 45                                          include_location=False))
>      46
>      47     def __print_location_if_trace(self, frame, include_fntrace=True):
>
>TypeError: format_stack_entry() got an unexpected keyword argument 
>'include_location'

Is this a version issue with pydb 1.23? Perhaps an incompatibility 
between pydb and python 2.5? Thanks for any help!

-Tony

-- 
Tony Mannucci
Supervisor, Ionospheric and Atmospheric Remote Sensing Group
  Mail-Stop 138-308,                     Tel > (818) 354-1699
  Jet Propulsion Laboratory,              Fax > (818) 393-5115
  California Institute of Technology,     Email > Tony.Mannucci@jpl.nasa.gov
  4800 Oak Grove Drive,                   http://genesis.jpl.nasa.gov
  Pasadena, CA 91109


More information about the IPython-user mailing list