question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
sethwhewaycommented, Jul 16, 2018

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

0reactions
Harmon758commented, Jul 17, 2018

See also #1249 and #1401

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found