Skip to content
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

Add an audioop tag #3239

Open
axololly opened this issue Jan 18, 2025 · 0 comments
Open

Add an audioop tag #3239

axololly opened this issue Jan 18, 2025 · 0 comments

Comments

@axololly
Copy link

axololly commented Jan 18, 2025

Hi,

As per the advice of a few server members, I decided to put together a tag about the removal of audioop in versions after 3.12 (3.13 and onwards) that could be used as an informative, short-hand way to explain to people why they are getting a ModuleNotFoundError pertaining to this module.

---
embed:
    title: audioop in 3.13+
---

In newer, post-3.12, versions of Python, the library `audioop`, and other similar libraries, have been removed from the standard library. In bots made using `discord.py`, you will get a `ModuleNotFoundError` as it tries to locate a package it expects to already be there, but is not.

This can be solved through one of two methods:

1. downgrading to 3.12.x which _does_ have `audioop` (and others) in its standard library

2. installing the package `audioop-lts` (and others) using `pip` (`audioop` has long-term support)

Either way works, although you may run into further dependency issues like this if you use unsupported versions with packages online.

Thank you,

@axololly

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

No branches or pull requests

1 participant