-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Cant Import in Python 3.7.0b3 #1249
Comments
This library does not support 3.7. This error in particular is caused by Please use Python 3.4-3.6. |
when the heck did 3.7 get released |
Python 3.7.0 was released on 2018-06-27. This specific issue was already fixed with 1863a1c (#995). Note, the async branch fix is not on PyPI, and the rewrite branch itself is not on PyPI at all. |
Thanks for explaining this, how do I install the async branch to my machine? |
For future questions like this, you should join either the official discord.py server or the Discord API server for help, as the README recommends. |
Thanks a lot for not only providing the answer but also teaching me how to do figure stuff out on my own in the future! |
I installed the async branch version with
Do I need to switch to the |
@tkdberger I open a pull that should hopfully fix this, either way I fixed it with
edited to remove |
@tkdberger You're right, but this is a separate issue from the discord.py syntax error this issue is about. Your options are the following:
I don't recommend the first option as the async branch is not guaranteed to work properly with the latest versions of aiohttp and websockets. @GrayHatter Upgrading aiohttp and websockets without their dependencies shouldn't be necessary, and might actually cause issues within aiohttp itself, since its dependencies have changed as well. |
@Harmon758 I dropped the no-deps from my post, I went back and tested it and you're correct, it installs correctly without the Is the rewrite branch the new hotness? or is async still the more stable version? It's currently set as the default branch on GH, so I assume it's the one I should be using? |
The rewrite branch is hardly new. It's existed for over 1.5 years now. |
You can edit the lines by yourself: |
As explained, this fixes D.py for 3.7 but the dependencies are not guaranteed to work on 3.7, so don't expect your bot to be stable. We also cannot provide support for someone who was edited the library. |
Phython 3.7 version not working discord bot create |
Traceback (most recent call last): File "C:/Users/User/PycharmProjects/Python3.7/Challenge.py", line 1, in <module> import discord File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\__init__.py", line 20, in <module> from .client import Client, AppInfo, ChannelPermissions File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\client.py", line 38, in <module> from .state import ConnectionState File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\state.py", line 36, in <module> from . import utils, compat File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\compat.py", line 32 create_task = asyncio.async
python script:
import discord
The text was updated successfully, but these errors were encountered: