You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since get_terminal_size function was removed from click and cruft depends on click = ">= 7.1.2, <9.0.0", the cruft create is failing with:
Traceback (most recent call last):
File "/opt/venv/bin/cruft", line 5, in <module>
from cruft._cli import app
File "/opt/venv/lib/python3.8/site-packages/cruft/__init__.py", line 6, in <module>
from cruft._commands import check, create, diff, link, update
File "/opt/venv/lib/python3.8/site-packages/cruft/_commands/__init__.py", line 2, in <module>
from .check import check
File "/opt/venv/lib/python3.8/site-packages/cruft/_commands/check.py", line 5, in <module>
import typer
File "/opt/venv/lib/python3.8/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' (/opt/venv/lib/python3.8/site-packages/click/termui.py)
As suggested in click's changelog, the get_terminal_size call could be replaced by shutil.get_terminal_size maybe.
The text was updated successfully, but these errors were encountered:
Since
get_terminal_size
function was removed from click and cruft depends onclick = ">= 7.1.2, <9.0.0"
, thecruft create
is failing with:As suggested in click's changelog, the
get_terminal_size
call could be replaced byshutil.get_terminal_size
maybe.The text was updated successfully, but these errors were encountered: