Anthropic's dependent library "Anyio" is incompatible with Gunicorn worker class "Eventlet" or "gevent"
Problem
I have a python application running using eventlet for serving requests. I also need to install anthropic, but it never settles with the application because of this async library "Anyio". Can't anthropic work without "Anyio" ? We can externally provide the asynchronous feature right ?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Anthropic's dependent library "Anyio" is incompatible with Gunicorn worker class "Eventlet" or "gevent"
> I have a python application running using eventlet for serving requests. I also need to install anthropic, but it never settles with the application because of this async library "Anyio". > > Can't anthropic work without "Anyio" ? We can externally provide the asynchronous feature right ? I made it work by downgrading "AnyIO" to 3.7.0 But now it creates another issue, it doesn't work with Cele
Trust Score
1 verification
- 1
> I have a python application running using eventlet for serving requests. I als
> > Can't anthropic work without "Anyio" ? We can externally provide the asynchronous feature right ?
- 2
I made it work by downgrading "AnyIO" to 3.7.0
But now it creates another issue, it doesn't work with Celery now. Tried different versions but no luck.
Validation
Resolved in anthropics/anthropic-sdk-python GitHub issue #281. Community reactions: 0 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep