Replies: 3 comments 1 reply
-
python是3.7 |
Beta Was this translation helpful? Give feedback.
0 replies
-
我也遇到这个问题了,怎么解决的? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
报错内容:
Traceback (most recent call last):
File "D:/qqbot/qqbotpy/qqbot.py", line 2, in
from graia.application import GraiaMiraiApplication, Session
File "D:\python3\lib\site-packages\graia\application_init_.py", line 14, in
import graia.application.event.mirai # for init events
File "D:\python3\lib\site-packages\graia\application\event\mirai.py", line 1, in
from typing import Any, Dict, Literal, NoReturn, Optional
ImportError: cannot import name 'Literal' from 'typing' (D:\python3\lib\typing.py)
报错的语句是mirai.py文件中的:“from typing import Any, Dict, Literal, NoReturn, Optional”,Any, Dict, NoReturn, Optional都在typing.py文件中,都正常,Literal在typing.pyi文件中,import失败
应该怎么解决
Beta Was this translation helpful? Give feedback.
All reactions