Skip to content

fix: declare audioop-lts for Python 3.13 and newer - #110

Open
sam0rr wants to merge 1 commit into
clefincode:developfrom
nysma-ca:fix_audioop_dependency
Open

sam0rr wants to merge 1 commit into
clefincode:developfrom
nysma-ca:fix_audioop_dependency

Conversation

@sam0rr

@sam0rr sam0rr commented Sep 14, 2026

Copy link
Copy Markdown

Python 3.13 removed the standard-library audioop module, but pydub 0.25.1 still imports it. On a clean Python 3.13 or 3.14 installation, importing pydub fails and prevents Chat's audio-processing code from loading.

Add audioop-lts for Python 3.13 and newer. Older Python versions continue using the standard-library module.

I reproduced the import failure with the current requirements on Python 3.13.5 and 3.14.7. After installing the app with this change, both versions pass audio generation, gain adjustment, sample-rate/channel conversion, a WAV round trip, and MP3 export through FFmpeg. The same checks pass on Python 3.12.14, where audioop-lts is correctly left uninstalled.

@sam0rr
sam0rr force-pushed the fix_audioop_dependency branch from ff2494a to 29efa43 Compare September 14, 2026 01:07
@sam0rr
sam0rr force-pushed the fix_audioop_dependency branch from 29efa43 to 14bf31d Compare September 14, 2026 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant