• Stefy Lanza (nextime / spora )'s avatar
    speaker: pyannote needs matplotlib — and a venv check has to reach the real load · 57f72ea3
    Stefy Lanza (nextime / spora ) authored
    The HF token fix worked: pyannote got past the gate and failed one layer deeper,
    instantiating the pipeline. Reproduced by running the real service with a GPU:
    ModuleNotFoundError: No module named 'matplotlib'. pyannote's segmentation tasks
    import matplotlib.pyplot at module load; it is not declared, and 'import
    pyannote.audio' never reaches it, so the build's import check passed and the
    venv shipped broken.
    
    This is the fourth venv whose bare import check passed while the real load
    failed. A <profile>.venv-<name>.check script now runs at build time in the
    venv's own python and imports what the REAL load reaches — pipeline modules,
    model classes — without a GPU or a token, which a build has neither of. The
    pyannote check fails on the shipped image and passes with the fix; the XTTS
    check passes as-is, so that venv is genuinely complete.
    
    Also: every isolated-venv worker reported failures as the LAST FIVE LINES of the
    subprocess tail. A Python traceback's last five lines are frame headers — the
    exception is the final line, and cutting to five dropped it whenever the trace
    was deep. Ten workers said where a process died and never why. Fixed in all of
    them.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_0182DhR1eFNPQyGmDrpHbedY
    57f72ea3
pyannote_worker.py 9.84 KB