jonathanslenders / ptpdb

prompt_toolkit/ptpython pdb frontend
181 stars 20 forks source link

PythonInput error in 0.17 #18

Open Grokzen opened 6 years ago

Grokzen commented 6 years ago

@jonathanslenders I currently get the following error when running the latest version of ptpdb and ptpython. It happens when running import pdb; pdb.set_trace()

(fame) ➜  fame git: ✗ SKIP_UID_CHECK=1 fame
-> cli.py(93)cli_entrypoint()
     args = parse_cli()

Traceback (most recent call last):
  File "/home/grok/.virtualenvs/fame/bin/fame", line 11, in <module>
    load_entry_point('fame', 'console_scripts', 'fame')()
  File "/home/grok/code/fame/fame/cli.py", line 93, in cli_entrypoint
    args = parse_cli()
  File "/home/grok/code/fame/fame/cli.py", line 93, in cli_entrypoint
    args = parse_cli()
  File "/usr/lib/python2.7/bdb.py", line 49, in trace_dispatch
    return self.dispatch_line(frame)
  File "/usr/lib/python2.7/bdb.py", line 67, in dispatch_line
    self.user_line(frame)
  File "/usr/lib/python2.7/pdb.py", line 158, in user_line
    self.interaction(frame, None)
  File "/usr/lib/python2.7/pdb.py", line 210, in interaction
    self.cmdloop()
  File "/home/grok/.virtualenvs/fame/local/lib/python2.7/site-packages/ptpdb/__init__.py", line 324, in cmdloop
    line = self._get_input()
  File "/home/grok/.virtualenvs/fame/local/lib/python2.7/site-packages/ptpdb/__init__.py", line 392, in _get_input
    self.python_input.key_bindings_manager.reset(self.cli)
AttributeError: 'PythonInput' object has no attribute 'key_bindings_manager'
(fame) ➜  fame git: ✗ pip freeze
asn1crypto==0.23.0
bcrypt==3.1.4
cffi==1.11.2
configparser==3.5.0
cryptography==2.1.3
docopt==0.6.2
enum34==1.1.6
Fabric==1.14.0
flake8==3.5.0
idna==2.6
ipaddress==1.0.18
jedi==0.11.0
mccabe==0.6.1
paramiko==2.3.1
parso==0.1.0
pkg-resources==0.0.0
prompt-toolkit==1.0.15
ptpdb==0.17
ptpython==0.41
py==1.4.34
pyasn1==0.3.7
pycodestyle==2.3.1
pycparser==2.18
pyflakes==1.6.0
Pygments==2.2.0
PyNaCl==1.2.0
pytest==3.2.3
six==1.11.0
wcwidth==0.1.7
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118] on linux2