[Python-modules-team] Bug#843898: [ipython] IPython 2 launch fails with "No module named shutil_get_terminal_size"

Erbureth Erbureth at seznam.cz
Thu Nov 10 14:13:27 UTC 2016

Package: ipython
Version: 5.1.0-2
Severity: grave

--- Please enter the report below this line. ---
Dear Maintainer,

launching `ipython` ends with following traceback:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/IPython/__init__.py", line 48, in <module>
    from .core.application import Application
  File "/usr/lib/python2.7/dist-packages/IPython/core/application.py", line 25, in <module>
    from IPython.core import release, crashhandler
  File "/usr/lib/python2.7/dist-packages/IPython/core/crashhandler.py", line 28, in <module>
    from IPython.core import ultratb
  File "/usr/lib/python2.7/dist-packages/IPython/core/ultratb.py", line 128, in <module>
    from IPython.utils.terminal import get_terminal_size
  File "/usr/lib/python2.7/dist-packages/IPython/utils/terminal.py", line 22, in <module>
    from backports.shutil_get_terminal_size import get_terminal_size as _get_terminal_size                                                                                                                                                   
ImportError: No module named shutil_get_terminal_size

ipython3 works fine.


Jan Kriho

--- System information. ---
Architecture: amd64
Kernel:       Linux 4.7.0-1-amd64

Debian Release: stretch/sid
  950 testing         ftp.cz.debian.org 
  900 unstable        ftp.cz.debian.org 
  850 experimental    ftp.cz.debian.org 
  800 stable          security.debian.org 
  800 stable          ftp.cz.debian.org 
  800 stable          dl.google.com 
  500 stable-updates  ftp.cz.debian.org 

--- Package information. ---
Depends              (Version) | Installed
python-ipython     (= 5.1.0-2) | 5.1.0-2

Package's Recommends field is empty.

Package's Suggests field is empty.

More information about the Python-modules-team mailing list