DEV Community

Jason Smith
Jason Smith

Posted on

How to fix "Module 'audioop' Missing"?

I am building a Discord bot using Python (discord.py) and encountered an error stating "Module 'audioop' Missing." The error traceback is as follows:

Traceback (most recent call last):
  File "F:\Codes\Python\discordbot\Discord\main.py", line 1, in <module>
    import discord
  File "F:\Codes\Python\discordbot\Lib\site-packages\discord\__init__.py", line 23, in <module>    
    from .client import *
  File "F:\Codes\Python\discordbot\Lib\site-packages\discord\client.py", line 51, in <module>      
    from .user import User, ClientUser
  File "F:\Codes\Python\discordbot\Lib\site-packages\discord\user.py", line 29, in <module>        
    import discord.abc
  File "F:\Codes\Python\discordbot\Lib\site-packages\discord\abc.py", line 59, in <module>
    from .voice_client import VoiceClient, VoiceProtocol
  File "F:\Codes\Python\discordbot\Lib\site-packages\discord\voice_client.py", line 53, in <module>
    from .player import AudioPlayer, AudioSource
  File "F:\Codes\Python\discordbot\Lib\site-packages\discord\player.py", line 28, in <module>
    import audioop
ModuleNotFoundError: No module named 'audioop'
Enter fullscreen mode Exit fullscreen mode

I resolved this issue by executing the command pip install audioop-lts. However, I would like to understand the origin of this error and its implications in greater detail.

Top comments (2)

Collapse
 
ichikawa0822 profile image
Ichikawa Hiroshi

Thanks for sharing

Collapse
 
robert_angelo_484 profile image
Robert Angelo

Good solution for fixing module error