-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
nest_asyncio causes failure to find empty port #8730
Comments
This error happens in Spaces, on a local setup I get |
Thanks @aymeric-roucher btw why do you need |
I used it to run parallel API calls @abidlabs . If there's a recommended alternative for parallel API calls I'd be glad to use it! |
Thanks for the clarification, @aymeric-roucher! To avoid conflicts with Gradio's event loop, you could consider using the |
But I also have another idea to fix this, let me try something |
Ok sadly my fix does not work. Basically what's happening is that
This means that our use of asyncio is affected. We could try to patch the patch but that seems like a bad idea 😅 So my suggestion is that basically you should avoid using this library. Unless you are running in a jupyter notebook or some other weird environment where you always have an event loop running, you shouldn't need it. I'll close this issue but happy to debug with you in this thread or privately. |
THank you @abidlabs for looking into this! It's strange to think it was working before but does not anymore, that's why I thought it could be solved. I will try remaking my space to avoid using the library altogether! |
Describe the bug
Creates error:
The error happens with
4.29.0
,4.33.0
, and4.37.2
.Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: