agents icon indicating copy to clipboard operation
agents copied to clipboard

Support Python 3.14.0

Open ringofhealth opened this issue 6 months ago • 15 comments

The newest version of python 3.14.0 Just got released.

Looks like the BlingFire package is currently blocking the build step

#11 0.211 <jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
#11 0.211 <jemalloc>: (This is the expected behaviour if you are running under QEMU)
#11 4.446   × No solution found when resolving dependencies:
#11 4.448   ╰─▶ Because livekit-blingfire==1.0.0 has no wheels with a matching Python
#11 4.448       ABI tag (e.g., `cp314`) and only livekit-blingfire==1.0.0 is available,
#11 4.448       we can conclude that livekit-blingfire==1.0.0 cannot be used.
#11 4.448       And because livekit-agents==1.2.14 depends on livekit-blingfire==1.0.0,
#11 4.448       we can conclude that livekit-agents==1.2.14 cannot be used.
#11 4.448       And because only livekit-agents[cartesia]<=1.2.14 is available and
#11 4.448       violet-core depends on livekit-agents[cartesia]>=1.2.14, we can conclude
#11 4.448       that your requirements are unsatisfiable.
#11 4.448 
#11 4.448       hint: `livekit-agents` was requested with a pre-release marker (e.g.,
#11 4.448       livekit-agents>1.2.14,<1.3.dev0), but pre-releases weren't enabled (try:
#11 4.448       `--prerelease=allow`)
#11 4.448 
#11 4.448       hint: You require CPython 3.14 (`cp314`), but we only found wheels for
#11 4.448       `livekit-blingfire` (v1.0.0) with the following Python ABI tags: `cp39`,
#11 4.448       `cp310`, `cp311`, `cp312`, `cp313`
#11 4.448 
#11 4.448       hint: `livekit-blingfire` was requested with a pre-release marker (e.g.,
#11 4.448       livekit-blingfire>1.0.0,<2.dev0), but pre-releases weren't enabled (try:
#11 4.448       `--prerelease=allow`)

ringofhealth avatar Oct 09 '25 20:10 ringofhealth

Same here

juancferrer avatar Oct 26 '25 21:10 juancferrer

+1 pls fix this soon

Abivarman123 avatar Oct 30 '25 12:10 Abivarman123

I just released livekit-blingfire==1.0.1, this should now be fixed

theomonnom avatar Oct 30 '25 22:10 theomonnom

From today itself started facing this issue with livekit-blingfire

Traceback (most recent call last): File "app/agent.py", line 5, in <module> from livekit import agents File "app/venv/lib/python3.12/site-packages/livekit/agents/__init__.py", line 23, in <module> from . import cli, inference, ipc, llm, metrics, stt, tokenize, tts, utils, vad, voice File "app/venv/lib/python3.12/site-packages/livekit/agents/inference/__init__.py", line 3, in <module> from .tts import TTS, TTSModels File "app/venv/lib/python3.12/site-packages/livekit/agents/inference/tts.py", line 13, in <module> from .. import tokenize, tts, utils File "app/venv/lib/python3.12/site-packages/livekit/agents/tokenize/__init__.py", line 1, in <module> from . import basic, blingfire, utils File "app/venv/lib/python3.12/site-packages/livekit/agents/tokenize/blingfire.py", line 7, in <module> from livekit import blingfire File "app/venv/lib/python3.12/site-packages/livekit/blingfire/__init__.py", line 18, in <module> import lk_blingfire as _cext ModuleNotFoundError: No module named 'lk_blingfire'

Do I need to update python to 3.14 or am I missing something here ?

SaketMunda avatar Oct 31 '25 18:10 SaketMunda

from __future__ import annotations

import lk_blingfire as _cext

from .version import __version__

in livekit-blingfire not able to fine the lk_blingfire module

venv/lib/python3.13/site-packages/livekit/blingfire/__init__.py", line 18, in <module>
    import lk_blingfire as _cext
ModuleNotFoundError: No module named 'lk_blingfire'

parvbhullar avatar Oct 31 '25 18:10 parvbhullar

For workaround, I uninstalled livekit-blingfire which is currently updated to 1.0.1 and then I installed 1.0.0 version.

It's working for me now. @theomonnom FYI.

SaketMunda avatar Oct 31 '25 18:10 SaketMunda

From today itself started facing this issue with livekit-blingfire

Traceback (most recent call last): File "app/agent.py", line 5, in <module> from livekit import agents File "app/venv/lib/python3.12/site-packages/livekit/agents/__init__.py", line 23, in <module> from . import cli, inference, ipc, llm, metrics, stt, tokenize, tts, utils, vad, voice File "app/venv/lib/python3.12/site-packages/livekit/agents/inference/__init__.py", line 3, in <module> from .tts import TTS, TTSModels File "app/venv/lib/python3.12/site-packages/livekit/agents/inference/tts.py", line 13, in <module> from .. import tokenize, tts, utils File "app/venv/lib/python3.12/site-packages/livekit/agents/tokenize/__init__.py", line 1, in <module> from . import basic, blingfire, utils File "app/venv/lib/python3.12/site-packages/livekit/agents/tokenize/blingfire.py", line 7, in <module> from livekit import blingfire File "app/venv/lib/python3.12/site-packages/livekit/blingfire/__init__.py", line 18, in <module> import lk_blingfire as _cext ModuleNotFoundError: No module named 'lk_blingfire'

Do I need to update python to 3.14 or am I missing something here ?

same here

Abivarman123 avatar Nov 01 '25 01:11 Abivarman123

fyi, silero VAD doesn't support python 3.14 for now because of onnxruntime https://github.com/microsoft/onnxruntime/issues/26309

longcw avatar Nov 01 '25 02:11 longcw

It seems like there isn't a wheel for Python 3.14 with livekit-blingfire 1.0.0 and the 1.0.1 version has been yoinked. Any suggestions? Onnxruntime released a nightly with a 3.14 wheel so that is no longer a major blocker.

alexvahter avatar Nov 10 '25 13:11 alexvahter

Hi, just wanted to check if the python 3.14 build wheel is supported or if this has been dropped temporarily, wanted to know the time frame on when it will be available ?

partha-lgtm avatar Nov 23 '25 00:11 partha-lgtm