Skip to content

pydub library fails with Python 3.13.1 #128901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pbme2 opened this issue Jan 16, 2025 · 2 comments
Closed

pydub library fails with Python 3.13.1 #128901

pbme2 opened this issue Jan 16, 2025 · 2 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@pbme2
Copy link

pbme2 commented Jan 16, 2025

Bug report

Bug description:

I've encountered an issue with the pydub library when using Python 3.13.1 on Windows. The library fails with a ModuleNotFoundError related to pyaudioop, which appears to be a custom module within pydub. This issue seems to be caused by the deprecation of certain standard library modules in Python 3.13.

from pydub import AudioSegment
audio = AudioSegment.from_mp3("example.mp3")
audio.export("example.wav", format="wav")


ModuleNotFoundError: No module named 'audioop'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  
 
ModuleNotFoundError: No module named 'pyaudioop'


### CPython versions tested on:

3.10

### Operating systems tested on:

Windows
@pbme2 pbme2 added the type-bug An unexpected behavior, bug, or error label Jan 16, 2025
@skirpichev
Copy link
Member

Sorry, this seems to be pydub's issue. Please report that to appropriate project: https://github.com/jiaaro/pydub/issues

ModuleNotFoundError: No module named 'pyaudioop'

According to jiaaro/pydub#725, it's bundled with the pydub replacement for audioop. Not sure why it not imported.

Reporting issue to the pydub, please be more verbose: include version you are using, provide full tracebacks, etc.

@skirpichev skirpichev closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2025
@Hemanthh-kisanmitra
Copy link

yeah , this is because , In python 3.13, the package audioop has been removed.

audioop — Manipulate raw audio data Deprecated since version 3.11, removed in version 3.13.

so if you want to convert it on any module regardless of python version, try ffmpeg(command line tool)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants