Claude commited on
Add audioop-lts backport for Python 3.13 on HF Space
Browse filesPython 3.13 removed stdlib `audioop` (PEP 594). Gradio 4.44's pydub
dependency imports it at module load, so the Space crashed on startup
with ModuleNotFoundError. audioop-lts is the standard backport —
scoped with a marker so 3.10–3.12 installs are unaffected.
- requirements.txt +4 -0
requirements.txt
CHANGED
|
@@ -28,5 +28,9 @@ tabulate>=0.9 # pandas.DataFrame.to_markdown
|
|
| 28 |
pymatching>=2.2
|
| 29 |
|
| 30 |
# [gui] — HF Space's bootstrap pins gradio==4.44.0, so don't override it here.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
# CUDA-Q is installed separately on the Space (see README).
|
|
|
|
| 28 |
pymatching>=2.2
|
| 29 |
|
| 30 |
# [gui] — HF Space's bootstrap pins gradio==4.44.0, so don't override it here.
|
| 31 |
+
# Python 3.13 removed the stdlib `audioop` module (PEP 594), which pydub
|
| 32 |
+
# (pulled in by gradio) still imports at load time. Install the backport
|
| 33 |
+
# on 3.13+ so the app starts. Harmless on 3.10–3.12.
|
| 34 |
+
audioop-lts>=0.2.1; python_version >= "3.13"
|
| 35 |
|
| 36 |
# CUDA-Q is installed separately on the Space (see README).
|