-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Use of RecursionError breaks compatibility with Python 2.7 and 3.4 #1619
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
Comments
Thanks for opening this. I'm kind of surprised this made it through considering we have unit tests and integration tests both using Python 2.7 and 3.4 and it doesn't look like any of them are failing with this, doing a dive into this to see why that's happening. Until then you can downgrade to |
I've yanked the v7.13.2 release due to this issue, until the next patch release is out I recommend using v7.13.1. |
Thanks for looking into this. I guess this hasn't shown up in the tests because the specific error is not triggered. As far as I understand, the The error is actually easy to trigger by trying to talk to a non-existent server: from elasticsearch.client import Elasticsearch
client = Elasticsearch("http://localhost:9", max_retries=0) # nothing listens on this port
client.indices.stats("_all") |
@MarcSchmitzer Yeah, thanks for doing this analysis. The I'm remedying this gap in our test suite in the fix as well. |
Closed in #1609 |
elasticsearch-py
version: 7.13.2Description of the problem including expected versus actual behavior:
In commit cfdfd51, use of the
RecursionError
class was introduced. This class was added in Python 3.5, though.This causes errors as this under Python 2.7:
According to #1295 and
setup.py
, Python 2.7 and 3.4 should still be supported, though.The text was updated successfully, but these errors were encountered: