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

AttributeError: 'bytes' object has no attribute 'encode' #9

Open
eduardoroliveira opened this issue Dec 6, 2019 · 0 comments
Open

Comments

@eduardoroliveira
Copy link

I see this error while running a project using python3.7:

File "/usr/local/lib/python3.7/site-packages/fdb/fbcore.py", line 845, in connect
no_reserve, db_key_scope, no_gc, no_db_triggers, no_linger)
File "/usr/local/lib/python3.7/site-packages/fdb/fbcore.py", line 773, in build_dpb
dpb.add_string_parameter(isc_dpb_user_name, user)
File "/usr/local/lib/python3.7/site-packages/fdb/fbcore.py", line 633, in add_string_parameter
value = value.encode(charset_map.get(self.charset, self.charset))
AttributeError: 'bytes' object has no attribute 'encode'

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