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

Support Python3 #10

Open
frakman1 opened this issue Nov 12, 2017 · 2 comments
Open

Support Python3 #10

frakman1 opened this issue Nov 12, 2017 · 2 comments

Comments

@frakman1
Copy link

Any plans to support Python 3?

@frakman1
Copy link
Author

frakman1 commented Feb 2, 2018

When I try to run this in Python 3, I get this error:

 lazylights.set_power(bulbs, True)
  File "C:\lazylights.py", line 166, in set_power    '\xff\xff' if is_on else '\x00\x00')
  File "C:\lazylights.py", line 156, in _send    packet_fmt, *packet_args)
  File "C:\lazylights.py", line 98, in build_packet    *payload_args)
struct.error: argument for 's' must be a bytes object

Any idea how to get around this?

Thanks.

@frakman1
Copy link
Author

Update:
It's a simple change to get this to work. I opened a pull-request for it here:

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

1 participant