Giter Club home page Giter Club logo

Comments (6)

RafaelSolVargas avatar RafaelSolVargas commented on June 4, 2024

Hi @ImASadBoy
I'm pretty sure this error has something to do with your installed packages.
Can you type the command pip list in the terminal and show us what was printed?
Probably the pycord version is out of date or has been replaced by another discord.py library.

On top of the .env file, you can create a file literally called ".env", it will be like a .txt file, and then put your information there like this:

BOT_TOKEN=Your_Own_Bot_Token
SPOTIFY_ID=Your_Own_Spotify_ID
SPOTIFY_SECRET=Your_Own_Spotify_Secret
BOT_PREFIX=Your_Wanted_Prefix_For_Vulkan

This is the project in my own computer, here you can see where the .env is located:
image

from vulkan.

ImASadBoy avatar ImASadBoy commented on June 4, 2024

Here is the result of pip list: https://pastebin.com/VY1iMaYU
Thanks for the help on .env

from vulkan.

RafaelSolVargas avatar RafaelSolVargas commented on June 4, 2024

Probably the discord.py 2.2.0 package is in conflict with the pycord 2.2.2.
Let's fix this in the best way, using virtual environments.
You can search in others places to get a better understanding but i'll try my best.
Virtual Environments is a separate environment from the others, it contains its own pip and python executable and installed packages, so it is good practice to create a specific virtual environment for each project you have on your machine.

To do that go to any folder and type the commands:

python3 -m venv ./Vulkan
cd ./Vulkan
git clone https://github.com/RafaelSolVargas/Vulkan.git
./Scripts/Activate.bat
cd ./Vulkan
pip install -r requirements.txt
python main.py

To avoid activating the virtual enviroment each time, if you are using VSCode you can change the Python Interpreter to the python executable that is in ./Vulkan/Scripts/python.exe and in that way every time you open a terminal in VSCode the virtual environment will be activate.

For this type Ctrl + Shift + P and then in Python: Select Interpreter and then you will see a window like this:
image

More information:
https://docs.python.org/pt-br/3/library/venv.html
https://code.visualstudio.com/docs/python/environments#:~:text=your%20User%20Settings.-,To%20do%20so%2C%20open%20the%20Command%20Palette%20(Ctrl%2BShift,Settings%2C%20with%20the%20appropriate%20interpreter.

Let me know if you could fix this issue!

from vulkan.

ImASadBoy avatar ImASadBoy commented on June 4, 2024

Hello again, I followed the steps above mentioned by you for the virtual environment, but it still doesn't work, I skipped the ./Scripts/Activate.bat since I got a "No such file or directory" error

from vulkan.

ImASadBoy avatar ImASadBoy commented on June 4, 2024

I fixed it by uninstalling discord.py, I'll move all my projects on pycord

from vulkan.

RafaelSolVargas avatar RafaelSolVargas commented on June 4, 2024

Hello again, I followed the steps above mentioned by you for the virtual environment, but it still doesn't work, I skipped the ./Scripts/Activate.bat since I got a "No such file or directory" error

As you can see in this photo:
image

I'm inside a folder called Vulkan and inside it a folder called Scripts, inside it there are some files, the first three start with activate.*, if you run any of them the environment will activate, you can for example access the Scripts folder and type :
./activate.

Not sure if you have those three files because I'm in Windows and in Linux it might be a little different but I'm pretty sure you have something like activate.

But uninstalling discord.py is also a possible solution :)
I'm closing this issue as resolved.
Thanks for your time, if you can, leave a star in this project.

from vulkan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.