Hey everyone, I’m totally new to making Discord bots and I’m hitting a wall. I started by following a YouTube tutorial, but ran into issues right away. The script couldn’t find the discord module even though I installed it with pip.
So I thought, okay, let’s start fresh. I made a new virtual environment, got a new bot token, and wrote a new script. But now I’m getting this weird SSL certificate error when I try to run it. The error message is super long and talks about ‘certificate verify failed’ and ‘unable to get local issuer certificate’.
I’m completely lost here. Does anyone know what might be causing this or how I can fix it? I’d really appreciate any help or advice on getting my bot up and running. Thanks!
I’ve encountered similar issues before. The SSL certificate error often stems from an outdated certifi package. Try running ‘pip install --upgrade certifi’ in your virtual environment. If that doesn’t resolve it, you might need to set the SSL_CERT_FILE environment variable to point to your system’s certificate bundle. As for the discord module problem, ensure you’re activating the correct virtual environment before running your script. It’s easy to miss that step when following tutorials.
hey grace, sounds like a real headache! for the SSL error, try updating ur python version. sometimes older versions have issues with certificates. also, double-check ur firewall isn’t blocking the bot’s connection. if that doesnt work, u might need to manually install the certificates. good luck!