Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MarkVanAcker opened this issue Apr 4, 2022 · 0 comments

Comments

@MarkVanAcker
Copy link

MarkVanAcker commented Apr 4, 2022

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant