Python 3.13 Compatibility: aifc and sunau modules removal affects librosa dependency
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Issue Description
Python 3.13 removes the aifc and sunau modules that librosa depends on through audioread. This causes the application to fail with errors like the one reported in issue #1 (ModuleNotFoundError: No module named 'audioop').
Related Issues
- Related to issue #1 where a user reported errors when running on Python 3.13.1
- Upstream issue in audioread: https://github.com/beetbox/audioread/issues/144
Current Status
The pyproject.toml file already includes a Python version constraint (requires-python = ">=3.11,<3.13") to prevent installation on Python 3.13+, but we should develop a more forward-compatible solution.
Proposed Strategies
-
Wait for upstream fix: Monitor the audioread/librosa projects for updates that address Python 3.13 compatibility.
-
Fork and patch: Create a temporary fork of audioread with patches to work around the missing modules until the upstream is fixed.
-
Alternative audio processing: Investigate alternative libraries that don't rely on the removed modules:
- pydub (already a dependency)
- soundfile (already a dependency)
- audioread with FFmpeg backend (may need configuration changes)
-
Conditional imports: Modify the code to conditionally use different audio processing libraries based on the Python version.
Next Steps
I suggest investigating option 3 first, as we already have pydub and soundfile as dependencies. We could potentially refactor our audio processing code to use these libraries directly instead of relying on librosa for the affected functionality.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The compatibility constraint is in pyproject.toml; start there, then review issue #1 and the linked audioread issue while checking the existing pydub and soundfile dependencies. Done is a chosen, implemented path that lets the application run on Python 3.13 without the removed-module failure, but the issue does not specify which strategy or tests confirm it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100