From 8171fec92563e82b3e724594521de0fb2f69fd75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 12 May 2025 10:07:06 -0700 Subject: [PATCH] SmallWebRTCConnection: complain if av package not found --- src/pipecat/transports/network/webrtc_connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/transports/network/webrtc_connection.py b/src/pipecat/transports/network/webrtc_connection.py index d21b57cad..3981460e7 100644 --- a/src/pipecat/transports/network/webrtc_connection.py +++ b/src/pipecat/transports/network/webrtc_connection.py @@ -9,7 +9,6 @@ import json import time from typing import Any, List, Literal, Optional, Union -from av.frame import Frame from loguru import logger from pydantic import BaseModel, TypeAdapter @@ -24,6 +23,7 @@ try: RTCSessionDescription, ) from aiortc.rtcrtpreceiver import RemoteStreamTrack + from av.frame import Frame except ModuleNotFoundError as e: logger.error(f"Exception: {e}") logger.error("In order to use the SmallWebRTC, you need to `pip install pipecat-ai[webrtc]`.")