ipython: ipython 6.2.1 does not work on OS Windows: No Windows console found. Are you running cmd.exe?

Python 3.3 64 bit on Windows 7

prompt_toolkit.terminal.win32_output.NoConsoleScreenBufferError: No Windows console found. Are you running cmd.exe?

Below the full log of my actions in separate empty directory and empty virtual env:

C:\Temp\test>dir /b

C:\Temp\test>python -V
Python 3.3.5

C:\Temp\test>python -m virtualenv .
Using base prefix 'D:\\Python\\3.3-64'
New python executable in C:\Temp\test\Scripts\python.exe
Installing setuptools, pip, wheel...done.

C:\Temp\test>dir /b
Include
Lib
pip-selfcheck.json
Scripts

C:\Temp\test>cd Scripts

C:\Temp\test\Scripts>pip install ipython
Collecting ipython
  Using cached ipython-6.2.1-py3-none-any.whl
Collecting win-unicode-console>=0.5; sys_platform == "win32" and python_version < "3.6" (from ipython)
Collecting pathlib2; python_version == "3.3" (from ipython)
  Using cached pathlib2-2.3.0-py2.py3-none-any.whl
Collecting decorator (from ipython)
  Using cached decorator-4.1.2-py2.py3-none-any.whl
Collecting jedi>=0.10 (from ipython)
  Using cached jedi-0.11.0-py2.py3-none-any.whl
Collecting pickleshare (from ipython)
  Using cached pickleshare-0.7.4-py2.py3-none-any.whl
Collecting traitlets>=4.2 (from ipython)
  Using cached traitlets-4.3.2-py2.py3-none-any.whl
Collecting typing; python_version <= "3.4" (from ipython)
  Using cached typing-3.6.2-py3-none-any.whl
Collecting prompt-toolkit<2.0.0,>=1.0.4 (from ipython)
  Using cached prompt_toolkit-1.0.15-py3-none-any.whl
Collecting pygments (from ipython)
  Using cached Pygments-2.2.0-py2.py3-none-any.whl
Collecting colorama; sys_platform == "win32" (from ipython)
  Using cached colorama-0.3.9-py2.py3-none-any.whl
Collecting simplegeneric>0.8 (from ipython)
Requirement already satisfied: setuptools>=18.5 in c:\temp\test\lib\site-packages (from ipython)
Collecting six (from pathlib2; python_version == "3.3"->ipython)
  Using cached six-1.11.0-py2.py3-none-any.whl
Collecting scandir; python_version < "3.5" (from pathlib2; python_version == "3.3"->ipython)
  Using cached scandir-1.6-cp33-cp33m-win_amd64.whl
Collecting parso==0.1.0 (from jedi>=0.10->ipython)
  Using cached parso-0.1.0-py2.py3-none-any.whl
Collecting ipython-genutils (from traitlets>=4.2->ipython)
  Using cached ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting enum34; python_version == "3.3" (from traitlets>=4.2->ipython)
  Using cached enum34-1.1.6-py3-none-any.whl
Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.4->ipython)
  Using cached wcwidth-0.1.7-py2.py3-none-any.whl
Installing collected packages: win-unicode-console, six, scandir, pathlib2, decorator, parso, jedi, pickleshare, ipython-genutils, enum34, traitlets, typing, wcwidth, prompt-toolkit, pygments, coloram
a, simplegeneric, ipython
Successfully installed colorama-0.3.9 decorator-4.1.2 enum34-1.1.6 ipython-6.2.1 ipython-genutils-0.2.0 jedi-0.11.0 parso-0.1.0 pathlib2-2.3.0 pickleshare-0.7.4 prompt-toolkit-1.0.15 pygments-2.2.0 sc
andir-1.6 simplegeneric-0.8.1 six-1.11.0 traitlets-4.3.2 typing-3.6.2 wcwidth-0.1.7 win-unicode-console-0.5

C:\Temp\test\Scripts>dir /b
activate
activate.bat
activate.ps1
activate_this.py
deactivate.bat
easy_install-3.3.exe
easy_install.exe
iptest.exe
iptest3.exe
ipython.exe
ipython3.exe
pip.exe
pip3.3.exe
pip3.exe
pygmentize.exe
python.exe
pythonw.exe
wheel.exe

C:\Temp\test\Scripts>ipython
Python 3.3.5 (v3.3.5:62cf4e77f785, Mar  9 2014, 10:35:05) [MSC v.1600 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.

Traceback (most recent call last):
  File "c:\temp\test\lib\site-packages\prompt_toolkit\interface.py", line 413, in run
    self._redraw()
  File "c:\temp\test\lib\site-packages\prompt_toolkit\interface.py", line 358, in _redraw
    self.renderer.render(self, self.layout, is_done=self.is_done)
  File "c:\temp\test\lib\site-packages\prompt_toolkit\renderer.py", line 450, in render
    previous_width=(self._last_size.columns if self._last_size else 0))
  File "c:\temp\test\lib\site-packages\prompt_toolkit\renderer.py", line 128, in _output_screen_diff
    output.erase_down()
  File "c:\temp\test\lib\site-packages\prompt_toolkit\terminal\win32_output.py", line 199, in erase_down
    self._erase(start, length)
  File "c:\temp\test\lib\site-packages\prompt_toolkit\terminal\win32_output.py", line 218, in _erase
    sbinfo = self.get_win32_screen_buffer_info()
  File "c:\temp\test\lib\site-packages\prompt_toolkit\terminal\win32_output.py", line 172, in get_win32_screen_buffer_info
    raise NoConsoleScreenBufferError
prompt_toolkit.terminal.win32_output.NoConsoleScreenBufferError: No Windows console found. Are you running cmd.exe?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Python\3.3-64\Lib\runpy.py", line 160, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "D:\Python\3.3-64\Lib\runpy.py", line 73, in _run_code
    exec(code, run_globals)
  File "C:\Temp\test\Scripts\ipython.exe\__main__.py", line 9, in <module>
    sys.exit(start_ipython())
  File "c:\temp\test\lib\site-packages\IPython\__init__.py", line 125, in start_ipython
    return launch_new_instance(argv=argv, **kwargs)
  File "c:\temp\test\lib\site-packages\traitlets\config\application.py", line 658, in launch_instance
    app.start()
  File "c:\temp\test\lib\site-packages\IPython\terminal\ipapp.py", line 356, in start
    self.shell.mainloop()
  File "c:\temp\test\lib\site-packages\IPython\terminal\interactiveshell.py", line 480, in mainloop
    self.interact()
  File "c:\temp\test\lib\site-packages\IPython\terminal\interactiveshell.py", line 463, in interact
    code = self.prompt_for_code()
  File "c:\temp\test\lib\site-packages\IPython\terminal\interactiveshell.py", line 376, in prompt_for_code
    pre_run=self.pre_prompt, reset_current_buffer=True)
  File "c:\temp\test\lib\site-packages\prompt_toolkit\interface.py", line 425, in run
    self._redraw()
  File "c:\temp\test\lib\site-packages\prompt_toolkit\interface.py", line 358, in _redraw
    self.renderer.render(self, self.layout, is_done=self.is_done)
  File "c:\temp\test\lib\site-packages\prompt_toolkit\renderer.py", line 450, in render
    previous_width=(self._last_size.columns if self._last_size else 0))
  File "c:\temp\test\lib\site-packages\prompt_toolkit\renderer.py", line 128, in _output_screen_diff
    output.erase_down()
  File "c:\temp\test\lib\site-packages\prompt_toolkit\terminal\win32_output.py", line 199, in erase_down
    self._erase(start, length)
  File "c:\temp\test\lib\site-packages\prompt_toolkit\terminal\win32_output.py", line 218, in _erase
    sbinfo = self.get_win32_screen_buffer_info()
  File "c:\temp\test\lib\site-packages\prompt_toolkit\terminal\win32_output.py", line 172, in get_win32_screen_buffer_info
    raise NoConsoleScreenBufferError
prompt_toolkit.terminal.win32_output.NoConsoleScreenBufferError: No Windows console found. Are you running cmd.exe?

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@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

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

Of course I’m running cmd.exe - is it illegal now?