Closed mrocklin closed 4 years ago
Running python 3.8.5 and coiled 0.18
This works
diff --git a/python-api/coiled/cli/install.py b/python-api/coiled/cli/install.py
index 98f3621..4f3748e 100644
--- a/python-api/coiled/cli/install.py
+++ b/python-api/coiled/cli/install.py
@@ -68,7 +68,10 @@ def install(coiled_uri: str):
f'Invalid coiled_uri, should be in the format of "<account>/<env_name>" but got "{coiled_uri}"'
)
- asyncio.get_event_loop().run_until_complete(main(account, name))
+ loop = asyncio.ProactorEventLoop()
+ asyncio.set_event_loop(loop)
+
+ loop.run_until_complete(main(account, name))
But I'm not yet sure why this isn't happening by default.
Thanks for digging into this @mrocklin!
But I'm not yet sure why this isn't happening by default
Yeah, that's strange. From https://docs.python.org/3/library/asyncio-platforms.html#windows: "Changed in version 3.8: On Windows, ProactorEventLoop is now the default event loop."
It is. When I type in get_event_loop()
it gives me a ProactorEventLoop
, so I'm surprised that this occurred. I'll dig in.
Closing as this has been resolved upstream