Importerror: Cannot Import Name 'Get_Terminal_Size' from 'Click. Termui'

Using python lib typer throws an error.

some of the depended stacktrace:

   ...
  import typer
  File "/builds/.../.venv/lib/python3.9/site-packages/typer/__init__.py", line 12, in <module>
  from click.termui import get_terminal_size as get_terminal_size
ImportError: cannot import name 'get_terminal_size' from 'click.termui' (/builds/.../.venv/lib/python3.9/site-packages/click/termui.py)

1 Answer

Ah sry, i had to update to the latest version 0.4.1.

Depended pr:

(Only leave this answer if anyone makes the same mistake.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest