Ability to disable trio entirely, event when installed #919
Unanswered
Object905
asked this question in
Potential Issue
Replies: 1 comment
-
Hmmm... We could switch things around so that So instead of all the backends being available at the top-level of the package, they'd instead be available through individual imports... from httpcore.backends.trio import TrioBackend
from httpcore.backends.anyio import AnyIOBackend
from httpcore.backends.asyncio import AsyncIOBackend ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was facing this issues
python-trio/trio#2848
benoitc/gunicorn#3093
I've worked around them by uninstalling selenium (because of trio dependency)
Like in this comment python-trio/trio#2848 (comment)
But if I install selenium and it installs trio, then httpx/httpcore starts importing it and I get that
module 'select' has no attribute 'epoll'.
error when I import httpx, which imports httpcore, which imports trio, which is incompatible.So, maybe httpcore should have environment variable to explicitly specify that I don't want to use trio ever, even when it's installed.
Beta Was this translation helpful? Give feedback.
All reactions