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

err #1

Closed
PlexPt opened this issue Dec 6, 2022 · 9 comments
Closed

err #1

PlexPt opened this issue Dec 6, 2022 · 9 comments

Comments

@PlexPt
Copy link
Contributor

PlexPt commented Dec 6, 2022

File "bot.py", line 17
async def to_thread(func, /, *args, **kwargs):
^
SyntaxError: invalid syntax

@lss233
Copy link
Owner

lss233 commented Dec 6, 2022

请检查一下你的 Python 版本是不是 >= 3.9

@PlexPt
Copy link
Contributor Author

PlexPt commented Dec 6, 2022 via email

@PlexPt
Copy link
Contributor Author

PlexPt commented Dec 6, 2022

可以做个docker镜像

@lss233
Copy link
Owner

lss233 commented Dec 6, 2022

好主意。您来个 PR?

@PlexPt
Copy link
Contributor Author

PlexPt commented Dec 6, 2022

你的python版本是

@lss233
Copy link
Owner

lss233 commented Dec 6, 2022

~ python3.9 -V
Python 3.9.5

@PlexPt
Copy link
Contributor Author

PlexPt commented Dec 6, 2022

让它教你
image

@PlexPt
Copy link
Contributor Author

PlexPt commented Dec 6, 2022

#2 #3

@lss233
Copy link
Owner

lss233 commented Dec 6, 2022

非常感谢!

@lss233 lss233 closed this as completed Dec 6, 2022
lss233 pushed a commit that referenced this issue Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants