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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like