httpx
httpx copied to clipboard
HTTPX and Celery \ GEvent Issue
trafficstars
I have a gevent based celery worker that will not start if httpx is installed. My code does not use HTTPX, it was installed as a dependancy of openai.
If I pip uninstall httpx my worker runs again.
I am using Python 3.11 and the latest celery.
I also posted the issue here: https://github.com/celery/celery/issues/9032
The main issue is I can't find any indication of the conflict as the celery worker just dies with nothing in the logs or system journal.
I am assuming some other package is dynamically using httpx when it is available but leads to an issue under gevent.
Is there a way to debug the package loading process to see what is trying to use httpx?