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

ModuleNotFoundError: No module named 'discord' #1515

Closed
Arthurdw opened this issue Aug 16, 2018 · 10 comments
Closed

ModuleNotFoundError: No module named 'discord' #1515

Arthurdw opened this issue Aug 16, 2018 · 10 comments

Comments

@Arthurdw
Copy link

Hello, I've installed Discord.py successfully but when I try to run the "Import discord" its says ModuleNotFoundError: No module named 'discord'
When I go to Project Interpreter it says Discord.py but I'm still unable to run the command.
75e50eb3a79fd7dd4e5db80ecb81b512
IMG link: https://i.gyazo.com/75e50eb3a79fd7dd4e5db80ecb81b512.png

@SilicalNZ
Copy link
Contributor

async will not work on 3.7. See #1249 and #1401

@Harmon758
Copy link
Contributor

Are you importing it on the same Python version that you installed it on? i.e. Python 3.7
Also, Import discord with a capital I will raise a syntax error.
And as @SilicalNZ noted, the async branch will not work as is with your current setup on Python 3.7.

For further help, you should join either the official discord.py server or the Discord API server, as the README recommends.

@Arthurdw
Copy link
Author

@SilicalNZ @Harmon758
Do you suggest that I re-install Python from 3.7 to 3.5?

@sethwheway
Copy link
Contributor

@Arthurdw Why would you install 3.5? 3.6.6 is the latest version that works with dpy

@Arthurdw
Copy link
Author

@ItWasAllIntended The suggested version is 3.4 and 3.5.

I installed python 3.5 and it works now.
(had to redo the discord.py 2)
pythonversion

@sethwheway
Copy link
Contributor

@Arthurdw For a start 3.5.6 so if you're going to get 3.5 use that. And second of all why do you think 3.4 and .3.5 are recommended. The Readme states 3.4.3+. There is no reason not to use 3.6.6 and you would be losing features and performance not using it.

@Arthurdw
Copy link
Author

@ItWasAllIntended Thanks, I'm now running perfectly on 3.6.6!
I didn't use these code's tho for my bot.

@Arthurdw
Copy link
Author

Arthurdw commented Mar 19, 2019

*update for anyone who sees this.
Async will work till version 3.6.x.
If you want to have 3.7.x you will have to go the the rewrite libary, the rewrite libary has some other positive things too but it sacrifices the python 2.7.x support.

EDIT:
For anyone reading this, I recommend using the rewrite library as this library is currently being supported by the dev and community. Since support for python 2 will be dropped at the end of this year in general it makes sense to use the rewrite library instead of the async library.

@ghost
Copy link

ghost commented Jul 7, 2021

Im using Atom and it shows this error
EEEEEEEEEEEEEEEEEEEEEEEEEEEEE

@mesub7
Copy link
Contributor

mesub7 commented Jul 7, 2021

Please don't necrobump old, closed issues.

If you require support visit the discord server or go to the discussion page. I do use atom myself, so I would be willing to assist through the appropriate channels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants