Skip to content

ImportError: cannot import name 'RequestsHttpConnection' from 'elasticsearch' #91

Description

@ffMathy

I am getting the following error when I try to use the package:

File "/usr/local/lib/python3.7/site-packages/elasticecslogging/handlers.py", line 14, in
from elasticsearch import Elasticsearch, RequestsHttpConnection
ImportError: cannot import name 'RequestsHttpConnection' from 'elasticsearch' (/usr/local/lib/python3.7/site-packages/elasticsearch/init.py)

Here's my requirements.txt:

ftrack-python-api==2.3.0
ElasticECSHandler==1.0.3
elasticsearch==8.6.2
requests==2.28.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions