Thanks for the awesome waapi-client. It makes coding using WAAPI a breeze.
I recently bumped into this issue: when calling a WAAPI script through the subprocess module, the child process will never end.
I've fixed it locally by referring to this post:
https://stackoverflow.com/questions/44633458/why-am-i-getting-notimplementederror-with-async-and-await-on-windows
For py3.7+, we only need a one-liner in client.py:
import platform
class WaapiClient(UnsubscribeHandler):
def __init__(self, url=None, allow_exception=False):
...
# ++++
if platform.system() == 'Windows':
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
# ----
self._loop = asyncio.get_event_loop()
...
Hope this will help you guys fix it in the upstream soon.