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

error in compat.py #1774

Closed
TG-Techie opened this issue Dec 14, 2018 · 2 comments
Closed

error in compat.py #1774

TG-Techie opened this issue Dec 14, 2018 · 2 comments
Labels
duplicate This is a duplicate of another issue or PR.

Comments

@TG-Techie
Copy link

trying to install on a mac running python 3.7.1

error message:

Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 03:13:28)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license()" for more information.

import discord
Traceback (most recent call last):
File "<pyshell#1>", line 1, in
import discord
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/discord/init.py", line 20, in
from .client import Client, AppInfo, ChannelPermissions
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/discord/client.py", line 38, in
from .state import ConnectionState
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/discord/state.py", line 36, in
from . import utils, compat
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/discord/compat.py", line 32
create_task = asyncio.async
^
SyntaxError: invalid syntax

I used "python3 -m pip install discord" to install it

Is it just me?

@Harmon758
Copy link
Contributor

Duplicate of #1249 and #1401

@Faust-d
Copy link

Faust-d commented Dec 16, 2018

This is because you are using python 3.7.1 and the async version of discord.py dosn't support it. Follow the instructions to install the developmental version (Rewrite)
pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]
To install without voice, simply remove [voice], you will need git to do this.

@Rapptz Rapptz added the duplicate This is a duplicate of another issue or PR. label Dec 17, 2018
@Rapptz Rapptz closed this as completed Dec 17, 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

4 participants