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

Errors calling discord.py in Win10 #1434

Closed
Tygah opened this issue Jul 18, 2018 · 3 comments
Closed

Errors calling discord.py in Win10 #1434

Tygah opened this issue Jul 18, 2018 · 3 comments
Labels
duplicate This is a duplicate of another issue or PR.

Comments

@Tygah
Copy link

Tygah commented Jul 18, 2018

Whenever I attempt to run the bot it prints these errors.

C:\Users\Administrator\AppData\Local\Programs\Python\Python37\python.exe "C:/Users/Administrator/Desktop/PyBot Test/bot.py"

Traceback (most recent call last):
File "C:/Users/Administrator/Desktop/PyBot Test/bot.py", line 1, in
import discord

File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\discord_init_.py", line 20, in
from .client import Client, AppInfo, ChannelPermissions

File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\client.py", line 38, in
from .state import ConnectionState

File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\state.py", line 36, in
from . import utils, compat

File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\compat.py", line 32
create_task = asyncio.async
^
SyntaxError: invalid syntax

@1ntegrale9
Copy link
Contributor

1ntegrale9 commented Jul 18, 2018

@Tygah
This is not caused by Win10.
This error occurs in Python 3.7.x.
Please execute with Python 3.6.x.

There are already some similar reports.
#1387 #1393 #1396 #1408 #1421

(Pardon my broken English. )

@Harmon758
Copy link
Contributor

Harmon758 commented Jul 18, 2018 via email

@magicgoose
Copy link

magicgoose commented Jul 19, 2018

There are already some similar reports.

perhaps it's a good hint to update the README, right now it says

Python 3.4.2+

which doesn't exclude Python 3.7 or later

@Rapptz Rapptz added the duplicate This is a duplicate of another issue or PR. label Aug 20, 2018
@Rapptz Rapptz closed this as completed Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This is a duplicate of another issue or PR.
Projects
None yet
Development

No branches or pull requests

5 participants