Skip to content

Error: reason='bad parameter: Other TypeError("argument \'data\': from_buffer() cannot return the address of a unicode object")' #44

Description

@di-rse

I'm getting this error when trying to sign files using builder.sign_file in version 0.5.2. It works fine with version 0.5.0.

Error: reason='bad parameter: Other TypeError("argument \'data\': from_buffer() cannot return the address of a unicode object")'

Activity

  1. gpeacock commented on Oct 9, 2024

    @gpeacock
    Member

    Sorry about this. We changed the sign_ps256() function so that the second parameter now takes the key as bytes instead of a file path. So you have to load the bytes first and pass them to it. This made it more flexible for some environments, but we should have at least put in a better error and documented it.

  2. tmathern commented on Oct 23, 2025

    @tmathern
    Collaborator

    This issue is now more than one year old (and the exposed functions/APIs also have changed in the latest versions).
    I'd suggest to try to update to latest SDK if possible (at time of writing v0.27.1). Please let us know if you have additional issues, comments or feedback. Thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions