Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Python3 #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Python3 #53

wants to merge 2 commits into from

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant