Skip to content

Add an audioop tag #3239

@axololly

Description

@axololly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions