You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On OSX, if I attempt to import a nonexistent module, ipython crashes within _get_terminal_size.py:
$ ipython
Python 2.7.13 (default, Apr 4 2017, 08:47:57)
Type "copyright", "credits" or "license" for more information.
IPython 5.4.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]: import not_a_real_module
Traceback (most recent call last):
File "/usr/local/bin/ipython", line 11, in <module>
sys.exit(start_ipython())
File "/usr/local/lib/python2.7/site-packages/IPython/__init__.py", line 119, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "/Users/sabae/Library/Python/2.7/lib/python/site-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/usr/local/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 355, in start
self.shell.mainloop()
File "/usr/local/lib/python2.7/site-packages/IPython/terminal/interactiveshell.py", line 493, in mainloop
self.interact()
File "/usr/local/lib/python2.7/site-packages/IPython/terminal/interactiveshell.py", line 484, in interact
self.run_cell(code, store_history=True)
File "/usr/local/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2718, in run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "/usr/local/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2847, in run_ast_nodes
self.showtraceback()
File "/usr/local/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 1826, in showtraceback
value, tb, tb_offset=tb_offset)
File "/usr/local/lib/python2.7/site-packages/IPython/core/ultratb.py", line 1412, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context)
File "/usr/local/lib/python2.7/site-packages/IPython/core/ultratb.py", line 1320, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context
File "/usr/local/lib/python2.7/site-packages/IPython/core/ultratb.py", line 1170, in structured_traceback
tb_offset)
File "/usr/local/lib/python2.7/site-packages/IPython/core/ultratb.py", line 1107, in format_exception_as_a_whole
head = self.prepare_header(etype, self.long_header)
File "/usr/local/lib/python2.7/site-packages/IPython/core/ultratb.py", line 1041, in prepare_header
width = min(75, get_terminal_size()[0])
File "/usr/local/lib/python2.7/site-packages/IPython/utils/terminal.py", line 125, in get_terminal_size
return _get_terminal_size((defaultx, defaulty))
File "/usr/local/lib/python2.7/site-packages/IPython/utils/_get_terminal_size.py", line 80, in _get_terminal_size
res = fcntl.ioctl(fd, termios.TIOCGWINSZ, b"\x00" * 4)
TypeError: argument must be an int, or have a fileno() method.
The error message goes on to tell me to try setting %config Application.verbose_crash=True, but that doesn't improve matters at all.
The text was updated successfully, but these errors were encountered:
On OSX, if I attempt to import a nonexistent module, ipython crashes within
_get_terminal_size.py
:The error message goes on to tell me to try setting
%config Application.verbose_crash=True
, but that doesn't improve matters at all.The text was updated successfully, but these errors were encountered: