<#9939 Pantsd crashes with ipdb, iPython, and comp...
# github-notifications
q
#9939 Pantsd crashes with ipdb, iPython, and complex pagers Issue created by Eric-Arellano
Copy code
▶ ./v2 repl --shell=ipython
21:13:16:036 [INFO] Completed: Resolving 1 requirement: ipython==5.8.0
21:13:18:513 [INFO] Completed: Building ipython-repl.pex
Python 3.6.10 (default, May 12 2020, 19:47:44)
Type "copyright", "credits" or "license" for more information.

IPython 5.8.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]:
Traceback (most recent call last):
  File "/Users/eric/DocsLocal/code/projects/pants/.pants.d/tmpui8tnufl/ipython-repl.pex/.bootstrap/pex/pex.py", line 396, in execute
    exit_code = self._wrap_coverage(self._wrap_profiling, self._execute)
  File "/Users/eric/DocsLocal/code/projects/pants/.pants.d/tmpui8tnufl/ipython-repl.pex/.bootstrap/pex/pex.py", line 328, in _wrap_coverage
    return runner(*args)
  File "/Users/eric/DocsLocal/code/projects/pants/.pants.d/tmpui8tnufl/ipython-repl.pex/.bootstrap/pex/pex.py", line 359, in _wrap_profiling
    return runner(*args)
  File "/Users/eric/DocsLocal/code/projects/pants/.pants.d/tmpui8tnufl/ipython-repl.pex/.bootstrap/pex/pex.py", line 447, in _execute
    return self.execute_entry(self._pex_info.entry_point)
  File "/Users/eric/DocsLocal/code/projects/pants/.pants.d/tmpui8tnufl/ipython-repl.pex/.bootstrap/pex/pex.py", line 544, in execute_entry
    return runner(entry_point)
  File "/Users/eric/DocsLocal/code/projects/pants/.pants.d/tmpui8tnufl/ipython-repl.pex/.bootstrap/pex/pex.py", line 559, in execute_pkg_resources
    return runner()
  File "/Users/eric/.pex/installed_wheels/6d804a3d1cd9b6367fb243e0d5f8a3ae851d5aec/ipython-5.8.0-py3-none-any.whl/IPython/__init__.py", line 119, in start_ipython
    return launch_new_instance(argv=argv, **kwargs)
  File "/Users/eric/.pex/installed_wheels/2141181f135fda3f826e75453c112fc9d4ab5943/traitlets-4.3.3-py2.py3-none-any.whl/traitlets/config/application.py", line 664, in launch_instance
    app.start()
  File "/Users/eric/.pex/installed_wheels/6d804a3d1cd9b6367fb243e0d5f8a3ae851d5aec/ipython-5.8.0-py3-none-any.whl/IPython/terminal/ipapp.py", line 355, in start
    self.shell.mainloop()
  File "/Users/eric/.pex/installed_wheels/6d804a3d1cd9b6367fb243e0d5f8a3ae851d5aec/ipython-5.8.0-py3-none-any.whl/IPython/terminal/interactiveshell.py", line 495, in mainloop
    self.interact()
  File "/Users/eric/.pex/installed_wheels/6d804a3d1cd9b6367fb243e0d5f8a3ae851d5aec/ipython-5.8.0-py3-none-any.whl/IPython/terminal/interactiveshell.py", line 478, in interact
    code = self.prompt_for_code()
  File "/Users/eric/.pex/installed_wheels/6d804a3d1cd9b6367fb243e0d5f8a3ae851d5aec/ipython-5.8.0-py3-none-any.whl/IPython/terminal/interactiveshell.py", line 372, in prompt_for_code
    pre_run=self.pre_prompt, reset_current_buffer=True)
  File "/Users/eric/.pex/installed_wheels/76668ef9197325b7555d7f8658f6c5fa043bed68/prompt_toolkit-1.0.18-py3-none-any.whl/prompt_toolkit/interface.py", line 411, in run
    with self.input.raw_mode():
  File "/Users/eric/.pex/installed_wheels/76668ef9197325b7555d7f8658f6c5fa043bed68/prompt_toolkit-1.0.18-py3-none-any.whl/prompt_toolkit/terminal/vt100_input.py", line 473, in __enter__
    os.write(self.fileno, b'\x1b[?1l')
OSError: [Errno 9] Bad file descriptor

If you suspect this is an IPython bug, please report it at:
    <https://github.com/ipython/ipython/issues>
or send an email to the mailing list at <mailto:ipython-dev@python.org|ipython-dev@python.org>

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    %config Application.verbose_crash=True

21:13:20:205 [INFO] Completed: `repl` goal
pantsbuild/pants
u