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

multizone - line 43 #54

Closed
ceboxsell opened this issue Jun 20, 2017 · 5 comments
Closed

multizone - line 43 #54

ceboxsell opened this issue Jun 20, 2017 · 5 comments

Comments

@ceboxsell
Copy link

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.

@mclarkk
Copy link
Owner

mclarkk commented Jun 23, 2017

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.

@mclarkk mclarkk closed this as completed Jun 23, 2017
@ceboxsell
Copy link
Author

ceboxsell commented Jun 23, 2017 via email

@mclarkk
Copy link
Owner

mclarkk commented Jun 24, 2017

Could you give me information about what program you were running? I don't have enough information here to troubleshoot.

@mclarkk
Copy link
Owner

mclarkk commented Jun 24, 2017

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!

@mclarkk
Copy link
Owner

mclarkk commented Jun 24, 2017

All fixed! If you installed lifxlan from source, you can pull from the repo and re-run sudo python setup.py install, and if you installed from pip, I pushed a new version there so you can update it that way too! Thanks for letting me know about this issue!

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