-
-
Notifications
You must be signed in to change notification settings - Fork 713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'asyncio' has no attribute 'get_running_loop' #3381
Comments
Thanks for the report. Seems that That line is only executed in jupyter notebook / lab, which explains why it doesn't happen in the python interpreter (and why our CI didn't catch it, I think). xref #3336. @potpath do you know of a way to do that check that's compatible with Python 3.6? |
I'll plan to push out a 2.9.3 release of |
Yeah, I've been using this compat in other projects: import sys
if sys.version_info[:2] >= (3, 7):
from asyncio import get_running_loop
else:
from asyncio import _get_running_loop as get_running_loop |
Great, I'll open a PR adding that |
In Jupyter Lab, If I run:
import distributed
causes
AttributeError: module 'asyncio' has no attribute 'get_running_loop'
error.My Environment:
Strangely, command line python interpreter does not raise the error.
distributed 2.9.1 worked fine.
The text was updated successfully, but these errors were encountered: