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

edl21 Integration breaks with 2024.4.4 on 32bit systems #116369

Closed
deluxestyle opened this issue Apr 29, 2024 · 7 comments
Closed

edl21 Integration breaks with 2024.4.4 on 32bit systems #116369

deluxestyle opened this issue Apr 29, 2024 · 7 comments

Comments

@deluxestyle
Copy link

The problem

the edl21 integration breaks with the update to 2024.4.4 with following error message

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 "<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/edl21/sensor.py", line 9, in <module> from sml import SmlGetListResponse File "/usr/local/lib/python3.12/site-packages/sml/__init__.py", line 32, 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

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 Container

Integration causing the issue

edl21

Link to integration documentation on our website

https://www.home-assistant.io/integrations/edl21/

Diagnostics information

not available

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.loader
Quelle: loader.py:1232
Erstmals aufgetreten: 10:16:33 (2 Vorkommnisse)
Zuletzt protokolliert: 10:16:34

Unexpected exception importing platform homeassistant.components.edl21.sensor
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 "<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/edl21/sensor.py", line 9, in <module>
    from sml import SmlGetListResponse
  File "/usr/local/lib/python3.12/site-packages/sml/__init__.py", line 32, 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


Logger: homeassistant.config_entries
Quelle: config_entries.py:551
Erstmals aufgetreten: 10:16:34 (1 Vorkommnisse)
Zuletzt protokolliert: 10:16:34

Error setting up entry Smart Meter for edl21
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 "<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/edl21/sensor.py", line 9, in <module>
    from sml import SmlGetListResponse
  File "/usr/local/lib/python3.12/site-packages/sml/__init__.py", line 32, 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

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/edl21/__init__.py", line 12, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1860, in async_forward_entry_setups
    await integration.async_get_platforms(platforms)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1145, in async_get_platforms
    import_future.result()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1133, in async_get_platforms
    platforms.update(self._load_platforms(platform_names))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1060, in _load_platforms
    platform_name: self._load_platform(platform_name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1252, in _load_platform
    raise ImportError(
ImportError: Exception importing homeassistant.components.edl21.sensor

Additional information

No response

@home-assistant
Copy link

@bdraco
Copy link
Member

bdraco commented Apr 29, 2024

Same issue as #116079

@bdraco
Copy link
Member

bdraco commented Apr 29, 2024

#116079 (comment)

@bdraco
Copy link
Member

bdraco commented Apr 29, 2024

@bdraco bdraco changed the title edl21 Integration breaks with 2024.4.4 edl21 Integration breaks with 2024.4.4 on 32bit systems Apr 29, 2024
@bluepuma77
Copy link

@deluxestyle Is this still happening with 2024.5.0? It should be fixed.

@deluxestyle
Copy link
Author

Did not had the time to update. As soon I can do it, I will update here

@deluxestyle
Copy link
Author

I can confirm that it is working with 2024.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants