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

fix: AttributeError: 'bytes' object has no attribute 'encode'(PY3) #652

Merged
merged 1 commit into from
Oct 9, 2017
Merged

fix: AttributeError: 'bytes' object has no attribute 'encode'(PY3) #652

merged 1 commit into from
Oct 9, 2017

Conversation

brunobell
Copy link
Contributor

@brunobell brunobell commented Sep 28, 2017

Hi, I had this error in python3.6.2 while using elasticsearch as backend of celery. So I tracked down the error message and come to a simple fix for this. It's working now in my local python3.6.2 virtualenv, and I guess this should work for all. I'd like to hear your comments :)

@fxdgear
Copy link
Contributor

fxdgear commented Oct 4, 2017

Can you please rebase off master and try again. I had to upgrade the version of ES Travis uses.

@brunobell
Copy link
Contributor Author

brunobell commented Oct 9, 2017

@fxdgear Hi, I've done rebase and passed local tests with python version 2.7.14 and 3.6.2. Glad to know if you'd like to merge this.

@fxdgear fxdgear merged commit a3a52af into elastic:master Oct 9, 2017
rciorba added a commit to rciorba/elasticsearch-py that referenced this pull request Mar 2, 2018
fix: AttributeError: 'bytes' object has no attribute 'encode'(PY3)
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

Successfully merging this pull request may close these issues.

2 participants