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

Unexpected exception importing component homeassistant.components.lifx #116076

Closed
Kertz1954 opened this issue Apr 24, 2024 · 5 comments
Closed

Unexpected exception importing component homeassistant.components.lifx #116076

Kertz1954 opened this issue Apr 24, 2024 · 5 comments

Comments

@Kertz1954
Copy link

Kertz1954 commented Apr 24, 2024

The problem

Problem occurs after upgrading from 2024.4.3 to 2024.4.4

What version of Home Assistant Core has the issue?

core-2024.4.4

What was the last working version of Home Assistant Core?

core-2024.4.3

What type of installation are you running?

Home Assistant Core on RPI4

Integration causing the issue

LIFX

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.loader
Source: loader.py:1037
First occurred: 06:10:12 (2 occurrences)
Last logged: 06:10:12

Unexpected exception importing component homeassistant.components.lifx
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1037, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/lifx/__init__.py", line 11, in <module>
    from aiolifx.aiolifx import Light
  File "/usr/local/lib/python3.12/site-packages/aiolifx/__init__.py", line 1, in <module>
    from .aiolifx import LifxDiscovery, LifxScan
  File "/usr/local/lib/python3.12/site-packages/aiolifx/aiolifx.py", line 29, in <module>
    from .msgtypes import *
  File "/usr/local/lib/python3.12/site-packages/aiolifx/msgtypes.py", line 11, in <module>
    import bitstring
  File "/usr/local/lib/python3.12/site-packages/bitstring/__init__.py", line 197, in <module>
    DtypeDefinition('uintle', Bits._setuintle, Bits._getuintle, int, False, uint_bits2chars,
  File "/usr/local/lib/python3.12/site-packages/bitstring/dtypes.py", line 275, in __init__
    if self.allowed_lengths:
       ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/bitstring/dtypes.py", line 244, in __len__
    return len(self.value)
           ^^^^^^^^^^^^^^^
OverflowError: Python int too large to convert to C ssize_t

Additional information

No response

@ELY3M
Copy link

ELY3M commented Apr 24, 2024

I am having same issue too.

Logger: homeassistant.loader
Source: loader.py:1232
First occurred: 12:05:53 AM (4 occurrences)
Last logged: 12:06:40 AM

Unexpected exception importing platform homeassistant.components.lifx.config_flow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1232, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1264, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/lifx/init.py", line 11, in
from aiolifx.aiolifx import Light
File "/usr/local/lib/python3.12/site-packages/aiolifx/init.py", line 1, in
from .aiolifx import LifxDiscovery, LifxScan
File "/usr/local/lib/python3.12/site-packages/aiolifx/aiolifx.py", line 29, in
from .msgtypes import *
File "/usr/local/lib/python3.12/site-packages/aiolifx/msgtypes.py", line 11, in
import bitstring
File "/usr/local/lib/python3.12/site-packages/bitstring/init.py", line 197, in
DtypeDefinition('uintle', Bits._setuintle, Bits._getuintle, int, False, uint_bits2chars,
File "/usr/local/lib/python3.12/site-packages/bitstring/dtypes.py", line 275, in init
if self.allowed_lengths:
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/bitstring/dtypes.py", line 244, in len
return len(self.value)
^^^^^^^^^^^^^^^
OverflowError: Python int too large to convert to C ssize_t

@home-assistant
Copy link

@ELY3M
Copy link

ELY3M commented Apr 24, 2024

for now, I have to restore from my full backup. I am back to 2024.4.3 and lifx is working.

@bdraco
Copy link
Member

bdraco commented Apr 24, 2024

@bdraco
Copy link
Member

bdraco commented Apr 24, 2024

Tracking this in #116079

@bdraco bdraco closed this as not planned Won't fix, can't repro, duplicate, stale Apr 24, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants