Apr-24-2017, 09:42 AM
Hi all
I am trying to use Python asyncio module.
Adding my code snippet below :
import asyncio
async def speak_async():
print('OMG asynchronicity!')
loop = asyncio.get_event_loop()
loop.run_until_complete(speak_async())
loop.close()
Am getting the following error while executing the script : "AttributeError: module 'asyncio' has no attribute 'get_event_loop'".
Am using Python 3.5.
Please share you valuable suggestion to solve the issue.
Regards
Susmitha
I am trying to use Python asyncio module.
Adding my code snippet below :
import asyncio
async def speak_async():
print('OMG asynchronicity!')
loop = asyncio.get_event_loop()
loop.run_until_complete(speak_async())
loop.close()
Am getting the following error while executing the script : "AttributeError: module 'asyncio' has no attribute 'get_event_loop'".
Am using Python 3.5.
Please share you valuable suggestion to solve the issue.
Regards
Susmitha