Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Bug Report 2019.1.1: WAAPI Python Client blocks subprocess calls on Windows

0 votes

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.

asked Jun 5 in General Discussion by Beinan Li 李北南 (160 points)

Please sign-in or register to answer this question.

...