question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ipython 7.10.1 and ipdb 0.12.3

See original GitHub issue

I’m currently running into an issue with inputhook

In [1]: import ipdb; ipdb.set_trace()
<IPython.terminal.debugger.TerminalPdb object at 0x7fbca4678b50>
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-1-f3f8e0a2fcd8> in <module>
----> 1 import ipdb; ipdb.set_trace()

/usr/local/lib/python3.8/site-packages/ipdb/__main__.py in set_trace(frame, context)
     65     if frame is None:
     66         frame = sys._getframe().f_back
---> 67     p = _init_pdb(context).set_trace(frame)
     68     if p and hasattr(p, 'shell'):
     69         p.shell.restore_sys_module_state()

/usr/local/lib/python3.8/site-packages/ipdb/__main__.py in _init_pdb(context, commands)
     46 def _init_pdb(context=3, commands=[]):
     47     try:
---> 48         p = debugger_cls(context=context)
     49     except TypeError:
     50         p = debugger_cls()

/usr/local/lib/python3.8/site-packages/IPython/terminal/debugger.py in __init__(self, *args, **kwargs)
     28         Pdb.__init__(self, *args, **kwargs)
     29         self._ptcomp = None
---> 30         self.pt_init()
     31
     32     def pt_init(self):

/usr/local/lib/python3.8/site-packages/IPython/terminal/debugger.py in pt_init(self)
     68         if not PTK3:
     69             print(self)
---> 70             options['inputhook'] = self.inputhook
     71         self.pt_app = PromptSession(**options)
     72

AttributeError: 'TerminalPdb' object has no attribute 'inputhook'

I’m trying to investigate and I’ll update with my own findings

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
JBKahncommented, Dec 12, 2019
0reactions
szeitlincommented, Dec 12, 2019

in the meantime I may try downgrading to 7.9 since I don’t think I care too much about having the very latest version?

Read more comments on GitHub >

github_iconTop Results From Across the Web

7.x Series — IPython 8.7.0 documentation
IPython 7.25 is a minor release that contains a single bugfix, which is highly recommended for all users of ipdb, ipython debugger %debug...
Read more >
ipdb · PyPI
Use. ipdb exports functions to access the IPython debugger, which features tab completion, syntax highlighting, better tracebacks, better introspection with the ...
Read more >
News - IPython
IPython 5.3.0 was released on February 24th, 2017. This is primarily a bugfix release, with some small new features. See the release notes...
Read more >
wemake-services/wemake-python-styleguide | Coveralls - Test ...
Pull Request Pull Request #1053: Bump ipdb from 0.12.2 to 0.12.3. Run Details. 2273 of 2273 branches covered (100.0%). Branch coverage included in...
Read more >
Available Python wheels - CC Doc
DeepCell, 0.12.3 ... ipdb, 0.11, 0.10.3 ... 7.15.0, 7.14.0, 7.13.0, 7.11.1, 7.10.1, 7.9.0, 7.8.0, 7.6.1, 7.5.0, 7.3.0, 7.2.0, 6.5.0, 6.4.0, 6.2.1, 6.1.0.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found