Fitblip/wsstat

module 'asyncio' has no attribute 'ensure_future'

Opened this issue · 0 comments

When testing on Python 3.6.5, I get the following error :

17:08 $ wsstat -n 10 -c 5 http://localhost:9000/
Traceback (most recent call last):
File "/usr/local/bin/wsstat", line 11, in
sys.exit(wsstat_console())
File "/usr/local/lib/python3.6/site-packages/wsstat/main.py", line 68, in wsstat_console
client = WebsocketTestingClient(**vars(args))
File "/usr/local/lib/python3.6/site-packages/wsstat/clients.py", line 87, in init
self.setup_tasks()
File "/usr/local/lib/python3.6/site-packages/wsstat/clients.py", line 237, in setup_tasks
tasks.append(asyncio.ensure_future(coro))
AttributeError: module 'asyncio' has no attribute 'ensure_future'

Is wsstat tested on that Python version ?!
Thx !