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

Setup failed for 'default_config': Could not setup dependencies: stream #132303

Closed
Ivano62 opened this issue Dec 4, 2024 · 63 comments
Closed

Setup failed for 'default_config': Could not setup dependencies: stream #132303

Ivano62 opened this issue Dec 4, 2024 · 63 comments

Comments

@Ivano62
Copy link

Ivano62 commented Dec 4, 2024

The problem

I've installed latest master version (2024.12), after build I get this error:
2024-12-04 21:00:00.948 ERROR (MainThread) [homeassistant.setup] Error during setup of component stream
...
2024-12-04 21:00:55.697 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'default_config'. Setup failed for dependencies: ['stream']
2024-12-04 21:00:55.698 ERROR (MainThread) [homeassistant.setup] Setup failed for 'default_config': Could not setup dependencies: stream

What version of Home Assistant Core has the issue?

2024.12

What was the last working version of Home Assistant Core?

2024.11.3

What type of installation are you running?

Home Assistant Container

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

Anything in the logs that might be useful for us?

2024-12-04 21:00:00.948 ERROR (MainThread) [homeassistant.setup] Error during setup of component stream
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 226, in async_setup
    await hass.async_add_executor_job(set_pyav_logging, debug_enabled)
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 196, in set_pyav_logging
    import av  # pylint: disable=import-outside-toplevel
    ^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/av/__init__.py", line 3, in <module>
    from av._core import time_base, library_versions, ffmpeg_version_info
ImportError: Error loading shared library : No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-2cfeb5f2.so.0.10.2)


2024-12-04 21:00:49.813 ERROR (MainThread) [homeassistant.components.notify] Error setting up platform file
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/notify/legacy.py", line 112, in async_setup_platform
    raise HomeAssistantError("Invalid notify platform.")  # noqa: TRY301
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant.exceptions.HomeAssistantError: Invalid notify platform.

2024-12-04 21:00:55.697 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'default_config'. Setup failed for dependencies: ['stream']
2024-12-04 21:00:55.698 ERROR (MainThread) [homeassistant.setup] Setup failed for 'default_config': Could not setup dependencies: stream

2024-12-04 21:01:06.460 WARNING (MainThread) [firebase_messaging.fcmregister] Error during gcm checkin post attempt 1 out of 3
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 701, in _request
    conn = await self._connector.connect(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        req, traces=traces, timeout=real_timeout
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 544, in connect
    proto = await self._create_connection(req, traces, timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1050, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1363, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1109, in _wrap_create_connection
    sock = await aiohappyeyeballs.start_connection(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 89, in start_connection
    sock, _, _ = await _staggered.staggered_race(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/_staggered.py", line 160, in staggered_race
    done = await _wait_one(
           ^^^^^^^^^^^^^^^^
        [*tasks, start_next] if start_next else tasks, loop
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/_staggered.py", line 41, in _wait_one
    return await wait_next
           ^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/firebase_messaging/fcmregister.py", line 136, in gcm_check_in
    async with self._session.post(
               ~~~~~~~~~~~~~~~~~~^
        url=GCM_CHECKIN_URL,
        ^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        timeout=self.CLIENT_TIMEOUT,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ) as resp:
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 1423, in __aenter__
    self._resp: _RetType = await self._coro
                           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 607, in _request
    with timer:
         ^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/helpers.py", line 671, in __exit__
    raise asyncio.TimeoutError from exc_val
TimeoutError

2024-12-04 21:01:14.236 WARNING (MainThread) [firebase_messaging.fcmregister] Error during gcm checkin post attempt 2 out of 3
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 701, in _request
    conn = await self._connector.connect(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        req, traces=traces, timeout=real_timeout
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 544, in connect
    proto = await self._create_connection(req, traces, timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1050, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1363, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1116, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs, sock=sock)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1182, in create_connection
    transport, protocol = await self._create_connection_transport(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        ssl_shutdown_timeout=ssl_shutdown_timeout)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1215, in _create_connection_transport
    await waiter
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/firebase_messaging/fcmregister.py", line 136, in gcm_check_in
    async with self._session.post(
               ~~~~~~~~~~~~~~~~~~^
        url=GCM_CHECKIN_URL,
        ^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        timeout=self.CLIENT_TIMEOUT,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ) as resp:
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 1423, in __aenter__
    self._resp: _RetType = await self._coro
                           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 607, in _request
    with timer:
         ^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/helpers.py", line 671, in __exit__
    raise asyncio.TimeoutError from exc_val
TimeoutError

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Dec 4, 2024

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

Code owner commands

Code owners of stream 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 stream 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)


stream documentation
stream source
(message by IssueLinks)

@texindustries
Copy link

Same here... can't understand what stream is/used for

@jmtalavera
Copy link

same here

@kubasaw
Copy link

kubasaw commented Dec 5, 2024

Duplicate of #131853

@DrVic2r
Copy link

DrVic2r commented Dec 5, 2024

Same issue after core update to 12.0.

@KaVo194
Copy link

KaVo194 commented Dec 6, 2024

Same problem after upgrade to 12.0.

@Maurizion
Copy link

Same problem after upgrading to 2024.12.0 ( by the way cameras streams are working as usual )

@Ivano62
Copy link
Author

Ivano62 commented Dec 6, 2024

The problem persists on latest version (2024.12.1)

@ipodmusicman
Copy link

I am also getting this issue when upgrading from 2024.11.3 to 2024.12.1. Here are my logs

The following integrations and platforms could not be set up:

stream (Show logs)
default_config (Show logs)
Please check your config and logs.

Logger: homeassistant.setup
Source: setup.py:416
First occurred: 08:39:15 (1 occurrences)
Last logged: 08:39:15

Error during setup of component stream
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/stream/init.py", line 226, in async_setup
await hass.async_add_executor_job(set_pyav_logging, debug_enabled)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/stream/init.py", line 196, in set_pyav_logging
import av # pylint: disable=import-outside-toplevel
^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/av/init.py", line 3, in
from av._core import time_base, library_versions, ffmpeg_version_info
ImportError: Error loading shared library �: No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-2cfeb5f2.so.0.10.2)

Logger: homeassistant.setup
Source: setup.py:269
First occurred: 08:39:49 (1 occurrences)
Last logged: 08:39:49

Setup failed for 'default_config': Could not setup dependencies: stream

Logger: homeassistant.setup
Source: setup.py:246
First occurred: 08:39:49 (1 occurrences)
Last logged: 08:39:49

Unable to set up dependencies of 'default_config'. Setup failed for dependencies: ['stream']

Logger: homeassistant
Source: components/stream/init.py:150
First occurred: 08:40:08 (1 occurrences)
Last logged: 08:40:08

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 375, in preload_stream
stream = await camera.async_create_stream()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 626, in async_create_stream
self.stream = create_stream(
~~~~~~~~~~~~~^
self.hass,
^^^^^^^^^^
...<5 lines>...
stream_label=self.entity_id,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/components/stream/init.py", line 150, in create_stream
raise HomeAssistantError("Stream integration is not set up.")
homeassistant.exceptions.HomeAssistantError: Stream integration is not set up.

@Duncank
Copy link

Duncank commented Dec 7, 2024

Same problemen here; 2024.12.1, supervisor 2024.11.4, OS: 14.0 on a Raspberry Pi 3b+. Just using default_config: in configuration.yaml.

@pjbcr
Copy link

pjbcr commented Dec 7, 2024

Same problem here.
HAOS on Pi2 with Core 2024.12.0
In my case is complaining of a missing file.:
File "/usr/local/lib/python3.13/site-packages/av/__init__.py", line 3, in <module> from av._core import time_base, library_versions, ffmpeg_version_info ImportError: Error loading shared library �: No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-2cfeb5f2.so.0.10.2)

Full log

Logger: homeassistant.setup
Source: setup.py:416
First occurred: 6 December 2024 at 11:07:23 (1 occurrences)
Last logged: 6 December 2024 at 11:07:23

Error during setup of component stream
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/stream/init.py", line 226, in async_setup
await hass.async_add_executor_job(set_pyav_logging, debug_enabled)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/stream/init.py", line 196, in set_pyav_logging
import av # pylint: disable=import-outside-toplevel
^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/av/init.py", line 3, in
from av._core import time_base, library_versions, ffmpeg_version_info
ImportError: Error loading shared library �: No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-2cfeb5f2.so.0.10.2)

@Mikle61
Copy link

Mikle61 commented Dec 7, 2024

Same error:
Core 2024.12.1
Supervisor 2024.11.4
Operating System 14.0
Error during setup of component stream
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/stream/init.py", line 226, in async_setup
await hass.async_add_executor_job(set_pyav_logging, debug_enabled)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/stream/init.py", line 196, in set_pyav_logging
import av # pylint: disable=import-outside-toplevel
^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/av/init.py", line 3, in
from av._core import time_base, library_versions, ffmpeg_version_info
ImportError: Error loading shared library �: No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-2cfeb5f2.so.0.10.2)

@fuzzybear62
Copy link

+1

@sunghn-kim
Copy link

sunghn-kim commented Dec 7, 2024

Same problem
2024-12-07 23:32:15.889 ERROR (Dummy-1) [homeassistant.setup] Error during setup of component stream Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 226, in async_setup await hass.async_add_executor_job(set_pyav_logging, debug_enabled) File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 196, in set_pyav_logging import av # pylint: disable=import-outside-toplevel ^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/av/__init__.py", line 3, in <module> from av._core import time_base, library_versions, ffmpeg_version_info ImportError: Error loading shared library : No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-2cfeb5f2.so.0.10.2)

@Pantos
Copy link

Pantos commented Dec 7, 2024

+1

@Dennis650
Copy link

Same problem here. I only use one camera stream of the octopi-integration (3D-Printer), which works fine.

@forzalaquila
Copy link

Same for me
This is my log

registratore:%20homeassistant.setup%0AFonte%3A%20setup.py%3A416%0APrima%20occorrenza%3A%2017%3A22%3A16%20(1%20occorrenze)%0AUltimo%20accesso%3A%2017%3A22%3A16%0A%0AError%20during%20setup%20of%20component%20stream%0ATraceback%20(most%20recent%20call%20last)%3A%0A%20%20File%20%22/usr/src/homeassistant/homeassistant/setup.py%22,%20line%20416,%20in%20_async_setup_component%0A%20%20%20%20result%20=%20await%20task%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%0A%20%20File%20%22/usr/src/homeassistant/homeassistant/components/stream/init.py%22,%20line%20226,%20in%20async_setup%0A%20%20%20%20await%20hass.async_add_executor_job(set_pyav_logging,%20debug_enabled)%0A%20%20File%20%22/usr/local/lib/python3.13/concurrent/futures/thread.py%22,%20line%2058,%20in%20run%0A%20%20%20%20result%20=%20self.fn(*self.args,%20**self.kwargs)%0A%20%20File%20%22/usr/src/homeassistant/homeassistant/components/stream/init.py%22,%20line%20196,%20in%20set_pyav_logging%0A%20%20%20%20import%20av%20%20%23%20pylint:%20disable=import-outside-toplevel%0A%20%20%20%20%5E%5E%5E%5E%5E%5E%5E%5E%5E%0A%20%20File%20%22/usr/local/lib/python3.13/site-packages/av/init.py%22,%20line%203,%20in%20%3Cmodule%3E%0A%20%20%20%20from%20av._core%20import%20time_base,%20library_versions,%20ffmpeg_version_info%0AImportError:%20Error%20loading%20shared%20library%20%17:%20No%20such%20file%20or%20directory%20(needed%20by%20/usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-2cfeb5f2.so.0.10.2)%0A

Core
2024.12.1
Supervisor
2024.11.4
Operating System debian 12 on rasp3 model B
Frontend
20241127.6

@gergyverjux
Copy link

Impacted as well since 2024.12.0 and still in 2024.12.1

@FidgetyRat
Copy link
Contributor

+1, newly updated from 11.xx.24 to 12.01.24

@Plargio
Copy link

Plargio commented Dec 7, 2024

Same issue here

@matt2005
Copy link
Contributor

matt2005 commented Dec 8, 2024

Same here.

Logger: homeassistant.setup
Source: setup.py:416
First occurred: 01:33:15 (1 occurrences)
Last logged: 01:33:15

Error during setup of component stream
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 226, in async_setup
    await hass.async_add_executor_job(set_pyav_logging, debug_enabled)
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 196, in set_pyav_logging
    import av  # pylint: disable=import-outside-toplevel
    ^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/av/__init__.py", line 3, in <module>
    from av._core import time_base, library_versions, ffmpeg_version_info
ImportError: Error loading shared library �: No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-2cfeb5f2.so.0.10.2)

@Hannes58
Copy link

Hannes58 commented Dec 8, 2024

Same here, just updated to 2024.12.1

Logger: homeassistant.setup
Source: setup.py:416
First occurred: 08:15:56 (1 occurrences)
Last logged: 08:15:56

Error during setup of component stream
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/stream/init.py", line 226, in async_setup
await hass.async_add_executor_job(set_pyav_logging, debug_enabled)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/stream/init.py", line 196, in set_pyav_logging
import av # pylint: disable=import-outside-toplevel
^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/av/init.py", line 3, in
from av._core import time_base, library_versions, ffmpeg_version_info
ImportError: Error loading shared library �: No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-2cfeb5f2.so.0.10.2)

@Geoff571
Copy link

Geoff571 commented Dec 8, 2024

Same issue here:

2024-12-08 14:53:28.665 ERROR (MainThread) [homeassistant.setup] Error during setup of component stream
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/stream/init.py", line 226, in async_setup
await hass.async_add_executor_job(set_pyav_logging, debug_enabled)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/stream/init.py", line 196, in set_pyav_logging
import av # pylint: disable=import-outside-toplevel
^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/av/init.py", line 3, in
from av._core import time_base, library_versions, ffmpeg_version_info
ImportError: Error loading shared library �: No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-2cfeb5f2.so.0.10.2)

@lewiatanx
Copy link

Exactly the same problem since update 2024.12.0. New update 2024.12.1 did not fix the problem.

@uhlmul
Copy link

uhlmul commented Dec 9, 2024

Exactly the same problem since update from 2024.11.3 to 2024.12.1

@hkusulja
Copy link

hkusulja commented Dec 9, 2024

I have the same issue, from 2024.11.3 to 2024.12.1

@pjbcr
Copy link

pjbcr commented Dec 11, 2024

Solved for me too with update to 2024.12.2

@Geoff571
Copy link

Geoff571 commented Dec 12, 2024 via email

@Toniob
Copy link

Toniob commented Dec 12, 2024

Can the people who got the issue solved with the version 2024.12.2 also tell which version of python they’re using please ? I’m using Home Assistant Core on Debian 12, with python 3.12, and after the update, the issue is still here.

@Ivano62
Copy link
Author

Ivano62 commented Dec 12, 2024

I've docker version of HA Core 2024.12.2, the issue is solved

@Geoff571
Copy link

The release notes for 2024.12 indicate that it's now packaged with python 13.3

@Toniob
Copy link

Toniob commented Dec 12, 2024

I’m not running the Docker version. And even if Python 3.12 is noted as deprecated, it should run until it is not supported anymore (it’s supposed to be in 02/2025 if I’m correct).

@uhlmul
Copy link

uhlmul commented Dec 12, 2024

I've docker version of HA Core 2024.12.2, the issue is solved

@glcos
Copy link
Contributor

glcos commented Dec 13, 2024

So if my understanding is correct, since HA 2024.12.x Python 3.13 becomes a strict requirement, not just a deprecaction

@pascallj
Copy link
Contributor

On request, I've tried to replicate this issue, and I cannot replicate it with either Python 3.12 or Python 3.13 on Debian Bookworm or Home Assistant Core 2024.12.[0-3] on x86-64. So I do not think it is Python 3.12 related. On all combinations I've tried I can successfully watch an RTSP stream.

This issues seems related: #131853

For everyone who is still having the issue, what exactly are you running? What device/architecture, which version of Home Assistant and which version of Python (and does it use my backport for Debian Bookworm?). Also please specify the exact error. Because the error above (with the missing library file) seems related to Home Assistant Wheels, and I don't think most Core users use those.

@borgmatthew
Copy link

borgmatthew commented Dec 13, 2024

I am also having this issue after upgrading to version 2024.12.3. My setup is docker on raspberry pi 5, running on Bookworm.

This is the error in my case:

2024-12-13 15:06:55.479 ERROR (Dummy-1) [homeassistant.setup] Error during setup of component stream
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 226, in async_setup
    await hass.async_add_executor_job(set_pyav_logging, debug_enabled)
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 196, in set_pyav_logging
    import av  # pylint: disable=import-outside-toplevel
    ^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/av/__init__.py", line 3, in <module>
    from av._core import time_base, library_versions, ffmpeg_version_info
ImportError: Error loading shared library p\udc80\udcbd8\udcf8\udcff\udcff\udceaʠ\udce3p@-\udce9
                                                                                                \udcc0M\udce0\udcf0\udc8c\udce5@R\udce2p\udc80\udcbdH: No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-cf540b2a.so.0.10.2)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 958-959: surrogates not allowed
Call stack:
  File "/usr/local/lib/python3.13/threading.py", line 1012, in _bootstrap
    self._bootstrap_inner()
  File "/usr/local/lib/python3.13/threading.py", line 1041, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.13/threading.py", line 992, in run
    self._target(*self._args, **self._kwargs)
Message: 'Error during setup of component stream\nTraceback (most recent call last):\n  File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component\n    result = await task\n             ^^^^^^^^^^\n  File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 226, in async_setup\n    await hass.async_add_executor_job(set_pyav_logging, debug_enabled)\n  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run\n    result = self.fn(*self.args, **self.kwargs)\n  File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 196, in set_pyav_logging\n    import av  # pylint: disable=import-outside-toplevel\n    ^^^^^^^^^\n  File "/usr/local/lib/python3.13/site-packages/av/__init__.py", line 3, in <module>\n    from av._core import time_base, library_versions, ffmpeg_version_info\nImportError: Error loading shared library p\udc80\udcbd8\udcf8\udcff\udcff\udcea\x01ʠ\udce3p@-\udce9\x0c\udcc0M\udce0\udcf0\x0f\udc8c\udce5\x01@R\udce2p\udc80\udcbdH: No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-cf540b2a.so.0.10.2)'
Arguments: None
2024-12-13 15:06:56.337 ERROR (Dummy-1) [homeassistant.setup] Unable to set up dependencies of 'default_config'. Setup failed for dependencies: ['stream']
2024-12-13 15:06:56.337 ERROR (Dummy-1) [homeassistant.setup] Setup failed for 'default_config': Could not setup dependencies: stream

Not sure what is wrong, I could see that the libjxl file exists in av.libs.

@pascallj
Copy link
Contributor

pascallj commented Dec 13, 2024

In your case, the library it is looking for 'libjxl-cf540b2a.so.0.10.2', is from the armv6 av wheel. Which should not be present on your RPI 5, which is aarch64. I have no idea how that ended up in your Docker image.

I've checked the latest 2024.12.3 arm64 Docker image (ghcr.io/home-assistant/home-assistant:2024.12.3@sha256:14d0aaed2407bc0e21c403bb2aeb3ab27bb81fa1192d01742abd7461181c0060) and it does not contain this file. I also compared this to the latest image on Docker Hub and the checksums match, so it should not have this file too.

What Docker image exactly are you running?

@pjbcr
Copy link

pjbcr commented Dec 13, 2024

Can the people who got the issue solved with the version 2024.12.2 also tell which version of python they’re using please ? I’m using Home Assistant Core on Debian 12, with python 3.12, and after the update, the issue is still here.

I'm running HAOS on a RPi 2.
No idea how to check the python version.
Core 2024.12.2
Supervisor 2024.11.4
Operating System 14.0
Frontend 20241127.7

@borgmatthew
Copy link

What Docker image exactly are you running?

I'm running the armhf variant of the 2024.12.3 image

I've downgraded to version 2024.11.3 and the issue disappeared, so it must be something from the 2024.12 versions.

@pascallj
Copy link
Contributor

pascallj commented Dec 13, 2024

What Docker image exactly are you running?

I'm running the armhf variant of the 2024.12.3 image

But why? The RPI 5 is 64-bit so unless you have a very good reason for doing this, in my opinion you are asking for trouble.

Be that as it may, the latest armhf (armv7) image (ghcr.io/home-assistant/home-assistant:2024.12.3@sha256:33b6e78e316159afcc13f4db390d2e4cbb12352c7e007c9177b6ed7d139576ea) also does not have that file. So it seems like you are running the armv6 image somehow.

Something I also didn't know, is that the 32-bit Raspberry Pi OS image is apparently armv6 because it also has to support the earliest Raspberry Pi's. That would explain why you are running the armv6 image. In that case, I'm for now out of ideas why it worked before and not anymore. I still think you would be better off by running the 64-bit OS.

@njunghausz
Copy link

njunghausz commented Dec 13, 2024

For everyone who is still having the issue, what exactly are you running? What device/architecture, which version of Home Assistant and which version of Python (and does it use my backport for Debian Bookworm?). Also please specify the exact error. Because the error above (with the missing library file) seems related to Home Assistant Wheels, and I don't think most Core users use those.

Hey Pascal,

I'm using your backported python 3.12 on my raspi 4 and I'm still getting the error as of HA 2024.12.3.

kép

home-assistant_2024-12-13T17-19-37.646Z.log

I've attached the log, hopefully it will help.

EDIT: you may ignore jellyfin errors, it's offline.

Cheers,
N.

@cdce8p
Copy link
Member

cdce8p commented Dec 14, 2024

Just rebuild the av wheels for armv6 as well. Should be fixed with the next release. Unfortunately, it didn't make the last patch 2024.12.3, so either 2024.12.4 or 2025.1.0.

For anyone how can't wait, the next nightly image will include it as well. Should be building in a few hours.

@njunghausz
Copy link

Just rebuild the av wheels for armv6 as well. Should be fixed with the next release. Unfortunately, it didn't make the last patch 2024.12.3, so either 2024.12.4 or 2025.1.0.

For anyone how can't wait, the next nightly image will include it as well. Should be building in a few hours.

I absolutely can wait. :)

@Toniob
Copy link

Toniob commented Dec 14, 2024

Hi,

I’m running pip and wheel in a virtualenv on a Debian 12, with python 3.12 coming from testing, amd64 architecture. Here are the logs I’ve got :

Dec 14 10:34:37 roy hass[760638]: 2024-12-14 10:34:37.147 ERROR (MainThread) [homeassistant.setup] Error during setup of component stream
Dec 14 10:34:37 roy hass[760638]: Traceback (most recent call last):
Dec 14 10:34:37 roy hass[760638]:   File "/srv/www/homeassistant/lib/python3.12/site-packages/homeassistant/setup.py", line 416, in _async_setup_component
Dec 14 10:34:37 roy hass[760638]:     result = await task
Dec 14 10:34:37 roy hass[760638]:              ^^^^^^^^^^
Dec 14 10:34:37 roy hass[760638]:   File "/srv/www/homeassistant/lib/python3.12/site-packages/homeassistant/components/stream/__init__.py", line 226, in async_setup
Dec 14 10:34:37 roy hass[760638]:     await hass.async_add_executor_job(set_pyav_logging, debug_enabled)
Dec 14 10:34:37 roy hass[760638]:   File "/usr/lib/python3.12/concurrent/futures/thread.py", line 58, in run
Dec 14 10:34:37 roy hass[760638]:     result = self.fn(*self.args, **self.kwargs)
Dec 14 10:34:37 roy hass[760638]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 14 10:34:37 roy hass[760638]:   File "/srv/www/homeassistant/lib/python3.12/site-packages/homeassistant/components/stream/__init__.py", line 196, in set_pyav_logging
Dec 14 10:34:37 roy hass[760638]:     import av  # pylint: disable=import-outside-toplevel
Dec 14 10:34:37 roy hass[760638]:     ^^^^^^^^^
Dec 14 10:34:37 roy hass[760638]:   File "/srv/www/homeassistant/lib/python3.12/site-packages/av/__init__.py", line 17, in <module>
Dec 14 10:34:37 roy hass[760638]:     from av.bitstream import BitStreamFilterContext, bitstream_filters_available
Dec 14 10:34:37 roy hass[760638]:   File "/srv/www/homeassistant/lib/python3.12/site-packages/av/bitstream/__init__.py", line 1, in <module>
Dec 14 10:34:37 roy hass[760638]:     from .context import BitStreamFilterContext
Dec 14 10:34:37 roy hass[760638]:   File "av/bitstream/context.pyx", line 1, in init av.bitstream.context
Dec 14 10:34:37 roy hass[760638]: ValueError: av.frame.Frame size changed, may indicate binary incompatibility. Expected 56 from C header, got 48 from PyObject
Dec 14 10:34:37 roy hass[760638]: 2024-12-14 10:34:37.149 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'default_config'. Setup failed for dependencies: ['stream']
Dec 14 10:34:37 roy hass[760638]: 2024-12-14 10:34:37.150 ERROR (MainThread) [homeassistant.setup] Setup failed for 'default_config': Could not setup dependencies: stream

Here is my pip list output :

Package                      Version
---------------------------- -----------
acme                         3.0.1
adb_shell                    0.4.4
aenum                        3.1.15
aiodhcpwatcher               1.0.2
aiodiscover                  2.1.0
aiodns                       3.2.0
aioesphomeapi                28.0.0
aiofiles                     24.1.0
aiohappyeyeballs             2.4.4
aiohasupervisor              0.2.1
aiohttp                      3.11.10
aiohttp-cors                 0.7.0
aiohttp-fast-url-dispatcher  0.3.0
aiohttp-fast-zlib            0.2.0
aiohttp-isal                 0.2.0
aiohttp-session              2.12.0
aiohttp-zlib-ng              0.3.1
aionut                       4.3.3
aiooui                       0.1.7
aiorun                       2024.8.1
aioruuvigateway              0.1.0
aioshelly                    12.1.0
aiosignal                    1.3.2
aiosqlite                    0.20.0
aiozoneinfo                  0.2.1
androidtv                    0.0.75
androidtvremote2             0.1.2
anyio                        4.6.2.post1
astral                       2.2
async_interrupt              1.2.0
async-timeout                4.0.3
async_upnp_client            0.41.0
asyncclick                   8.1.7.2
atomicwrites-homeassistant   1.4.1
attrs                        24.2.0
automower_ble                0.2.0
av                           13.1.0
awesomeversion               24.6.0
backoff                      2.2.1
bcrypt                       4.2.0
bellows                      0.42.5
bleak                        0.22.3
bleak-esphome                1.1.0
bleak-retry-connector        3.6.0
bluetooth-adapters           0.20.2
bluetooth-auto-recovery      1.4.2
bluetooth-data-tools         1.20.0
bluetooth-sensor-state-data  1.7.1
boto3                        1.34.77
botocore                     1.34.77
bthome-ble                   3.9.1
btsocket                     0.3.0
cached-ipaddress             0.8.0
casttube                     0.2.1
certifi                      2024.8.30
cffi                         1.17.1
chacha20poly1305-reuseable   0.13.2
charset-normalizer           3.2.0
ciso8601                     2.3.1
click                        8.1.7
click-log                    0.4.0
coloredlogs                  15.0.1
colorzero                    2.0
crc                          7.1.0
crccheck                     1.3.0
cryptography                 43.0.1
dacite                       1.8.1
dbus-fast                    2.24.3
deepmerge                    2.0
defusedxml                   0.7.1
docopt                       0.6.2
ecdsa                        0.18.0
envs                         1.4
esphome-dashboard-api        1.2.3
flux-led                     1.0.4
fnv-hash-fast                1.0.2
fnvhash                      0.1.0
frozendict                   2.4.6
frozenlist                   1.5.0
gardena-bluetooth            1.4.4
go2rtc-client                0.1.1
govee-ble                    0.40.0
gpiod                        2.2.2
gpiozero                     2.0.1
greenlet                     3.0.3
h11                          0.14.0
ha-av                        10.1.1
ha-ffmpeg                    3.2.2
habluetooth                  3.6.0
hass-nabucasa                0.86.0
hassil                       2.0.5
HATasmota                    0.9.2
home-assistant-bluetooth     1.13.0
home-assistant-chip-clusters 2024.9.0
home-assistant-frontend      20241127.8
home-assistant-intents       2024.12.9
homeassistant                2024.12.3
httpcore                     1.0.4
httpx                        0.27.2
humanfriendly                10.0
ibeacon-ble                  1.2.0
idna                         3.10
ifaddr                       0.2.0
inkbird-ble                  0.5.8
isal                         1.6.1
Jinja2                       3.1.4
jmespath                     1.0.1
josepy                       1.14.0
jsonschema                   4.23.0
jsonschema-specifications    2024.10.1
kasa-crypt                   0.4.4
kegtron-ble                  0.4.0
led-ble                      1.0.2
lru-dict                     1.3.0
mac-vendor-lookup            0.1.12
MarkupSafe                   2.1.5
mashumaro                    3.15
meteofrance-api              1.3.0
multidict                    6.1.0
mutagen                      1.47.0
netifaces                    0.11.0
noiseprotocol                0.3.1
numpy                        2.1.3
onkyo-eiscp                  1.2.7
oralb-ble                    0.17.6
orjson                       3.10.12
packaging                    24.0
paho-mqtt                    1.6.1
pillow                       11.0.0
pip                          24.3.1
PlexAPI                      4.15.16
plexauth                     0.0.6
plexwebsocket                0.0.14
propcache                    0.2.1
protobuf                     5.28.3
psutil                       5.9.8
psutil-home-assistant        0.0.1
pure-pcapy3                  1.0.1
pure-python-adb              0.3.0.dev0
pyasn1                       0.6.1
pycares                      4.4.0
PyChromecast                 14.0.3
pycognito                    2024.5.1
pycparser                    2.22
pycryptodomex                3.21.0
pydantic                     1.10.18
pyipp                        0.17.0
PyJWT                        2.10.1
pymicro_vad                  1.0.1
PyMySQL                      1.1.0
PyNaCl                       1.5.0
pyOpenSSL                    24.2.1
pyotp                        2.8.0
PyQRCode                     1.2.1
pyRFC3339                    1.1
PyRIC                        0.1.6.3
pyroute2                     0.7.12
pyserial                     3.5
pyserial-asyncio             0.6
pyserial-asyncio-fast        0.14
pyspeex_noise                1.0.2
PySwitchbot                  0.51.0
python-bsblan                0.5.18
python-dateutil              2.9.0.post0
python-didl-lite             1.4.1
python-jose                  3.3.0
python-kasa                  0.7.7
python-matter-server         6.6.0
python-slugify               8.0.4
PyTurboJPEG                  1.7.5
pytz                         2024.1
pyudev                       0.24.1
pyusb                        1.2.1
PyYAML                       6.0.2
redis                        5.0.3
referencing                  0.35.1
requests                     2.32.3
rpds-py                      0.21.0
rsa                          4.9
ruuvitag-ble                 0.1.2
s3transfer                   0.10.1
scapy                        2.5.0
securetar                    2024.11.0
sensor-state-data            2.18.1
setuptools                   75.6.0
six                          1.16.0
sniffio                      1.3.1
snitun                       0.39.1
spotifyaio                   0.8.11
spotipy                      2.23.0
SQLAlchemy                   2.0.36
text-unidecode               1.3
thermobeacon-ble             0.7.0
thermopro-ble                0.10.0
typing_extensions            4.12.2
tzdata                       2024.1
tzlocal                      5.2
uart-devices                 0.1.0
ulid-transform               1.0.2
unicode_rbnf                 2.1.0
universal-silabs-flasher     0.0.25
urllib3                      1.26.20
usb-devices                  0.4.5
uv                           0.5.4
voluptuous                   0.15.2
voluptuous-openapi           0.0.5
voluptuous-serialize         2.6.0
webcolors                    1.13
webrtc-models                0.3.0
webrtc_noise_gain            1.2.3
wheel                        0.45.1
wyoming                      1.5.4
xiaomi-ble                   0.33.0
yarl                         1.18.3
zeroconf                     0.136.2
zha                          0.0.42
zha-quirks                   0.0.125
zigpy                        0.73.1
zigpy-deconz                 0.24.1
zigpy-xbee                   0.21.0
zigpy-zigate                 0.13.2
zigpy-znp                    0.13.1
zlib-ng                      0.4.1

@cdce8p
Copy link
Member

cdce8p commented Dec 14, 2024

@Toniob This looks like a different error, see #131997.

@pascallj
Copy link
Contributor

I have replicated the issue with the armv6 Docker images and with the new armv6 wheels created by @cdce8p the issue is indeed solved. So this should at least fix the issue of @borgmatthew and for everyone else who specifically has the "No such file or directory [...] libjxl [...]" error.

For people who don't want to wait for the new patch version, you can reinstall av inside your existing Docker container. If your container is named homeassistant:

  1. Start the container until the error message occurs and leave it running
  2. Execute this command: docker exec homeassistant pip install --force-reinstall av
  3. After the command has finished, restart your Home Assistant container and the issue should be fixed in this container.

@njunghausz You're issue is different and also #131997. You should follow that issue instead.

@boobiq
Copy link

boobiq commented Dec 16, 2024

I have the exact same error and can't even reinstall it inside the container. The original error is

2024-12-16 21:19:12.133 ERROR (Dummy-1) [homeassistant.setup] Error during setup of component stream
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 226, in async_setup
    await hass.async_add_executor_job(set_pyav_logging, debug_enabled)
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 196, in set_pyav_logging
    import av  # pylint: disable=import-outside-toplevel
    ^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/av/__init__.py", line 3, in <module>
    from av._core import time_base, library_versions, ffmpeg_version_info
ImportError: Error loading shared library p\udc80\udcbd8\udcf8\udcff\udcff\udceaʠ\udce3p@-\udce9
                                                                                                \udcc0M\udce0\udcf0\udc8c\udce5@R\udce2p\udc80\udcbdH: No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-cf540b2a.so.0.10.2)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/logging/__init__.py", line 1153, in emit
    stream.write(msg + self.terminator)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 958-959: surrogates not allowed
Call stack:
  File "/usr/local/lib/python3.13/threading.py", line 1012, in _bootstrap
    self._bootstrap_inner()
  File "/usr/local/lib/python3.13/threading.py", line 1041, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.13/threading.py", line 992, in run
    self._target(*self._args, **self._kwargs)
Message: 'Error during setup of component stream\nTraceback (most recent call last):\n  File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component\n    result = await task\n             ^^^^^^^^^^\n  File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 226, in async_setup\n    await hass.async_add_executor_job(set_pyav_logging, debug_enabled)\n  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run\n    result = self.fn(*self.args, **self.kwargs)\n  File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 196, in set_pyav_logging\n    import av  # pylint: disable=import-outside-toplevel\n    ^^^^^^^^^\n  File "/usr/local/lib/python3.13/site-packages/av/__init__.py", line 3, in <module>\n    from av._core import time_base, library_versions, ffmpeg_version_info\nImportError: Error loading shared library p\udc80\udcbd8\udcf8\udcff\udcff\udcea\x01ʠ\udce3p@-\udce9\x0c\udcc0M\udce0\udcf0\x0f\udc8c\udce5\x01@R\udce2p\udc80\udcbdH: No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-cf540b2a.so.0.10.2)'
Arguments: None
2024-12-16 21:19:13.064 ERROR (Dummy-1) [homeassistant.setup] Unable to set up dependencies of 'default_config'. Setup failed for dependencies: ['stream']
2024-12-16 21:19:13.065 ERROR (Dummy-1) [homeassistant.setup] Setup failed for 'default_config': Could not setup dependencies: stream

There are some weird characters in

ImportError: Error loading shared library p\udc80\udcbd8\udcf8\udcff\udcff\udceaʠ\udce3p@-\udce9
                                                                                                \udcc0M\udce0\udcf0\udc8c\udce5@R\udce2p\udc80\udcbdH: No such file or directory (needed by /usr/local/lib/python3.13/site-packages/av/../av.libs/libjxl-cf540b2a.so.0.10.2)

And when I try to run docker exec homeassistant pip install --force-reinstall av I get:

odroid:~/hass/config # docker exec home-assistant-test pip install --force-reinstall av
Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/
Collecting av
  Downloading https://wheels.home-assistant.io/musllinux-index/av-13.1.0-cp313-cp313-musllinux_1_2_armv7l.whl (34.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 34.1/34.1 MB 17.8 MB/s eta 0:00:00
Installing collected packages: av
  Attempting uninstall: av
    Found existing installation: av 13.1.0
    Uninstalling av-13.1.0:
      Successfully uninstalled av-13.1.0
Successfully installed av-13.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
Exception ignored in: <function _DeleteDummyThreadOnDel.__del__ at 0xf6ca53e8>
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/threading.py", line 1383, in __del__
TypeError: 'NoneType' object does not support the context manager protocol

@pascallj
Copy link
Contributor

@boobiq Seems good to me. If you restart your container now, it should be fixed.

Don't know what that ignored threading exception is though.

@boobiq
Copy link

boobiq commented Dec 16, 2024

@pascallj True, seems to be gone now but it unfortunately didn't solve my issue with custom components so it has to be something else. Thank you anyway.

I tried Linuxserver's HA 2024.12.3 Docker container and it seems to work so I might use that and try some other version of official container later.

@steals
Copy link

steals commented Dec 21, 2024

Just rebuild the av wheels for armv6 as well. Should be fixed with the next release. Unfortunately, it didn't make the last patch 2024.12.3, so either 2024.12.4 or 2025.1.0.

For anyone how can't wait, the next nightly image will include it as well. Should be building in a few hours.

Hello, are there any places where I can download armv6 wheel for av lib outside of the image? (I have HA Core installed on RPI, so I don't use docker images)

@pascallj
Copy link
Contributor

You can on https://wheels.home-assistant.io/.

However I doubt these are very useful to you as they are compiled for the musl libc library. If you are running Core, you system is probably based on Glibc.

@steals
Copy link

steals commented Dec 21, 2024

Ah.. that's right. I'm running HA core on dietpi with Glibc. Well will wait until it compiles on the board.

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