Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'get_terminal_size' from 'click.termui' #525

Closed
paw-lu opened this issue Mar 29, 2022 · 2 comments · Fixed by #526
Closed

ImportError: cannot import name 'get_terminal_size' from 'click.termui' #525

paw-lu opened this issue Mar 29, 2022 · 2 comments · Fixed by #526
Labels
bug Something isn't working

Comments

@paw-lu
Copy link
Owner

paw-lu commented Mar 29, 2022

What happened?

ImportError: cannot import name 'get_terminal_size' from 'click.termui' when trying to use Typer. See tiangolo/typer#375. This issue arises on Click 8.1.0.

Need to pin Click right now <8.1.0 to solve, then later update Typer when fix is merged.

nbpreview version

0.8.1

Output

No response

Notebook

No response

OS

No response

Terminal

No response

Python version

No response

@paw-lu paw-lu added the bug Something isn't working label Mar 29, 2022
@tiangolo
Copy link

Hello! I just released Typer 0.4.1 that should handle this. 🚀 🤓

@paw-lu
Copy link
Owner Author

paw-lu commented Mar 30, 2022

Thanks a bunch for the heads up @tiangolo, and thanks for Typer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants