Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Conversation

@LudovicRousseau
Copy link

@LudovicRousseau LudovicRousseau commented Mar 31, 2021

Fix yubikey-totp on Python3

File "python-yubico/util/yubikey-totp", line 106, in make_totp
    secret = struct.pack("> Q", args.time / args.step).ljust(64, chr(0x0))
struct.error: required argument is not an integer
File "python-yubico/util/yubikey-totp", line 106, in make_totp
    secret = struct.pack("> Q", args.time // args.step).ljust(64, chr(0x0))
TypeError: ljust() argument 2 must be a byte string of length 1, not str
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant