Comments (6)
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:
from vulkan.
Here is the result of pip list
: https://pastebin.com/VY1iMaYU
Thanks for the help on .env
from vulkan.
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:
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.
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.
I fixed it by uninstalling discord.py, I'll move all my projects on pycord
from vulkan.
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
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)
- Bot fails to play certain Youtube videos HOT 2
- Bot does not like mobile Youtube links (m.youtube.com) HOT 1
- Bug
- Add autoplay? HOT 3
- [Enhancement]: Docker comtainerization HOT 2
- Bug HOT 2
- Bot goes to "sleeping" state immediately after starting playback HOT 3
- Bug HOT 1
- Googlevideo returning 403 forbiddenBug HOT 4
- Bug ImportError: cannot import name 'SlashCommandOptionType' from 'discord.enums' HOT 4
- Bot searches for YT Song instead of actually playing the one on Spotify. HOT 2
- bot not showing music commands HOT 2
- When I try to queue a Spotify playlist it doesn't work... HOT 3
- [Enhancement] Add custom command HOT 3
- [Suggestion] Soundcloud and Local File support HOT 2
- [Suggestion] Make the bot as administrator HOT 2
- Improper token has been passed HOT 4
- Bot won't play Deezer links gotten from the Share button HOT 5
- "This interaction failed" - Permission Issue
- Bug URL could not be processed with spotify link
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulkan.