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

AttributeError: module 'discord' has no attribute 'AudioSink' #28

Open
LotEep opened this issue Jul 28, 2024 · 1 comment
Open

AttributeError: module 'discord' has no attribute 'AudioSink' #28

LotEep opened this issue Jul 28, 2024 · 1 comment

Comments

@LotEep
Copy link

LotEep commented Jul 28, 2024

On first installation, running main.py returns the following error:

Traceback (most recent call last): File "/home/bob/LLMChat/main.py", line 6, in <module> from client import DiscordClient File "/home/bob/LLMChat/llmchat/client.py", line 16, in <module> from voice_support import BufferAudioSink File "/home/bob/LLMChat/llmchat/voice_support.py", line 12, in <module> class BufferAudioSink(discord.AudioSink): ^^^^^^^^^^^^^^^^^ AttributeError: module 'discord' has no attribute 'AudioSink'

OS: Arch Linux
What I have done: I remember fixing this error before somehow, but I forgot what I did to fix it. After fixing this error I got Another error, and did something to try to fix it but it only caused this error to come back again.

This is that other error that shows up after I fixed this one:
Traceback (most recent call last): File "/home/bob/LLMChat/main.py", line 6, in <module> from client import DiscordClient File "/home/bob/LLMChat/llmchat/client.py", line 7, in <module> from discord import app_commands File "/home/bob/pythonvenv/lib/python3.12/site-packages/discord/app_commands/__init__.py", line 12, in <module> from .commands import * File "/home/bob/pythonvenv/lib/python3.12/site-packages/discord/app_commands/commands.py", line 51, in <module> from ..enums import SlashCommandOptionType, AppCommandType, ChannelType, Locale ImportError: cannot import name 'AppCommandType' from 'discord.enums' (/home/bob/pythonvenv/lib/python3.12/site-packages/discord/enums.py)

@LotEep LotEep changed the title ImportError: cannot import name 'AppCommandType' from 'discord.enums' AttributeError: module 'discord' has no attribute 'AudioSink' Jul 28, 2024
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

2 participants
@LotEep and others