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

Tore Ferner torfer at pvv.org
Sat May 5 22:13:00 BST 2018


Tore Ferner:
> Hello,
> 
> I can confirm that the package python-backports-shutil-get-terminal-size
> breaks ipython in stretch with a traceback as described in initial bug
> report. It also breaks the sagemath package (the CLI sage command) for
> the same reason.
> 
> I quick-fixed it thusly (diff -u):

Hello again,

It turned out I had one pip-installed package, "configparser", that
installed itself in a sub-folder "backports" in a way that shadowed
debian's shutil-backport which also is in a "backports" folder.

I guess a better solution is either

(A) to pip-uninstall configparser:

   $ pip uninstall configparser

or (B) also to install the "shutil_get_terminal_size" with pip if you
have pip-installed "configparser" and want/need to keep it:

   $ pip install backports.shutil-get-terminal-size

With either (A) or (B) both ipython and sage start without a traceback
(in stretch).


Best regards,
Tore



More information about the Python-modules-team mailing list