From ba8d94068a489cc5a9f2e7d9a6e15e812c7c41f8 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 5 Feb 2026 06:41:43 +0000 Subject: [PATCH 1/2] Fix Docker build error by pinning av<14.0.0 and adding build dependencies The latest version of `av` (14.4.0) requires FFmpeg 7, which is not available in the Ubuntu 22.04 base image. This commit pins `av` to `<14.0.0` to ensure compatibility. Additionally, we add `pkg-config` and FFmpeg development libraries to the Dockerfile to support source builds of multimedia packages if necessary. Co-authored-by: ccsvip <61367381+ccsvip@users.noreply.github.com> --- Dockerfile | 3 ++- pyproject.toml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d6aeefc5..46cd43fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,8 @@ RUN apt-get update && \ apt-get install -y software-properties-common && \ add-apt-repository ppa:deadsnakes/ppa && \ apt-get update && \ - apt-get install -y python3.11 python3.11-dev python3.11-venv python3.11-distutils python3-pip git libgl1 libglib2.0-0 + apt-get install -y python3.11 python3.11-dev python3.11-venv python3.11-distutils python3-pip git libgl1 libglib2.0-0 \ + pkg-config ffmpeg libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libswscale-dev libswresample-dev libavfilter-dev RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 && \ python3.11 -m ensurepip --upgrade && \ diff --git a/pyproject.toml b/pyproject.toml index 2001bbb6..7d9da923 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,7 @@ requires-python = ">=3.11.7, <3.12" dependencies = [ "aiohttp~=3.11.12", "aiortc~=1.12.0", + "av<14.0.0", "dynaconf~=3.2.7", "fastapi[standard]~=0.115.12", "fastrtc", From 0b3158add71b03dc45e32a30b8a4631ea0fa2642 Mon Sep 17 00:00:00 2001 From: "DESKTOP-L828Q5R\\amigo" Date: Thu, 5 Feb 2026 15:20:13 +0800 Subject: [PATCH 2/2] Fix Docker build dependency conflict between aiortc and av Problem: - aiortc~=1.12.0 requires av>=14.0.0,<15.0.0 - Project pins av<14.0.0 due to FFmpeg 7 requirement in av 14+ - Ubuntu 22.04 base image only has FFmpeg 4 - This creates unsatisfiable dependency conflict in Docker builds Solution: - Downgrade aiortc from ~=1.12.0 to ~=1.11.0 - aiortc 1.11.0 is compatible with av<14.0.0 - No breaking changes affecting current code usage Tested: - Dependency resolution passes with uv - Code imports remain compatible (checked rtc_client usage) Fixes Docker build error in uv sync step. Co-Authored-By: Claude Sonnet 4.5 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7d9da923..d5845a5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ readme = "README.md" requires-python = ">=3.11.7, <3.12" dependencies = [ "aiohttp~=3.11.12", - "aiortc~=1.12.0", + "aiortc~=1.11.0", "av<14.0.0", "dynaconf~=3.2.7", "fastapi[standard]~=0.115.12",