jonathanslenders / ptpdb

prompt_toolkit/ptpython pdb frontend
181 stars 20 forks source link

set_trace() cause exception #3

Closed Grokzen closed 9 years ago

Grokzen commented 9 years ago

Found the following error when trying out this tool. Installed manually from source.

Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ptpdb import set_trace
>>> set_trace()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "ptpdb/__init__.py", line 263, in set_trace
    PtPdb().set_trace(sys._getframe().f_back)
  File "ptpdb/__init__.py", line 124, in __init__
    PdbShortcutsToolbar(weakref.ref(self)),
TypeError: __init__() got an unexpected keyword argument '_extra_buffer_processors'
>>> 
jonathanslenders commented 9 years ago

This is because the latest ptpdb expects the latest ptpython. (And by latest, I mean the latest commit of the master branch on Github.) It doesn't work with the Pypi version yet. I will try to release new versions with bug fixes as fast as possible. (But quite busy lately.)

Grokzen commented 9 years ago

I am closing this because of what you said works by installing both libs from latest commit :]