Skip to content

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

Open

Description

@eduardoroliveira

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions