Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ModuleNotFoundError: No module named 'discord' #3

Closed
ssw1279 opened this issue Feb 1, 2024 · 5 comments
Closed

[BUG] ModuleNotFoundError: No module named 'discord' #3

ssw1279 opened this issue Feb 1, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@ssw1279
Copy link

ssw1279 commented Feb 1, 2024

You have selected A: Virtual Python Environment
Traceback (most recent call last):
File "C:\Users\MY COM\PycharmProjects\PalCON-Discord\main.py", line 3, in
import discord
ModuleNotFoundError: No module named 'discord'

The Python version is 3.11
i run start.bat, get the same error as above.
Is it a problem if I use a language other than English for config?

@ssw1279 ssw1279 added the bug Something isn't working label Feb 1, 2024
@ssw1279 ssw1279 changed the title [BUG] [BUG] ModuleNotFoundError: No module named 'discord' Feb 1, 2024
@Bratah123
Copy link
Collaborator

Bratah123 commented Feb 1, 2024

Seems like your venv file did not properly download?

Can you try the command : venv\scripts\activate.bat in the root directory of the project (This enters you into the python virtual environment which I assume was generated when you ran start.bat)

And then enter pip install -r requirements.txt and let me know if the bot works after that.

Your project should have a venv created like this:
image

@ssw1279
Copy link
Author

ssw1279 commented Feb 1, 2024

ok good work .

my work thx.

@Bratah123
Copy link
Collaborator

ok good work .

my work thx.

I will take it that you managed to fix the problem.
If you could document what you did here it would be great for future users, in the mean time I will close this issue thanks!

@ssw1279
Copy link
Author

ssw1279 commented Feb 1, 2024

Found another problem. Can I comment here?

@Bratah123
Copy link
Collaborator

Found another problem. Can I comment here?

I prefer if you open up another issue post!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants