Skip to content

AttributeError: 'bytes' object has no attribute 'translate' #761

@magixyu

Description

@magixyu

When use the below code, the error apears:
base64.b32decode(activation_code, True, "I")

Traceback (most recent call last):
File "", line 1, in
File "onepass.py", line 90, in get_next_code
File "onepass.py", line 57, in _get_entropy
File "base64.py", line 269, in b32decode
AttributeError: 'bytes' object has no attribute 'translate'

it looks that the base64 module in micropython-lib is not compatible. Please help to take a look of this issue.

Thanks,
Tristan

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