core icon indicating copy to clipboard operation
core copied to clipboard

After updating to 2024.10.3 (Yale) integrations stopped working

Open AbadiMac opened this issue 1 year ago • 2 comments

The problem

Hello,

I just updated from 2024.10.2 to 2024.10.3 and Yale integration showing not loaded!

What version of Home Assistant Core has the issue?

core-2024.10.3

What was the last working version of Home Assistant Core?

core-2024.10.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Yale

Link to integration documentation on our website

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

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:1067
First occurred: 11:10:17 PM (2 occurrences)
Last logged: 11:10:17 PM

Unexpected exception importing component homeassistant.components.yale
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1067, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  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/yale/__init__.py", line 22, in <module>
    from .data import YaleData
  File "/usr/src/homeassistant/homeassistant/components/yale/data.py", line 6, in <module>
    from yalexs.manager.data import YaleXSData
  File "/usr/local/lib/python3.12/site-packages/yalexs/manager/data.py", line 24, in <module>
    from .activity import ActivityStream
  File "/usr/local/lib/python3.12/site-packages/yalexs/manager/activity.py", line 19, in <module>
    from .socketio import SocketIORunner
  File "/usr/local/lib/python3.12/site-packages/yalexs/manager/socketio.py", line 1, in <module>
    import socketio
  File "/usr/local/lib/python3.12/site-packages/socketio/__init__.py", line 1, in <module>
    from .client import Client
  File "/usr/local/lib/python3.12/site-packages/socketio/client.py", line 3, in <module>
    import engineio
  File "/usr/local/lib/python3.12/site-packages/engineio/__init__.py", line 2, in <module>
    from .middleware import WSGIApp, Middleware
  File "/usr/local/lib/python3.12/site-packages/engineio/middleware.py", line 2, in <module>
    from engineio.static_files import get_static_file
SyntaxError: source code string cannot contain null bytes

Additional information

Logger: homeassistant.setup Source: setup.py:334 First occurred: 11:10:17 PM (1 occurrences) Last logged: 11:10:17 PM

Setup failed for 'yale': Unable to import component: Exception importing homeassistant.components.yale Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 1067, in _get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ 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 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/yale/init.py", line 22, in from .data import YaleData File "/usr/src/homeassistant/homeassistant/components/yale/data.py", line 6, in from yalexs.manager.data import YaleXSData File "/usr/local/lib/python3.12/site-packages/yalexs/manager/data.py", line 24, in from .activity import ActivityStream File "/usr/local/lib/python3.12/site-packages/yalexs/manager/activity.py", line 19, in from .socketio import SocketIORunner File "/usr/local/lib/python3.12/site-packages/yalexs/manager/socketio.py", line 1, in import socketio File "/usr/local/lib/python3.12/site-packages/socketio/init.py", line 1, in from .client import Client File "/usr/local/lib/python3.12/site-packages/socketio/client.py", line 3, in import engineio File "/usr/local/lib/python3.12/site-packages/engineio/init.py", line 2, in from .middleware import WSGIApp, Middleware File "/usr/local/lib/python3.12/site-packages/engineio/middleware.py", line 2, in from engineio.static_files import get_static_file SyntaxError: source code string cannot contain null bytes

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

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 1007, in async_get_component comp = await self.hass.async_add_import_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1078, in _get_component raise ImportError(f"Exception importing {self.pkg_path}") from err ImportError: Exception importing homeassistant.components.yale

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 1067, in _get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ 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 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/yale/init.py", line 22, in from .data import YaleData File "/usr/src/homeassistant/homeassistant/components/yale/data.py", line 6, in from yalexs.manager.data import YaleXSData File "/usr/local/lib/python3.12/site-packages/yalexs/manager/data.py", line 24, in from .activity import ActivityStream File "/usr/local/lib/python3.12/site-packages/yalexs/manager/activity.py", line 19, in from .socketio import SocketIORunner File "/usr/local/lib/python3.12/site-packages/yalexs/manager/socketio.py", line 1, in import socketio File "/usr/local/lib/python3.12/site-packages/socketio/init.py", line 1, in from .client import Client File "/usr/local/lib/python3.12/site-packages/socketio/client.py", line 3, in import engineio File "/usr/local/lib/python3.12/site-packages/engineio/init.py", line 2, in from .middleware import WSGIApp, Middleware File "/usr/local/lib/python3.12/site-packages/engineio/middleware.py", line 2, in from engineio.static_files import get_static_file SyntaxError: source code string cannot contain null bytes

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

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 334, in _async_setup_component component = await integration.async_get_component() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1027, in async_get_component self._component_future.result() File "/usr/src/homeassistant/homeassistant/loader.py", line 1019, in async_get_component comp = self._get_component() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1078, in _get_component raise ImportError(f"Exception importing {self.pkg_path}") from err ImportError: Exception importing homeassistant.components.yale

AbadiMac avatar Oct 18 '24 20:10 AbadiMac

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (yale) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of yale can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign yale Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


yale documentation yale source (message by IssueLinks)

home-assistant[bot] avatar Oct 18 '24 20:10 home-assistant[bot]

@bdraco Hello, again do you mind having a look? Also I tried to reinstall the integration but the integration is giving:

Error Config flow could not be loaded: {"message":"Invalid handler specified"}

AbadiMac avatar Oct 20 '24 02:10 AbadiMac

@homeassistant All types of the integration are not working anymore, I see no responses here, what to do?

SamiRaslan9 avatar Oct 22 '24 17:10 SamiRaslan9

SyntaxError: source code string cannot contain null bytes

This usually means this disk corruption, try rebuilding the container or replacing the storage media

bdraco avatar Oct 22 '24 18:10 bdraco

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.