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

TypeError: %x format: an integer is required, not float #123

Open
lukasm91 opened this issue Mar 11, 2017 · 1 comment
Open

TypeError: %x format: an integer is required, not float #123

lukasm91 opened this issue Mar 11, 2017 · 1 comment

Comments

@lukasm91
Copy link

I cannot compile the library due to the error above.

Seems like the variable k in scripts/ud_opcode, in the function pprint may be a float.

I can resolve the issue by replacing
self.log("%s |-<%02x> %s" % (indent, k, e))
with
self.log("%s |-<%02x> %s" % (indent, int(k), e))

@SBasalaev
Copy link
Contributor

Duplicate of #120

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

No branches or pull requests

2 participants