[Python-modules-team] Bug#865359: python-backports-shutil-get-terminal-size: ipython invocation of module shutil_get_terminal_size broken

Rory Campbell-Lange rory at campbell-lange.net
Tue Jun 20 16:41:28 UTC 2017


Package: python-backports-shutil-get-terminal-size
Version: 1.0.0-3
Severity: important

Dear Maintainer,

After the stretch update, ipython breaks when trying the following:

    from backports.shutil_get_terminal_size import get_terminal_size

I removed ipython and related packages from my system, made sure I
didn't have a conflicting pip installation, reinstalled ipython and the
error below still occurs.

rt450:/home/rory# dpkg  -P ipython python-backports-shutil-get-terminal-size python-ipython python-ipdb python-ipython
Package python-ipython listed more than once, only processing once.
dpkg: warning: ignoring request to remove ipython which isn't installed
dpkg: warning: ignoring request to remove python-backports-shutil-get-terminal-size which isn't installed
dpkg: warning: ignoring request to remove python-ipython which isn't installed
dpkg: warning: ignoring request to remove python-ipdb which isn't installed

rt450:/home/rory# pip uninstall backports.shutil_get_terminal_size
Cannot uninstall requirement backports.shutil-get-terminal-size, not installed

rt450:/home/rory# pip uninstall shutil_get_terminal_size
Cannot uninstall requirement shutil-get-terminal-size, not installed

rt450:/home/rory# apt-get install ipython python-ipdb

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

The package version of python-backports-shutil-get-terminal-size 1.0.0-3 on
this system is 1.0.0-3.

The problem is resolved on my machine by installing
backports-shutil-get-terminal-size from pip.

	rt450: /home/rory# pip list | grep backp
	backports.shutil-get-terminal-size (1.0.0)

It appears that the Debian package of backports.shutil-get-terminal-size is
broken.

Regards
Rory

-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (700, 'stable'), (500, 'testing'), (200, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information



More information about the Python-modules-team mailing list