Skip to content

Python elasticsearch module version 8.x doesn't support RequestsHttpConnection class #58

@MarkVanAcker

Description

@MarkVanAcker

Currently there is no version specified in the requirements.txt for the module elasticsearch. By default this installs the latest version which currently does not work with the project as Transport classes are deprecated starting from version 8.0.

When trying to run the project, the following message prints: https://github.com/austin-taylor/flare/blob/master/flare/analytics/command_control.py#L16.

Possible solutions:

  • modify the requirements.txt and specify version 7.17.2 which is the last version that supports custom Transport classes.
  • Use the latest version and get rid of RequestsHttpConnection as, correct me if I'm wrong, the script doesn't use any features from the requests library. If request features are used, the new RequestsHttpNode can be used instead.

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