holzschu / a-Shell-commands

shell commands, pre-compiled to webAssembly, ready to use in a-Shell
554 stars 21 forks source link

Click.getchar() throws a generator error #15

Open BandungBB opened 2 years ago

BandungBB commented 2 years ago

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