Fixing pydub's 'No module named audioop' error on Python 3.13 and newer
Developers upgrading to Python 3.13 or 3.14 may hit a ModuleNotFoundError when importing pydub, because the standard-library audioop module was removed in 3.13 after being deprecated under PEP 594. The original pydub 0.25.1, last released in March 2021, still relies on that module, so the break is a compatibility gap rather than a missing system dependency like ffmpeg. The article suggests staying on Python 3.12, where pydub still works, or installing the audioop-lts shim, which restores the module on 3.13+. Those wanting additional bug fixes can switch to the community fork pydub-lts, which depends on audioop-lts automatically on newer Python versions. The original pydub contributors are credited throughout.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in