-
Hi, do you mind is the problem here? I really don’t understand. What should I do? Some solutions? main
example
C:\Users\Dani\PycharmProjects\BotDiscord\venv\Scripts\python.exe -m Bot.main Process finished with exit code 1 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
This error: FileNotFoundError: [WinError 3] The system cannot find the path specified: ‘./cogs’ is telling you that python cannot find the folder “./cogs”. Here is the code which is looking for it:
In python, paths are relative to the current working directory. I.e. whatever folder your Bot.main is sitting in, you need to have a “cogs” folder in there. If you have absolutely no reason to have any cogs for your bot, then comment out the following lines:
and the script will stop seeking for a “cogs” folder. |
Beta Was this translation helpful? Give feedback.
-
I’m having the same issue. Couldn’t figure it out yet. Cogs folder is already inside where the main bot is but when I run the code it’s giving me an error saying " The system cannot find the path specified: ’ ./cogs’ |
Beta Was this translation helpful? Give feedback.
-
Do you have another way ? |
Beta Was this translation helpful? Give feedback.
-
Okay so I was facing the same issue, and it didn’t resolve while the directory name was still |
Beta Was this translation helpful? Give feedback.
This error:
FileNotFoundError: [WinError 3] The system cannot find the path specified: ‘./cogs’
is telling you that python cannot find the folder “./cogs”. Here is the code which is looking for it:
In python, paths are relative to the current working directory. I.e. whatever folder your Bot.main is sitting in, you need to have a “cogs” folder in there.
If you have absolutely no reason to have any cogs for your bot, then comment out the following lines:
and the script will stop seeking for a “cogs” folder.