1
votes

I followed a Youtube Tortual on how to make a music bot, and every piece of code made sense, there is just one problem. I thought I installed FFmpeg which is the thingy which makes the bot play audio I believe, the way I installed it was running the following command: pip install ffmpeg

So I waited it to finish up, and attempted to play music, and here is the error message

Traceback (most recent call last): File "C:\Users\Shiqi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\ext\commands\bot.py", line 902, in invoke await ctx.command.invoke(ctx) File "C:\Users\Shiqi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\ext\commands\core.py", line 864, in invoke await injected(*ctx.args, **ctx.kwargs) File "C:\Users\Shiqi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\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: DownloadError: ERROR: ffprobe/avprobe and ffmpeg/avconv not found. Please install one.

1

1 Answers

1
votes

Downloading ffmpeg on windows is weird. I struggled with this too when I was writing my first bot. Turns out that the pip install ffmpeg installs a python library called ffmpeg, rather than installing actual ffmpeg(the program your bot needs). Here's how you do it: Download a windows build of ffmpeg from gyan.dev (the reccomended way on the ffmpeg website) Once this is downloaded, extract the zip file. Rename the resulting folder to ffmpeg, and put it in your C:\ directory. Then add C:\ffmpeg\bin\ to your PATH. If you don't know how to add something to your PATH, let me know and I can explain.