-
Notifications
You must be signed in to change notification settings - Fork 117
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
"It's no longer possible to auto initialise a bitstring from an integer" error #181
Comments
my code is as follows def main():
if name == "main": curtsy of chatgpt4 |
facing same issue :( |
I'm getting hit by this as well now. I thought it was my own inputs to set_zone_colors() but seeing this here is worrying... |
Ok I'm digging in a bit here and it looks like bitstring is another package. Lifxlan is using bitstring.pack() in message.py in order to send information to the light. I would suspect that is where the error lives. |
It might be possible to load an older version of bitstring. It appears as of 4.1.0 this was disallowed. |
I had a similar issue a while back. This is the feedback pedantic79 sent me privately: The problem is that the current version of lifxlan only works with v3 of bitstring, and you have v4 of bitstring. So your options are:
—— #1 worked for me although a longer-term fix would be better. I discovery issues and crashes. |
Nice! I figured that would work. Unfortunately I'm running this in home assistant which appears to be running bitstring 4 so I'll have to find another solution.
|
as the title suggests I keep getting
It's no longer possible to auto initialise a bitstring from an integer. Use 'Bits(0)' instead of just '0' as this makes it clearer that a bitstring of 0 zero bits will be created.
when ever I try to use the library, is there something im doing wrong and how can i fix itThe text was updated successfully, but these errors were encountered: