Fix import instead of using audioop-lts
Description:
The audioop
module has been removed in Python 3.13 and the Pydub
developers has introduced pyaudioop
to replace it. But the problem is that the developers doesn't use relative imports that's why it fails to import.
The maintainers choose to add python-audioop-lts
package but I suggest just to fix the import bu using: sed -i 's/import pyaudioop as audioop/from . import pyaudioop as audioop/g' pydub/utils.py
in prepare
function than remove python-audioop-lts
from dependencies.
I have test this with several packages that depends on Pydub
and it works well.
Additional info:
- package version(s): 0.25.1
- config and/or log files:
- link to upstream bug report, if any: https://github.com/jiaaro/pydub/pull/841
Steps to reproduce:
- Install the package
- Remove
audioop-lts
package - Execute
from pydub import AudioSegment
for example in Python.