-
Notifications
You must be signed in to change notification settings - Fork 17
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
encode_scaled return type error in python 3.x #12
Comments
Yes. And it won't break it on Python 2. |
anarcat
added a commit
to anarcat/pyqrencode
that referenced
this issue
Mar 3, 2023
encoded_scaled apparently fails with: ``` TypeError: integer argument expected, got float ``` in Python 3, and this patch *apparently* fixes that problem. Fixes: Arachnid#12
can you confirm #15 fixes this problem? |
Don't you want to change / to // in line 82 also? |
On my system, I replaced / with // in both places, and have not yet had a problem. |
anarcat
added a commit
to anarcat/pyqrencode
that referenced
this issue
Mar 3, 2023
encoded_scaled apparently fails with: ``` TypeError: integer argument expected, got float ``` in Python 3, and this patch *apparently* fixes that problem. Fixes: Arachnid#12
honestly? i don't know! :) i just made a patch based on your description, i haven't had the issue myself... i've rerolled it with an extra // |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TypeError: integer argument expected, got float
in encode_scaled, / should be // to get interger result from a division
The text was updated successfully, but these errors were encountered: