Errors and Troubleshooting
Common Fixes
- yt-dlp / platform errors: ensure Cobalt is running (
docker composeincludes it) or setCOBALT_BASE_URLin.envorsummarizer.yaml - Missing API key: add the provider key to
.env(seesummarizer.example.yamlfor provider names) - No config file: run
summarizer --init-configor pass--base-urland--modelwith--no-config - Removed
audio-speedkey: usespeedin YAML,--speedon the CLI, orspeedin API requests instead - ffmpeg not found: install ffmpeg and ensure it is on your
PATH
Dependency and Install Issues
These problems come from the Python environment, not from summarizer logic. They are most common when many CLI tools share one ~/.local site-packages directory and get upgraded at different times.
pydantic / pydantic-core version mismatch
Symptoms: summarizer serve crashes at startup with an error about pydantic-core version mismatch, or a SystemError when importing pydantic. The CLI may work fine; the crash happens when uvicorn imports FastAPI → pydantic.
Cause: pydantic and pydantic-core must be installed as a matched pair. A partial upgrade — often triggered by installing or upgrading another tool that also depends on pydantic — leaves them out of sync.
Fix (pick one):
The quick patch fixes the immediate mismatch but does not prevent the next unrelated upgrade from breaking things again. Isolated installs are the durable fix.
Server dependencies not installed
Symptoms: Server dependencies not installed. Run: pip install 'summarizer[server]'
Fix: Install the server extra in an isolated environment:
Or inside an activated venv: pip install "martino-summarize[server]"
Import errors after upgrading other tools
Symptoms: Summarizer worked yesterday; today it fails with import or version errors after you upgraded groq, litellm, openai, or another Python CLI tool.
Fix: Reinstall summarizer in its own environment instead of debugging shared site-packages:
See Installation for the full install method comparison.
Error Types
Configuration Errors
Requests that include the removed audio_speed field return HTTP 422 on the API. YAML configs with audio-speed or audio_speed raise a ConfigurationError at merge time. Use speed everywhere instead.
Platform-Specific Issues
See Cobalt for downloader fallback setup and Proxy for Webshare proxy configuration.