-
Notifications
You must be signed in to change notification settings - Fork 802
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
cannot import name 'ApiError' from 'elasticsearch.exceptions' #1854
Comments
Name: elasticsearch |
Hello @Woiea, and thanks for your report. We're going to need more information to help you.
|
I'm trying to run my code to access the elasticksearch database, and haven't used the code yet. Just import the libraries.
RequestsHttpConnection doesn't cause any error until now. python -m pip freeze:
|
The elasticsearch-py package in >>> from elasticsearch import Elasticsearch, RequestsHttpConnection
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'RequestsHttpConnection' from 'elasticsearch' (/home/q/src/elasticsearch-py/elasticsearch/__init__.py)
>>> from elasticsearch.exceptions import ApiError
>>> To confirm this, you should add the following code at the top in import elasticsearch
print(elasticsearch.__versionstr__) |
The text was updated successfully, but these errors were encountered: