-
Notifications
You must be signed in to change notification settings - Fork 116
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
multizone - line 43 #54
Comments
Looks like you are using floats instead of ints to specify the start/end indices when calling get_color_zones(). Indices can only be integers. |
No, I am using your examples and know little about Python but was trying to keep it short but found a problem.
From: ML Clark [mailto:notifications@github.com]
Sent: Saturday, 24 June 2017 2:51 AM
To: mclarkk/lifxlan <lifxlan@noreply.github.com>
Cc: Chris Boxsell <chris@boxsell.net>; Author <author@noreply.github.com>
Subject: Re: [mclarkk/lifxlan] multizone - line 43 (#54)
Looks like you are using floats instead of ints to specify the start/end indices.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#54 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AJqqFJazG6KSGqGmd4a5Nn5z5wvzS3AEks5sG-0LgaJpZM4N_hmE> . <https://github.com/notifications/beacon/AJqqFCj9cbcaTROJJNDe5olmUGtkN8WXks5sG-0LgaJpZM4N_hmE.gif>
|
Could you give me information about what program you were running? I don't have enough information here to troubleshoot. |
I see that all the multizone example programs have this error when run with Python3. In the future, there is no need to keep a bug report short. In general, the more information you provide the better! |
All fixed! If you installed |
The Multizone code responds with
for i in range(((upper_8_aligned - lower_8_aligned) / 8) + 1):
TypeError: 'float' object cannot be interpreted as an integer
Needs int division operator so for i in range(((upper_8_aligned - lower_8_aligned) // 8) + 1): works.
The text was updated successfully, but these errors were encountered: