A
A
Andrey Astakhov2022-04-15 20:53:24
Python
Andrey Astakhov, 2022-04-15 20:53:24

The bot enters the voice channel but during the processing of the Play request at one of the stages it writes an error?

Error:

The code is shown below.

6259b100a9758554116259.png

Here is the Error:
"C:\Users\000\PycharmProjects\Discord bot\venv\Scripts\python.exe" "C:/Users/000/PycharmProjects/Discord bot/main.py"
[download] Downloading playlist: universal
[youtube :search] query "universal": Downloading page 1
[youtube:search] playlist universal: Downloading 1 videos
[download] Downloading video 1 of 1
[youtube] bNJW113tbKk: Downloading webpage
[youtube] Downloading just video bNJW113tbKk because of --no- playlist
Exception ignored in:
Traceback (most recent call last):
File "C:\Users\000\PycharmProjects\Discord bot\venv\lib\site-packages\discord\player.py", line 103, in __del__
self.cleanup ()
File "C:\Users\000\PycharmProjects\Discord bot\venv\lib\site-packages\discord\player.py", line 154, in cleanup
proc = self._process
AttributeError: 'FFmpegPCMAudio' object has no attribute '_process '
Ignoring exception in command play:
Traceback (most recent call last):
File "C:\Users\000\PycharmProjects\Discord bot\venv\lib\site-packages\discord\ext\commands\core.py", line 85 , in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\000\PycharmProjects\Discord bot\main.py", line 25, in play
vc.play(discord.FFmpegPCMAudio(executable=" FFmpeg//ffmpeg.exe", source=link, **FFMPEG_OPTIONS))
TypeError: FFmpegPCMAudio.__init__() got an unexpected keyword argument 'before.options'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\000\PycharmProjects\Discord bot\venv\lib\site-packages\discord\ext\commands\bot. py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\000\PycharmProjects\Discord bot\venv\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\000\PycharmProjects\Discord bot\venv\lib\site-packages\discord\ext\commands\core.py ", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: FFmpegPCMAudio.__init__() got an unexpected keyword argument 'before.options'
[download] Finished downloading playlist: universal

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Georgy Kharitonov, 2022-04-15
@NoGrisha

As I understand it, FFMPEG is not worth it. Google how to install it. There are many such tutorials on the Internet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question