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
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