Stream component error

I have stream: in my configuration.yaml but get errors in the UI… it still appears to work as my cameras stream in the UI but the error still perisists…

Error: Setup failed for stream: Requirements for stream not found: [‘av==6.1.2’].

I followed the steps to install the packages using apt-get but thinking because im running in a virtual env python it doesn’t find them?

Try activating the venv (as the user you run HA as) and manually installing the package:

pip install --upgrade av

That may spit out more errors and help you move forwards.