Skip to content

ImportError with elasticsearch 8.x #8

Description

@AlexMisiulia

Thank you for the library!

After the last elasticsearch update I have problems. The library versions are:

CMRESHandler2==2.0.8
  - elasticsearch [required: Any, installed: 8.0.0]
    - elastic-transport [required: >=8,<9, installed: 8.0.1]
      - certifi [required: Any, installed: 2021.10.8]
      - urllib3 [required: >=1.26.2,<2, installed: 1.26.8]
  - requests [required: Any, installed: 2.27.1]
    - certifi [required: >=2017.4.17, installed: 2021.10.8]
    - charset-normalizer [required: ~=2.0.0, installed: 2.0.12]
    - idna [required: >=2.5,<4, installed: 3.3]
    - urllib3 [required: >=1.21.1,<1.27, installed: 1.26.8]

The error is:

cmreslogging/handlers.py", line 10, in <module>
    from elasticsearch import Elasticsearch, RequestsHttpConnection
ImportError: cannot import name 'RequestsHttpConnection' from 'elasticsearch' (/home/user/sample/.venv/lib/python3.10/site-packages/elasticsearch/__init__.py)

Do you have any plans to fix it? Thanks!

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