Spaces:
Sleeping
Sleeping
Use Python 3.10 (pypi-kenlm incompatible with 3.11)
#4
by chirag18 - opened
I built it locally and reproduced the failure. Real error was that
pypi-kenlm's C extension uses PyFrameObject internals that became
opaque in Python 3.11, so it won't compile on the 3.11-slim image.
Downgrading the base image to python:3.10-slim makes pip install
succeed. All other deps (transformers, torch, pyctcdecode, fastapi,
soundfile) support 3.10 fine.
Verified locally:
docker build . โ succeeds (~3 min)
docker run python -c 'import kenlm' โ OK
docker run python -c 'import pyctcdecode' โ OK
deepakkaura changed pull request status to merged