ipython: ipython crash

Traceback (most recent call last):
  File "c:\python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27\Scripts\ipython.exe\__main__.py", line 9, in <module>
    sys.exit(start_ipython())
  File "c:\python27\lib\site-packages\IPython\__init__.py", line 119, in start_i
python
    return launch_new_instance(argv=argv, **kwargs)
  File "c:\python27\lib\site-packages\traitlets\config\application.py", line 658
, in launch_instance
    app.start()
  File "c:\python27\lib\site-packages\IPython\terminal\ipapp.py", line 348, in s
tart
    self.shell.mainloop()
  File "c:\python27\lib\site-packages\IPython\terminal\interactiveshell.py", lin
e 440, in mainloop
    self.interact()
  File "c:\python27\lib\site-packages\IPython\terminal\interactiveshell.py", lin
e 423, in interact
    code = self.prompt_for_code()
  File "c:\python27\lib\site-packages\IPython\terminal\interactiveshell.py", lin
e 333, in prompt_for_code
    pre_run=self.pre_prompt, reset_current_buffer=True)
  File "c:\python27\lib\site-packages\prompt_toolkit\interface.py", line 392, in
 run
    self._redraw()
  File "c:\python27\lib\site-packages\prompt_toolkit\interface.py", line 351, in
 _redraw
    self.renderer.render(self, self.layout, is_done=self.is_done)
  File "c:\python27\lib\site-packages\prompt_toolkit\renderer.py", line 398, in
render
    size = output.get_size()
  File "c:\python27\lib\site-packages\prompt_toolkit\terminal\win32_output.py",
line 103, in get_size
    info = self.get_win32_screen_buffer_info()
  File "c:\python27\lib\site-packages\prompt_toolkit\terminal\win32_output.py",
line 150, in get_win32_screen_buffer_info
    raise NoConsoleScreenBufferError
NoConsoleScreenBufferError: No Windows console found. Are you running cmd.exe?

os:win7 64bit python version:2.7

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (12 by maintainers)

Most upvoted comments

I pushed a possible fix: https://github.com/jonathanslenders/python-prompt-toolkit/commit/d5d9e296cdd3e2b1e8126f6307a7c09d0bdcdd3a

Everyone: can you please upgrade to the latest prompt_toolkit master, and see whether it works? So far, I really still don’t understand what’s going on. I’m far from confident, but for IPython it seems to work stable, where I got a crash before.