Python 3.7.0a4 x64 Windows throws SyntaxError on library import
See original GitHub issue File "scottbeebibot.py", line 1, in <module>
import discord
File "C:\Users\####\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\__init__.py", line 20, in <module>
from .client import Client, AppInfo, ChannelPermissions
File "C:\Users\####\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\client.py", line 38, in <module>
from .state import ConnectionState
File "C:\Users\####\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\state.py", line 36, in <module>
from . import utils, compat
File "C:\Users\####\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\compat.py", line 32
create_task = asyncio.async
^
SyntaxError: invalid syntax```
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Python Release Python 3.7.0a4
Python 3.7.0a4. Release Date: Jan. 9, 2018. This is an early developer preview of Python 3.7. Python 3.7 is still in development.
Read more >Changelog — Python 3.7.15 documentation
No longer import the re module if it is not needed. ... possible overflow in wrap_lenfunc() when sizeof(long) < sizeof(Py_ssize_t) (e.g., 64-bit Windows)....
Read more >Changelog — Python 3.11.1 documentation
gh-96587: Correctly raise SyntaxError on exception groups (PEP 654) on python ... now imports Windows-specific imports when msvcrt module is available, ...
Read more >Changelog — Python 3.8.14 documentation
bpo-43423: subprocess.communicate() no longer raises an IndexError when there is an empty stdout or stderr IO buffer during a timeout on Windows.
Read more >What's New In Python 3.11 — Python 3.11.1 documentation
PEP 654: Exception Groups and except*. New built-in features: PEP 678: Exceptions can be enriched with notes. New standard library ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, the async branch of dpy does not get updates anymore. There is a fix for the error on the repo but it has not been pushed to pypi
See also #1249 and #1401