KOOKIIEStudios / PalCON-Discord

A Python-based Discord bot for PalWorld server administration via RCON
MIT License
18 stars 3 forks source link

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

Closed ssw1279 closed 7 months ago

ssw1279 commented 7 months ago

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?

Bratah123 commented 7 months ago

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 commented 7 months ago

ok good work .

my work thx.

Bratah123 commented 7 months ago

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 commented 7 months ago

Found another problem. Can I comment here?

Bratah123 commented 7 months ago

Found another problem. Can I comment here?

I prefer if you open up another issue post!