Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
di-rse opened this issue Oct 2, 2024 · 1 comment

Comments

@di-rse
Copy link

di-rse commented Oct 2, 2024

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")'

@gpeacock
Copy link
Contributor

gpeacock commented Oct 9, 2024

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants