Python3.6 AttributeError: module 'asyncio' has no attribute 'run'
I tried to read https://hackernoon.com/asynchronous-python-45df84b82434 . It's about asynchronous python and I tried the code from this, but I'm getting a weird Error. The code is: ` import asyncio import aiohttp urls = ['http://www.google.com', 'http://www.yandex.ru', 'http://www.python.org'] async def call_url(url): print('Starting {}'.format(url)) response = await aiohttp.ClientSession().get(url) data = await response.text() print('{}: {} bytes: {}'.format(url, len(data), data)) return data futures = [call_url(url) for url in urls] asyncio.run(asyncio.wait(futures)) When I try to run it