Skip to content

HTTPX and Celery \ GEvent Issue  #3218

@pg1671

Description

@pg1671

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: celery/celery#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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions