docs: note pydub/audioop Python 3.13 constraint at the import (#25785)
pydub imports the stdlib `audioop`, removed in Python 3.13, so audio preprocessing would break there. requires-python is already capped at < 3.13; this one-line pointer flags what to handle (audioop-lts, or drop pydub) before raising that cap.
This commit is contained in:
1 parent
2a9a023172
commit
5fd26b7549
1 file changed
+2
@@ -28,6 +28,8 @@ from fastapi import (
|
|||||||
)
|
)
|
||||||
from fastapi.responses import FileResponse
|
from fastapi.responses import FileResponse
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
# pydub needs stdlib audioop (gone in 3.13); keep requires-python capped < 3.13
|
||||||
from pydub import AudioSegment
|
from pydub import AudioSegment
|
||||||
from pydub.silence import split_on_silence
|
from pydub.silence import split_on_silence
|
||||||
from pydub.utils import mediainfo
|
from pydub.utils import mediainfo
|
||||||
|
|||||||
Reference in new issue
Block a user