maxcutlyp / YoutubeBot

A self-hosted Discord bot for playing YouTube videos
47 stars 26 forks source link

Errors after dowloads #6

Open imajail opened 1 year ago

imajail commented 1 year ago

Hi, I set up the bot, and thought I got everything right. Its connecting just fine with my bot. Problem is when I want to start playing some music, it starts downloading and i get this error (attachments). It seems to still not be executable (regarding to this post: https://stackoverflow.com/questions/25651990/oserror-winerror-193-1-is-not-a-valid-win32-application). Since you cannot chmod in windows i tried to make it an exe with auto-py-to-exe to run. But still its not executable. I never did python before otherwise I would tried to fix it myself. Bild_2023-02-08_130532002

Riyzxu commented 1 year ago

On windows facing the same issue!

sharky08 commented 1 year ago

Hey! I had the same error, I am on windows 10 and a little warning on the code showed me that I had to install FFmpeg https://www.thewindowsclub.com/how-to-install-ffmpeg-on-windows-10 and after I installed it the bot started working, maybe this can help you! image

maxcutlyp commented 1 year ago

Hey all - @sharky08 is right, make sure you've installed ffmpeg and make sure it's in your PATH. From your log screenshot: "ClientException: ffmpeg was not found."

I'm honestly surprised it runs at all on Windows - I developed this on Linux with the expectation of it only ever running on a Linux machine. The restart script is in Bash, so you'd have to change it up a bit to turn it into a Batch or Powershell script instead.

Btw, to run the python script on Windows, just run it with python explicitly - e.g. python youtubebot.py. The executable might be python.exe or something else like that, and you'll also obviously want to make sure you have python installed and in your PATH.

I don't really have a good way to test stuff on Windows, so I'm open to a PR with some sort of windows.md with steps on getting it set up on Windows and where that process differs from the one in the readme.