Skip to content

Keep the empty ffmpeg package out of the conserver image. - #231

Merged
howethomas merged 2 commits into
mainfrom
e12-drop-empty-ffmpeg-package
Nov 25, 2026
Merged

howethomas merged 2 commits into
mainfrom
e12-drop-empty-ffmpeg-package

Conversation

@howethomas

@howethomas howethomas commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

vcon 0.9.2, which uv.lock pins, requires the PyPI package ffmpeg. That package is empty, and next to ffmpeg-python it empties ffmpeg/__init__.py, so ffmpeg.probe fails and real recordings fail at transcribe. An image built from this lock has both packages.

This adds a uv override that never installs ffmpeg. The lock changes by five lines: the override entry and a marker on vcon's edge.

The install the images run:

  • docker/Dockerfile (the one docker-compose.yml builds for conserver and api): uv venv --seed /opt/venv && UV_PROJECT_ENVIRONMENT=/opt/venv uv sync --frozen --group conserver --group api --group dev --group storage-milvus
  • docker/Dockerfile.conserver: uv sync --frozen --no-dev --group conserver
  • docker/Dockerfile.api: uv sync --frozen --no-dev --group api

A dry run of --group conserver plans ffmpeg-python==0.2.0 and vcon==0.9.2 and no ffmpeg. The lock marks ffmpeg unreachable on every platform, so the other two commands and the combined one skip it the same way.

Test: tests/test_ffmpeg_environment.py checks that the ffmpeg distribution is not installed, that import ffmpeg has probe, and that no lock entry depends on ffmpeg without the never-true marker. Run against the lock and a venv synced from it, before this change: 2 failed, 1 passed (the probe check can pass by install order alone, so it is not enough on its own). After: 3 passed.

vcon-lib fixed its own declaration in 1.0.4. Moving to it is a separate change, because 1.0.x writes the 0.5.0 vCon syntax and this server still depends on the 0.4.0 output of 0.9.2. The override can go when that bump lands (vcon-lib guard test: vcon-dev/vcon-lib#79).

🤖 Generated with Claude Code

howethomas and others added 2 commits November 24, 2026 11:41
…hat removes ffmpeg.probe.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… ffmpeg package out.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@howethomas
howethomas merged commit 342da73 into main Nov 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant