Closed astutejoe closed 2 years ago
generic documentation generic source (message by IssueLinks)
There are non python requirements for the stream component. In think you can check this https://pyav.org/docs/develop/overview/installation.html
@elupus I installed all the possible dependencies and the av package itself, I'm still getting:
Jan 23 00:38:46 ubuntu pipenv[161582]: Traceback (most recent call last):
Jan 23 00:38:46 ubuntu pipenv[161582]: File "/home/homeassistant/.local/share/virtualenvs/homeassistant-blabs_3G/lib/python3.10/site-packages/homeassistant/components/camera/__init__.py", line 315, in prelo>
Jan 23 00:38:46 ubuntu pipenv[161582]: stream = await camera.create_stream()
Jan 23 00:38:46 ubuntu pipenv[161582]: File "/home/homeassistant/.local/share/virtualenvs/homeassistant-blabs_3G/lib/python3.10/site-packages/homeassistant/components/camera/__init__.py", line 458, in creat>
Jan 23 00:38:46 ubuntu pipenv[161582]: self.stream = create_stream(self.hass, source, options=self.stream_options)
Jan 23 00:38:46 ubuntu pipenv[161582]: File "/home/homeassistant/.local/share/virtualenvs/homeassistant-blabs_3G/lib/python3.10/site-packages/homeassistant/components/stream/__init__.py", line 80, in create>
Jan 23 00:38:46 ubuntu pipenv[161582]: raise HomeAssistantError("Stream integration is not set up.")
Jan 23 00:38:46 ubuntu pipenv[161582]: homeassistant.exceptions.HomeAssistantError: Stream integration is not set up.
sudo apt-get update; sudo apt-get install make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
sudo apt-get install -y \
libavformat-dev libavcodec-dev libavdevice-dev \
libavutil-dev libswscale-dev libswresample-dev libavfilter-dev
All that plus:
pipenv install av
Everything installed successfully, except the stream integration still "doesn't setup"
Have you enabled the stream component in config? https://www.home-assistant.io/integrations/stream/
The stream integration is automatically loaded by default_config and enabled by the camera platforms that support it. If default_config is used, no separate configuration.yaml entry is necessary.
My configuration.yaml:
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
...
So I guess, yes?
Are there any logs I can see the ACTUAL exception?
You are seeing the actual exception: from here https://github.com/home-assistant/core/blob/a9cefec1db3519790de6a65372ecf977f283f07b/homeassistant/components/stream/__init__.py#L85
So the stream component has not been loaded. Please add it manually in your config and see if that helps.
You can also turn on debug logs for stream component.
homeassistant.conponents.stream: debug
Manually putting stream: on configuration.yaml did the trick, then I removed it and it's still fine, odd, thanks for all the help @elupus
The problem
I decided moving from docker to native Python, I installed hass using pipenv and Python 3.10.2, everything works perfectly, except my stream integrations stopped loading, the log is attached here.
I'm probably missing a dependency? I couldn't find anything on the logs on the actual exception.
What version of Home Assistant Core has the issue?
core-2021.12.10
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Generic Camera
Link to integration documentation on our website
https://www.home-assistant.io/integrations/generic/
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response