-
Notifications
You must be signed in to change notification settings - Fork 140
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
Run_sync (v3) raises AsyncLibraryNotFoundError
for python3.6
#286
Comments
Thanks, the repro script should speed up the investigation a lot! |
For some reason, I cannot reproduce this in the test suite, even if I run the exact same code without any fixtures, and only that test. |
I have an elegant fix for this but without a working regression test I'm hesitant to commit it. |
@agronholm Thanks so much for the quick fix! In your PR, I see a test that checks for any exceptions in |
Yes, the test fails without the fix. |
Problem
The
AsyncLibraryNotFoundError
is getting raised for running a synchronous function in a worker thread in py3.6.For more context, Jupyter Server #505
How to reproduce
Python version:
Python 3.6.13 :: Anaconda, Inc.
Confirm
AsyncLibraryNotFoundError
isn't raised foranyio==2.2.0
.AsyncLibraryNotFoundError
shows up foranyio==3.0.1
in python3.6. I ran this in python3.7, and the error didn't show up.The
test_run_sync.py
script: https://gist.github.com/mwakaba2/e76b0bc341bf17c97ff58cd4c672e4d4The text was updated successfully, but these errors were encountered: