a-Shell-commands icon indicating copy to clipboard operation
a-Shell-commands copied to clipboard

Click.getchar() throws a generator error

Open BandungBB opened this issue 3 years ago • 0 comments

After importing the click library, I found that I can not use the following click command.

click.getchar()

This is the trace error that is generated.

Traceback (most recent call last): File "", line 1, in File "/private/var/containers/Bundle/Application/DA63F4F7-4834-458A-9E07-40C97EFAE072/a-Shell.app/Library/lib/python3.9/site-p ackages/click/termui.py", line 767, in getchar return _getchar(echo) File "/private/var/containers/Bundle/Application/DA63F4F7-4834-458A-9E07-40C97EFAE072/a-Shell.app/Library/lib/python3.9/site-p ackages/click/_termui_impl.py", line 710, in getchar with raw_terminal() as fd: File "/private/var/containers/Bundle/Application/DA63F4F7-4834-458A-9E07-40C97EFAE072/a-Shell.app/Library/lib/python3.9/contex tlib.py", line 119, in enter raise RuntimeError("generator didn't yield") from None

BandungBB avatar Sep 06 '21 09:09 BandungBB