Created
May 25, 2016 19:52
-
-
Save Carreau/17593cdede95551e4a122941efdf6487 to your computer and use it in GitHub Desktop.
Xonsh + IPython crash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Matthiass-MacBook-Pro:~ bussonniermatthias$ mkdir test | |
Matthiass-MacBook-Pro:~ bussonniermatthias$ cd test | |
Matthiass-MacBook-Pro:test bussonniermatthias$ xonsh | |
(rootenv)~/test$ ipython > foo | |
Traceback (most recent call last): | |
File "/Users/bussonniermatthias/dev/prompt_toolkit/prompt_toolkit/interface.py", line 385, in run | |
self._redraw() | |
File "/Users/bussonniermatthias/dev/prompt_toolkit/prompt_toolkit/interface.py", line 344, in _redraw | |
self.renderer.render(self, self.layout, is_done=self.is_done) | |
File "/Users/bussonniermatthias/dev/prompt_toolkit/prompt_toolkit/renderer.py", line 391, in render | |
size = output.get_size() | |
File "/Users/bussonniermatthias/dev/prompt_toolkit/prompt_toolkit/terminal/vt100_output.py", line 359, in get_size | |
rows, columns = _get_size(stdout.fileno()) | |
File "/Users/bussonniermatthias/dev/prompt_toolkit/prompt_toolkit/terminal/vt100_output.py", line 317, in _get_size | |
fcntl.ioctl(fileno, termios.TIOCGWINSZ, buf, True) | |
OSError: [Errno 25] Inappropriate ioctl for device | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Users/bussonniermatthias/anaconda/bin/ipython", line 9, in <module> | |
load_entry_point('ipython', 'console_scripts', 'ipython')() | |
File "/Users/bussonniermatthias/dev/ipython/IPython/__init__.py", line 119, in start_ipython | |
return launch_new_instance(argv=argv, **kwargs) | |
File "/Users/bussonniermatthias/dev/traitlets/traitlets/config/application.py", line 599, in launch_instance | |
app.start() | |
File "/Users/bussonniermatthias/dev/ipython/IPython/terminal/ipapp.py", line 347, in start | |
self.shell.mainloop() | |
File "/Users/bussonniermatthias/dev/ipython/IPython/terminal/ptshell.py", line 386, in mainloop | |
self.interact() | |
File "/Users/bussonniermatthias/dev/ipython/IPython/terminal/ptshell.py", line 369, in interact | |
code = self.prompt_for_code() | |
File "/Users/bussonniermatthias/dev/ipython/IPython/terminal/ptshell.py", line 314, in prompt_for_code | |
pre_run=self.pre_prompt, reset_current_buffer=True) | |
File "/Users/bussonniermatthias/dev/prompt_toolkit/prompt_toolkit/interface.py", line 397, in run | |
self._redraw() | |
File "/Users/bussonniermatthias/dev/prompt_toolkit/prompt_toolkit/interface.py", line 344, in _redraw | |
self.renderer.render(self, self.layout, is_done=self.is_done) | |
File "/Users/bussonniermatthias/dev/prompt_toolkit/prompt_toolkit/renderer.py", line 391, in render | |
size = output.get_size() | |
File "/Users/bussonniermatthias/dev/prompt_toolkit/prompt_toolkit/terminal/vt100_output.py", line 359, in get_size | |
rows, columns = _get_size(stdout.fileno()) | |
File "/Users/bussonniermatthias/dev/prompt_toolkit/prompt_toolkit/terminal/vt100_output.py", line 317, in _get_size | |
fcntl.ioctl(fileno, termios.TIOCGWINSZ, buf, True) | |
OSError: [Errno 25] Inappropriate ioctl for device | |
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 ipython-dev@scipy.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 | |
(rootenv)~/test$ cat foo | |
Python 3.5.1 |Anaconda custom (x86_64)| (default, Dec 7 2015, 11:24:55) | |
Type "copyright", "credits" or "license" for more information. | |
IPython 5.0.0.dev -- 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. | |
^[[51;1R(rootenv)~/test$ cat foo | |
Python 3.5.1 |Anaconda custom (x86_64)| (default, Dec 7 2015, 11:24:55) | |
Type "copyright", "credits" or "license" for more information. | |
IPython 5.0.0.dev -- 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. | |
PermissionError: [Errno 1] Operation not permitted | |
^[[51;1R | |
[4]+ Stopped xonsh | |
Matthiass-MacBook-Pro:test bussonniermatthias$ fg | |
xonsh | |
(rootenv)~/test$ | |
Traceback (most recent call last): | |
File "/Users/bussonniermatthias/anaconda/bin/xonsh", line 9, in <module> | |
load_entry_point('xonsh', 'console_scripts', 'xonsh')() | |
File "/Users/bussonniermatthias/dev/xonsh/xonsh/main.py", line 254, in main | |
shell.cmdloop() | |
File "/Users/bussonniermatthias/dev/xonsh/xonsh/ptk/shell.py", line 115, in cmdloop | |
line = self.singleline(auto_suggest=auto_suggest) | |
File "/Users/bussonniermatthias/dev/xonsh/xonsh/ptk/shell.py", line 84, in singleline | |
line = self.prompter.prompt(**prompt_args) | |
File "/Users/bussonniermatthias/dev/xonsh/xonsh/ptk/shortcuts.py", line 109, in prompt | |
document = cli.run(reset_current_buffer=False) | |
File "/Users/bussonniermatthias/dev/prompt_toolkit/prompt_toolkit/interface.py", line 383, in run | |
with self.input.raw_mode(): | |
File "/Users/bussonniermatthias/dev/prompt_toolkit/prompt_toolkit/terminal/vt100_input.py", line 415, in __enter__ | |
termios.tcsetattr(self.fileno, termios.TCSANOW, newattr) | |
termios.error: (4, 'Interrupted system call') | |
Matthiass-MacBook-Pro:test bussonniermatthias$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment