elastic / elasticsearch-py

Official Python client for Elasticsearch
https://ela.st/es-python
Apache License 2.0
4.17k stars 1.17k forks source link

py>=3.10 client>7.10.0 can not run #2582

Closed 1753936488 closed 1 month ago

1753936488 commented 1 month ago

Describe the feature:

Elasticsearch version (bin/elasticsearch --version):

elasticsearch-py version (elasticsearch.__versionstr__):

Please make sure the major version matches the Elasticsearch server you are running.

Description of the problem including expected versus actual behavior:

Steps to reproduce:

Because of this code, I was unable to run clients above version 7.10.0 in an environment above python3.10.

try:
    from collections.abc import Mapping
except ImportError:
    from collections import Mapping

how to resove it?

pquentin commented 1 month ago

This was fixed in elasticsearch-py 7.12.0. Those versions are no longer supported, though. You should upgrade at least to 7.17 and preferably to 8.x. Thanks.