Great, that workaround does sort it out in the meantime. Thank you for reporting the bug for me :)
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Latest posts made by jeremyherbert
-
RE: Asyncio doesn't work in pythonista 3
-
Asyncio doesn't work in pythonista 3
Hi,
I've just purchased pythonista 3 and I'm trying to run the following code straight from the docs:
import asyncio async def hello_world(): print("Hello World!") loop = asyncio.get_event_loop() # Blocking call which returns when the hello_world() coroutine is done loop.run_until_complete(hello_world()) loop.close()
I get the error: RuntimeError: There is no current event loop in thread 'Dummy-1'.
Am I doing something wrong?
Thanks,
Jeremy