Skip to content

module 'asyncio' has no attribute 'ensure_future' #10

Description

@jcdevil

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 !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions