-
Notifications
You must be signed in to change notification settings - Fork 5
Description
I've tried to run the example as in the description. I'm using Python 3.7 and got error as below. I've googled a bit and it seems like event loop policy issue but I am not 100% sure.
(venv) C:\PycharmProjects\asyncio-example>python agent.py "sleep 3" http://localhost:5000
params: ['sleep', '3']
Traceback (most recent call last):
File "agent.py", line 86, in
cli()
File "agent.py", line 82, in cli
asyncio.run(main(command_parts, args.tracking_url, args.heartbeat_period))
File "C:\Program Files\Python37\lib\asyncio\runners.py", line 43, in run
return loop.run_until_complete(main)
File "C:\Program Files\Python37\lib\asyncio\base_events.py", line 568, in run_until_complete
return future.result()
File "agent.py", line 55, in main
final_status = await run(command)
File "agent.py", line 18, in run
process = await asyncio.create_subprocess_exec(*command)
File "C:\Program Files\Python37\lib\asyncio\subprocess.py", line 217, in create_subprocess_exec
stderr=stderr, **kwds)
File "C:\Program Files\Python37\lib\asyncio\base_events.py", line 1516, in subprocess_exec
bufsize, **kwargs)
File "C:\Program Files\Python37\lib\asyncio\base_events.py", line 444, in _make_subprocess_transport
raise NotImplementedError
NotImplementedError