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

connection error #43

Open
chengyi-chris opened this issue May 24, 2021 · 0 comments
Open

connection error #43

chengyi-chris opened this issue May 24, 2021 · 0 comments

Comments

@chengyi-chris
Copy link

chengyi-chris commented May 24, 2021

When I run first code

# Create a DataFrame object
from pandasticsearch import DataFrame
df = DataFrame.from_es(url='http://localhost:9200', index='people', username='username', password='username')

# Print the schema(mapping) of the index
df.print_schema()

then print error

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/base64.py in b64encode(s, altchars)
     56     application to e.g. generate url or filesystem safe Base64 strings.
     57     """
---> 58     encoded = binascii.b2a_base64(s, newline=False)
     59     if altchars is not None:
     60         assert len(altchars) == 2, repr(altchars)

TypeError: a bytes-like object is required, not 'str'

Am I enter an error? or how to fix that bugs?

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