lss233 / chatgpt-mirai-qq-bot

🚀 一键部署!真正的 AI 聊天机器人!支持ChatGPT、文心一言、讯飞星火、Bing、Bard、ChatGLM、POE,多账号,人设调教,虚拟女仆、图片渲染、语音发送 | 支持 QQ、Telegram、Discord、微信 等平台
GNU Affero General Public License v3.0
13.37k stars 1.57k forks source link

[BUG] requirements.txt给出的各种软件版本与实际使用对应不上,bot无法启动 #197

Closed minoriazure closed 1 year ago

minoriazure commented 1 year ago

提交 issue 前,请先确认:

运行环境:

表现
首先启动时报错

Traceback (most recent call last):
  File "/home/chatgpt-mirai-qq-bot/bot.py", line 7, in <module>
    from graia.ariadne.app import Ariadne
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/__init__.py", line 8, in <module>
    from .app import Ariadne as Ariadne  # noqa: F401
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/app.py", line 37, in <module>
    from .connection import ConnectionInterface
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/connection/__init__.py", line 11, in <module>
    from ..event import MiraiEvent
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/__init__.py", line 18, in <module>
    from . import message as message  # noqa: F401, E402
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/message.py", line 22, in <module>
    from .mirai import FriendEvent, GroupEvent
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 242, in <module>
    class BotJoinGroupEvent(GroupEvent, BotEvent):
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 262, in BotJoinGroupEvent
    class Dispatcher(AbstractDispatcher):
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 266, in Dispatcher
    async def catch(interface: DispatcherInterface["BotJoinGroupEvent"]):
TypeError: 'type' object is not subscriptable

这个错误是因为使用的 graia-ariadne 版本和 graia-application-mirai 版本不兼容导致的,可能是因为版本更新不及时或者版本兼容性问题。我继续使用pip3 install --upgrade graia-ariadne graia-application-mirai将这俩均更新到最新版,然而更新时报错

ERROR: graia-application-mirai 0.20.1 has requirement graia-broadcast<0.12.0,>=0.11.0, but you'll have graia-broadcast 0.19.1 which is incompatible.
Installing collected packages: graia-broadcast
  Attempting uninstall: graia-broadcast
    Found existing installation: graia-broadcast 0.11.4
    Uninstalling graia-broadcast-0.11.4:
      Successfully uninstalled graia-broadcast-0.11.4
Successfully installed graia-broadcast-0.19.1

错误提示表示安装的 graia-application-mirai 版本需要使用 graia-broadcast 的版本范围是 <0.12.0,>=0.11.0,但是你安装的 graia-broadcast 版本是 0.19.1,与前面的版本要求不兼容。我使用pip3 install graia-broadcast==0.11.0 graia-broadcast降级到符合要求的版本,然而在降级过程中

ERROR: graia-ariadne 0.11.0 has requirement graia-broadcast~=0.19, but you'll have graia-broadcast 0.11.0 which is incompatible.
Installing collected packages: graia-broadcast
  Attempting uninstall: graia-broadcast
    Found existing installation: graia-broadcast 0.19.1
    Uninstalling graia-broadcast-0.19.1:
      Successfully uninstalled graia-broadcast-0.19.1
Successfully installed graia-broadcast-0.11.0

于是打算升级graia-application-mirai来解决,但是

root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install graia-application-mirai==0.21.0
ERROR: Could not find a version that satisfies the requirement graia-application-mirai==0.21.0 (from versions: 0.0.1, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.1.0, 0.1.1, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.15, 0.1.16, 0.1.17, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.9.0, 0.9.1, 0.9.2, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5, 0.10.6, 0.10.7, 0.10.8, 0.10.9, 0.10.10, 0.10.11, 0.10.12, 0.10.13, 0.10.14, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2, 0.15.3, 0.15.4, 0.15.5, 0.16.0, 0.16.1, 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.18.0, 0.18.1, 0.18.2, 0.18.3, 0.18.4, 0.19.0, 0.19.1, 0.19.2, 0.20.0, 0.20.1)
ERROR: No matching distribution found for graia-application-mirai==0.21.0

但是已经升级了pip3到最新版,还是不行,而且之后还会出现"graia-application-mirai is out of support”的报错。 综上,graia-application-mirai 0.20.1graia-ariadne 0.11.0使用的graia-broadcast版本不一致,而当我升级或降级任意一个依赖程序,总是会连带将其他1个程序同时升级或降级,如此反复死循环,根本解决不了。 以下是完整的操作过程。


root@aliceray:~# pip3 install graia-application-mirai
Requirement already satisfied: graia-application-mirai in /usr/local/lib/python3.9/dist-packages (0.20.1)
Requirement already satisfied: regex<2021.0.0,>=2020.7.14 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (2020.11.13)
Requirement already satisfied: aiohttp<4.0.0,>=3.6.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (3.8.4)
Requirement already satisfied: yarl<2.0.0,>=1.4.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.8.2)
Requirement already satisfied: graia-broadcast<0.12.0,>=0.11.0 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (0.11.4)
Requirement already satisfied: pydantic<2.0.0,>=1.8.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.10.5)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (6.0.4)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.1)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (3.0.1)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (4.0.2)
Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (22.2.0)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.3)
Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0.0,>=1.4.2->graia-application-mirai) (2.8)
Requirement already satisfied: typing-extensions>=4.2.0 in /usr/local/lib/python3.9/dist-packages (from pydantic<2.0.0,>=1.8.2->graia-application-mirai) (4.5.0)
root@aliceray:~# pip3 install --upgrade graia-application-mirai
Requirement already up-to-date: graia-application-mirai in /usr/local/lib/python3.9/dist-packages (0.20.1)
Requirement already satisfied, skipping upgrade: pydantic<2.0.0,>=1.8.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.10.5)
Requirement already satisfied, skipping upgrade: graia-broadcast<0.12.0,>=0.11.0 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (0.11.4)
Requirement already satisfied, skipping upgrade: regex<2021.0.0,>=2020.7.14 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (2020.11.13)
Requirement already satisfied, skipping upgrade: aiohttp<4.0.0,>=3.6.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (3.8.4)
Requirement already satisfied, skipping upgrade: yarl<2.0.0,>=1.4.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.8.2)
Requirement already satisfied, skipping upgrade: typing-extensions>=4.2.0 in /usr/local/lib/python3.9/dist-packages (from pydantic<2.0.0,>=1.8.2->graia-application-mirai) (4.5.0)
Requirement already satisfied, skipping upgrade: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (4.0.2)
Requirement already satisfied, skipping upgrade: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (3.0.1)
Requirement already satisfied, skipping upgrade: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.3)
Requirement already satisfied, skipping upgrade: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (22.2.0)
Requirement already satisfied, skipping upgrade: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.1)
Requirement already satisfied, skipping upgrade: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (6.0.4)
Requirement already satisfied, skipping upgrade: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0.0,>=1.4.2->graia-application-mirai) (2.8)
root@aliceray:~# cd /home/chatgpt-mirai-qq-bot
root@aliceray:/home/chatgpt-mirai-qq-bot# python3 bot.py
Traceback (most recent call last):
  File "/home/chatgpt-mirai-qq-bot/bot.py", line 7, in <module>
    from graia.ariadne.app import Ariadne
ModuleNotFoundError: No module named 'graia.ariadne'
root@aliceray:/home/chatgpt-mirai-qq-bot# ^C
root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install graia-ariadne
Collecting graia-ariadne
  Using cached graia_ariadne-0.11.0-py3-none-any.whl (124 kB)
Requirement already satisfied: pydantic~=1.9 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (1.10.5)
Collecting graia-amnesia~=0.7.0
  Using cached graia_amnesia-0.7.1-py3-none-any.whl (35 kB)
Collecting launart<1.0.0,>=0.6.2
  Using cached launart-0.6.3-py3-none-any.whl (12 kB)
Collecting creart-graia<1.0.0,>=0.1.5
  Using cached creart_graia-0.1.5-py3-none-any.whl (4.5 kB)
Collecting packaging>=23.0
  Using cached packaging-23.0-py3-none-any.whl (42 kB)
Requirement already satisfied: typing-extensions<5.0,>=4.4 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (4.5.0)
Requirement already satisfied: aiohttp~=3.8 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (3.8.4)
Collecting graia-broadcast~=0.19
  Using cached graia_broadcast-0.19.1-py3-none-any.whl (19 kB)
Requirement already satisfied: yarl<2.0.0,>=1.7.2 in /usr/local/lib/python3.9/dist-packages (from graia-amnesia~=0.7.0->graia-ariadne) (1.8.2)
Collecting statv>=0.2.2
  Using cached statv-0.3.2-py3-none-any.whl (4.7 kB)
Collecting loguru<1.0.0,>=0.6.0
  Using cached loguru-0.6.0-py3-none-any.whl (58 kB)
Collecting creart>=0.1.0
  Using cached creart-0.2.2-py3-none-any.whl (3.7 kB)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne) (6.0.4)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne) (4.0.2)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne) (3.0.1)
Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne) (22.2.0)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne) (1.3.3)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne) (1.3.1)
Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0.0,>=1.7.2->graia-amnesia~=0.7.0->graia-ariadne) (2.8)
Collecting importlib-metadata>=3.6
  Using cached importlib_metadata-6.0.0-py3-none-any.whl (21 kB)
Collecting zipp>=0.5
  Using cached zipp-3.15.0-py3-none-any.whl (6.8 kB)
ERROR: graia-application-mirai 0.20.1 has requirement graia-broadcast<0.12.0,>=0.11.0, but you'll have graia-broadcast 0.19.1 which is incompatible.
Installing collected packages: loguru, statv, launart, graia-amnesia, zipp, importlib-metadata, creart, creart-graia, packaging, graia-broadcast, graia-ariadne
  Attempting uninstall: graia-broadcast
    Found existing installation: graia-broadcast 0.11.4
    Uninstalling graia-broadcast-0.11.4:
      Successfully uninstalled graia-broadcast-0.11.4
Successfully installed creart-0.2.2 creart-graia-0.1.5 graia-amnesia-0.7.1 graia-ariadne-0.11.0 graia-broadcast-0.19.1 importlib-metadata-6.0.0 launart-0.6.3 loguru-0.6.0 packaging-23.0 statv-0.3.2 zipp-3.15.0
root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install graia-application-mirai==0.21.0
ERROR: Could not find a version that satisfies the requirement graia-application-mirai==0.21.0 (from versions: 0.0.1, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.1.0, 0.1.1, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.15, 0.1.16, 0.1.17, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.9.0, 0.9.1, 0.9.2, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5, 0.10.6, 0.10.7, 0.10.8, 0.10.9, 0.10.10, 0.10.11, 0.10.12, 0.10.13, 0.10.14, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2, 0.15.3, 0.15.4, 0.15.5, 0.16.0, 0.16.1, 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.18.0, 0.18.1, 0.18.2, 0.18.3, 0.18.4, 0.19.0, 0.19.1, 0.19.2, 0.20.0, 0.20.1)
ERROR: No matching distribution found for graia-application-mirai==0.21.0
root@aliceray:/home/chatgpt-mirai-qq-bot# ^C
root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install graia-application-mirai
Requirement already satisfied: graia-application-mirai in /usr/local/lib/python3.9/dist-packages (0.20.1)
Requirement already satisfied: regex<2021.0.0,>=2020.7.14 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (2020.11.13)
Requirement already satisfied: pydantic<2.0.0,>=1.8.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.10.5)
Requirement already satisfied: yarl<2.0.0,>=1.4.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.8.2)
Collecting graia-broadcast<0.12.0,>=0.11.0
  Using cached graia_broadcast-0.11.4-py3-none-any.whl (20 kB)
Requirement already satisfied: aiohttp<4.0.0,>=3.6.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (3.8.4)
Requirement already satisfied: typing-extensions>=4.2.0 in /usr/local/lib/python3.9/dist-packages (from pydantic<2.0.0,>=1.8.2->graia-application-mirai) (4.5.0)
Requirement already satisfied: multidict>=4.0 in /usr/local/lib/python3.9/dist-packages (from yarl<2.0.0,>=1.4.2->graia-application-mirai) (6.0.4)
Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0.0,>=1.4.2->graia-application-mirai) (2.8)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (3.0.1)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.3)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (4.0.2)
Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (22.2.0)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.1)
ERROR: graia-ariadne 0.11.0 has requirement graia-broadcast~=0.19, but you'll have graia-broadcast 0.11.4 which is incompatible.
Installing collected packages: graia-broadcast
  Attempting uninstall: graia-broadcast
    Found existing installation: graia-broadcast 0.19.1
    Uninstalling graia-broadcast-0.19.1:
      Successfully uninstalled graia-broadcast-0.19.1
Successfully installed graia-broadcast-0.11.4
root@aliceray:/home/chatgpt-mirai-qq-bot# python3 bot.py
Traceback (most recent call last):
  File "/home/chatgpt-mirai-qq-bot/bot.py", line 7, in <module>
    from graia.ariadne.app import Ariadne
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/__init__.py", line 8, in <module>
    from .app import Ariadne as Ariadne  # noqa: F401
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/app.py", line 37, in <module>
    from .connection import ConnectionInterface
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/connection/__init__.py", line 11, in <module>
    from ..event import MiraiEvent
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/__init__.py", line 18, in <module>
    from . import message as message  # noqa: F401, E402
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/message.py", line 22, in <module>
    from .mirai import FriendEvent, GroupEvent
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 242, in <module>
    class BotJoinGroupEvent(GroupEvent, BotEvent):
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 262, in BotJoinGroupEvent
    class Dispatcher(AbstractDispatcher):
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 266, in Dispatcher
    async def catch(interface: DispatcherInterface["BotJoinGroupEvent"]):
TypeError: 'type' object is not subscriptable
root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install --upgrade graia-application-mirai graia-ariadne
Requirement already up-to-date: graia-application-mirai in /usr/local/lib/python3.9/dist-packages (0.20.1)
Requirement already up-to-date: graia-ariadne in /usr/local/lib/python3.9/dist-packages (0.11.0)
Requirement already satisfied, skipping upgrade: regex<2021.0.0,>=2020.7.14 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (2020.11.13)
Requirement already satisfied, skipping upgrade: aiohttp<4.0.0,>=3.6.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (3.8.4)
Requirement already satisfied, skipping upgrade: graia-broadcast<0.12.0,>=0.11.0 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (0.11.4)
Requirement already satisfied, skipping upgrade: pydantic<2.0.0,>=1.8.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.10.5)
Requirement already satisfied, skipping upgrade: yarl<2.0.0,>=1.4.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.8.2)
Requirement already satisfied, skipping upgrade: packaging>=23.0 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (23.0)
Requirement already satisfied, skipping upgrade: launart<1.0.0,>=0.6.2 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (0.6.3)
Requirement already satisfied, skipping upgrade: typing-extensions<5.0,>=4.4 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (4.5.0)
Requirement already satisfied, skipping upgrade: graia-amnesia~=0.7.0 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (0.7.1)
Requirement already satisfied, skipping upgrade: creart-graia<1.0.0,>=0.1.5 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (0.1.5)
Requirement already satisfied, skipping upgrade: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.3)
Requirement already satisfied, skipping upgrade: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (3.0.1)
Requirement already satisfied, skipping upgrade: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.1)
Requirement already satisfied, skipping upgrade: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (6.0.4)
Requirement already satisfied, skipping upgrade: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (22.2.0)
Requirement already satisfied, skipping upgrade: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (4.0.2)
Requirement already satisfied, skipping upgrade: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0.0,>=1.4.2->graia-application-mirai) (2.8)
Requirement already satisfied, skipping upgrade: loguru>=0.6.0 in /usr/local/lib/python3.9/dist-packages (from launart<1.0.0,>=0.6.2->graia-ariadne) (0.6.0)
Requirement already satisfied, skipping upgrade: statv>=0.2.2 in /usr/local/lib/python3.9/dist-packages (from launart<1.0.0,>=0.6.2->graia-ariadne) (0.3.2)
Requirement already satisfied, skipping upgrade: creart>=0.1.0 in /usr/local/lib/python3.9/dist-packages (from creart-graia<1.0.0,>=0.1.5->graia-ariadne) (0.2.2)
Requirement already satisfied, skipping upgrade: importlib-metadata>=3.6 in /usr/local/lib/python3.9/dist-packages (from creart>=0.1.0->creart-graia<1.0.0,>=0.1.5->graia-ariadne) (6.0.0)
Requirement already satisfied, skipping upgrade: zipp>=0.5 in /usr/local/lib/python3.9/dist-packages (from importlib-metadata>=3.6->creart>=0.1.0->creart-graia<1.0.0,>=0.1.5->graia-ariadne) (3.15.0)
root@aliceray:/home/chatgpt-mirai-qq-bot# python3 bot.py
Traceback (most recent call last):
  File "/home/chatgpt-mirai-qq-bot/bot.py", line 7, in <module>
    from graia.ariadne.app import Ariadne
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/__init__.py", line 8, in <module>
    from .app import Ariadne as Ariadne  # noqa: F401
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/app.py", line 37, in <module>
    from .connection import ConnectionInterface
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/connection/__init__.py", line 11, in <module>
    from ..event import MiraiEvent
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/__init__.py", line 18, in <module>
    from . import message as message  # noqa: F401, E402
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/message.py", line 22, in <module>
    from .mirai import FriendEvent, GroupEvent
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 242, in <module>
    class BotJoinGroupEvent(GroupEvent, BotEvent):
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 262, in BotJoinGroupEvent
    class Dispatcher(AbstractDispatcher):
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 266, in Dispatcher
    async def catch(interface: DispatcherInterface["BotJoinGroupEvent"]):
TypeError: 'type' object is not subscriptable
root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install --upgrade graiax
ERROR: Could not find a version that satisfies the requirement graiax (from versions: none)
ERROR: No matching distribution found for graiax
root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install --upgrade -r requirements.txt
Requirement already up-to-date: graia-ariadne>=0.10.3 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 1)) (0.11.0)
Collecting revChatGPT[unofficial]==2.3.5
  Using cached revChatGPT-2.3.5-py3-none-any.whl (23 kB)
Collecting toml~=0.10.2
  Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting Pillow>=9.3.0
  Downloading Pillow-9.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB)
     |████████████████████████████████| 3.3 MB 5.1 MB/s 
Collecting tinydb~=4.7.1
  Using cached tinydb-4.7.1-py3-none-any.whl (24 kB)
Requirement already up-to-date: loguru~=0.6.0 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 7)) (0.6.0)
Collecting asyncio~=3.4.3
  Using cached asyncio-3.4.3-py3-none-any.whl (101 kB)
Requirement already up-to-date: pydantic~=1.10.5 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 9)) (1.10.5)
Collecting markdown~=3.4.1
  Using cached Markdown-3.4.1-py3-none-any.whl (93 kB)
Collecting python-markdown-math~=0.8
  Using cached python_markdown_math-0.8-py3-none-any.whl (5.9 kB)
Collecting pygments~=2.10.0
  Using cached Pygments-2.10.0-py3-none-any.whl (1.0 MB)
Collecting imgkit~=1.2.2
  Using cached imgkit-1.2.3-py3-none-any.whl (10 kB)
Collecting graia-broadcast~=0.19
  Using cached graia_broadcast-0.19.1-py3-none-any.whl (19 kB)
Requirement already satisfied, skipping upgrade: graia-amnesia~=0.7.0 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (0.7.1)
Requirement already satisfied, skipping upgrade: launart<1.0.0,>=0.6.2 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (0.6.3)
Requirement already satisfied, skipping upgrade: creart-graia<1.0.0,>=0.1.5 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (0.1.5)
Requirement already satisfied, skipping upgrade: packaging>=23.0 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (23.0)
Requirement already satisfied, skipping upgrade: aiohttp~=3.8 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (3.8.4)
Requirement already satisfied, skipping upgrade: typing-extensions<5.0,>=4.4 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (4.5.0)
Requirement already satisfied, skipping upgrade: requests in /usr/lib/python3/dist-packages (from revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (2.22.0)
Collecting OpenAIAuth==0.3.2
  Using cached OpenAIAuth-0.3.2-py3-none-any.whl (4.3 kB)
Collecting undetected-chromedriver; extra == "unofficial"
  Using cached undetected-chromedriver-3.4.6.tar.gz (61 kB)
Collecting tls-client; extra == "unofficial"
  Using cached tls_client-0.1.8-py3-none-any.whl (34.9 MB)
Collecting selenium; extra == "unofficial"
  Using cached selenium-4.8.2-py3-none-any.whl (6.9 MB)
Requirement already satisfied, skipping upgrade: importlib-metadata>=4.4; python_version < "3.10" in /usr/local/lib/python3.9/dist-packages (from markdown~=3.4.1->-r requirements.txt (line 11)) (6.0.0)
Requirement already satisfied, skipping upgrade: six in /usr/lib/python3/dist-packages (from imgkit~=1.2.2->-r requirements.txt (line 14)) (1.14.0)
Requirement already satisfied, skipping upgrade: statv>=0.2.2 in /usr/local/lib/python3.9/dist-packages (from graia-amnesia~=0.7.0->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (0.3.2)
Requirement already satisfied, skipping upgrade: yarl<2.0.0,>=1.7.2 in /usr/local/lib/python3.9/dist-packages (from graia-amnesia~=0.7.0->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (1.8.2)
Requirement already satisfied, skipping upgrade: creart>=0.1.0 in /usr/local/lib/python3.9/dist-packages (from creart-graia<1.0.0,>=0.1.5->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (0.2.2)
Requirement already satisfied, skipping upgrade: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (4.0.2)
Requirement already satisfied, skipping upgrade: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (3.0.1)
Requirement already satisfied, skipping upgrade: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (6.0.4)
Requirement already satisfied, skipping upgrade: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (1.3.3)
Requirement already satisfied, skipping upgrade: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (1.3.1)
Requirement already satisfied, skipping upgrade: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (22.2.0)
Collecting websockets
  Downloading websockets-10.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (106 kB)
     |████████████████████████████████| 106 kB 26.3 MB/s 
Collecting trio~=0.17
  Using cached trio-0.22.0-py3-none-any.whl (384 kB)
Collecting certifi>=2021.10.8
  Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting urllib3[socks]~=1.26
  Using cached urllib3-1.26.14-py2.py3-none-any.whl (140 kB)
Collecting trio-websocket~=0.9
  Using cached trio_websocket-0.9.2-py3-none-any.whl (16 kB)
Requirement already satisfied, skipping upgrade: zipp>=0.5 in /usr/local/lib/python3.9/dist-packages (from importlib-metadata>=4.4; python_version < "3.10"->markdown~=3.4.1->-r requirements.txt (line 11)) (3.15.0)
Requirement already satisfied, skipping upgrade: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0.0,>=1.7.2->graia-amnesia~=0.7.0->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (2.8)
Collecting async-generator>=1.9
  Using cached async_generator-1.10-py3-none-any.whl (18 kB)
Collecting sniffio
  Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting exceptiongroup>=1.0.0rc9; python_version < "3.11"
  Using cached exceptiongroup-1.1.0-py3-none-any.whl (14 kB)
Collecting outcome
  Using cached outcome-1.2.0-py2.py3-none-any.whl (9.7 kB)
Collecting sortedcontainers
  Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Collecting PySocks!=1.5.7,<2.0,>=1.5.6; extra == "socks"
  Using cached PySocks-1.7.1-py3-none-any.whl (16 kB)
Collecting wsproto>=0.14
  Using cached wsproto-1.2.0-py3-none-any.whl (24 kB)
Collecting h11<1,>=0.9.0
  Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Building wheels for collected packages: undetected-chromedriver
  Building wheel for undetected-chromedriver (setup.py) ... done
  Created wheel for undetected-chromedriver: filename=undetected_chromedriver-3.4.6-py3-none-any.whl size=44479 sha256=0a4e066dcd2015e1325725d19aa77b7e6ac0e2045a48da0ccb442af05be34ca1
  Stored in directory: /root/.cache/pip/wheels/59/91/0c/e10481bbb66f4c4b09cc2aa1356320fafc24cc7be7f9563e73
Successfully built undetected-chromedriver
ERROR: graia-application-mirai 0.20.1 has requirement graia-broadcast<0.12.0,>=0.11.0, but you'll have graia-broadcast 0.19.1 which is incompatible.
Installing collected packages: OpenAIAuth, async-generator, sniffio, exceptiongroup, outcome, sortedcontainers, trio, certifi, PySocks, urllib3, h11, wsproto, trio-websocket, selenium, websockets, undetected-chromedriver, tls-client, revChatGPT, toml, Pillow, tinydb, asyncio, markdown, python-markdown-math, pygments, imgkit, graia-broadcast
  Attempting uninstall: certifi
    Found existing installation: certifi 2019.11.28
    Not uninstalling certifi at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'certifi'. No files were found to uninstall.
  Attempting uninstall: urllib3
    Found existing installation: urllib3 1.25.8
    Not uninstalling urllib3 at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'urllib3'. No files were found to uninstall.
  Attempting uninstall: graia-broadcast
    Found existing installation: graia-broadcast 0.11.4
    Uninstalling graia-broadcast-0.11.4:
      Successfully uninstalled graia-broadcast-0.11.4
Successfully installed OpenAIAuth-0.3.2 Pillow-9.4.0 PySocks-1.7.1 async-generator-1.10 asyncio-3.4.3 certifi-2022.12.7 exceptiongroup-1.1.0 graia-broadcast-0.19.1 h11-0.14.0 imgkit-1.2.3 markdown-3.4.1 outcome-1.2.0 pygments-2.10.0 python-markdown-math-0.8 revChatGPT-2.3.5 selenium-4.8.2 sniffio-1.3.0 sortedcontainers-2.4.0 tinydb-4.7.1 tls-client-0.1.8 toml-0.10.2 trio-0.22.0 trio-websocket-0.9.2 undetected-chromedriver-3.4.6 urllib3-1.26.14 websockets-10.4 wsproto-1.2.0
root@aliceray:/home/chatgpt-mirai-qq-bot# python3 bot.py
Traceback (most recent call last):
  File "/home/chatgpt-mirai-qq-bot/bot.py", line 7, in <module>
    from graia.ariadne.app import Ariadne
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/__init__.py", line 11, in <module>
    raise ImportError("`graia-application-mirai` is out of support.")
ImportError: `graia-application-mirai` is out of support.
root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install --upgrade graia-application-mirai
Requirement already up-to-date: graia-application-mirai in /usr/local/lib/python3.9/dist-packages (0.20.1)
Requirement already satisfied, skipping upgrade: regex<2021.0.0,>=2020.7.14 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (2020.11.13)
Requirement already satisfied, skipping upgrade: aiohttp<4.0.0,>=3.6.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (3.8.4)
Requirement already satisfied, skipping upgrade: yarl<2.0.0,>=1.4.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.8.2)
Requirement already satisfied, skipping upgrade: pydantic<2.0.0,>=1.8.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.10.5)
Collecting graia-broadcast<0.12.0,>=0.11.0
  Using cached graia_broadcast-0.11.4-py3-none-any.whl (20 kB)
Requirement already satisfied, skipping upgrade: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (3.0.1)
Requirement already satisfied, skipping upgrade: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (22.2.0)
Requirement already satisfied, skipping upgrade: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.3)
Requirement already satisfied, skipping upgrade: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (6.0.4)
Requirement already satisfied, skipping upgrade: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (4.0.2)
Requirement already satisfied, skipping upgrade: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.1)
Requirement already satisfied, skipping upgrade: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0.0,>=1.4.2->graia-application-mirai) (2.8)
Requirement already satisfied, skipping upgrade: typing-extensions>=4.2.0 in /usr/local/lib/python3.9/dist-packages (from pydantic<2.0.0,>=1.8.2->graia-application-mirai) (4.5.0)
ERROR: graia-ariadne 0.11.0 has requirement graia-broadcast~=0.19, but you'll have graia-broadcast 0.11.4 which is incompatible.
Installing collected packages: graia-broadcast
  Attempting uninstall: graia-broadcast
    Found existing installation: graia-broadcast 0.19.1
    Uninstalling graia-broadcast-0.19.1:
      Successfully uninstalled graia-broadcast-0.19.1
Successfully installed graia-broadcast-0.11.4
root@aliceray:/home/chatgpt-mirai-qq-bot# python3 bot.py
Traceback (most recent call last):
  File "/home/chatgpt-mirai-qq-bot/bot.py", line 7, in <module>
    from graia.ariadne.app import Ariadne
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/__init__.py", line 8, in <module>
    from .app import Ariadne as Ariadne  # noqa: F401
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/app.py", line 37, in <module>
    from .connection import ConnectionInterface
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/connection/__init__.py", line 11, in <module>
    from ..event import MiraiEvent
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/__init__.py", line 18, in <module>
    from . import message as message  # noqa: F401, E402
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/message.py", line 22, in <module>
    from .mirai import FriendEvent, GroupEvent
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 242, in <module>
    class BotJoinGroupEvent(GroupEvent, BotEvent):
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 262, in BotJoinGroupEvent
    class Dispatcher(AbstractDispatcher):
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 266, in Dispatcher
    async def catch(interface: DispatcherInterface["BotJoinGroupEvent"]):
TypeError: 'type' object is not subscriptable
root@aliceray:/home/chatgpt-mirai-qq-bot# ^C
root@aliceray:/home/chatgpt-mirai-qq-bot# root@aliceray:/home/chatgpt-mirai-qq-bot# python3 bot.py
-bash: root@aliceray:/home/chatgpt-mirai-qq-bot#: No such file or directory
root@aliceray:/home/chatgpt-mirai-qq-bot# Traceback (most recent call last):
-bash: syntax error near unexpected token `most'
root@aliceray:/home/chatgpt-mirai-qq-bot#   File "/home/chatgpt-mirai-qq-bot/bot.py", line 7, in <module>
-bash: syntax error near unexpected token `newline'
root@aliceray:/home/chatgpt-mirai-qq-bot#     from graia.ariadne.app import Ariadne
-bash: from: command not found
root@aliceray:/home/chatgpt-mirai-qq-bot#   File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/__init__.py", line 8, in <module>
-bash: syntax error near unexpected token `newline'
root@aliceray:/home/chatgpt-mirai-qq-bot#     from .app import Ariadne as Ariadne  # noqa: F401
-bash: from: command not found
root@aliceray:/home/chatgpt-mirai-qq-bot#   File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/app.py", line 37, in <module>
-bash: syntax error near unexpected token `newline'
root@aliceray:/home/chatgpt-mirai-qq-bot#     from .connection import ConnectionInterface
-bash: from: command not found
root@aliceray:/home/chatgpt-mirai-qq-bot#   File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/connection/__init__.py", line 11, in <module>
-bash: syntax error near unexpected token `newline'
root@aliceray:/home/chatgpt-mirai-qq-bot#     from ..event import MiraiEvent
-bash: from: command not found
root@aliceray:/home/chatgpt-mirai-qq-bot#   File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/__init__.py", line 18, in <module>
-bash: syntax error near unexpected token `newline'
root@aliceray:/home/chatgpt-mirai-qq-bot#     from . import message as message  # noqa: F401, E402
-bash: from: command not found
root@aliceray:/home/chatgpt-mirai-qq-bot#   File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/message.py", line 22, in <module>
-bash: syntax error near unexpected token `newline'
root@aliceray:/home/chatgpt-mirai-qq-bot#     from .mirai import FriendEvent, GroupEvent
-bash: from: command not found
root@aliceray:/home/chatgpt-mirai-qq-bot#   File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 242, in <module>
-bash: syntax error near unexpected token `newline'
root@aliceray:/home/chatgpt-mirai-qq-bot#     class BotJoinGroupEvent(GroupEvent, BotEvent):
-bash: syntax error near unexpected token `('
root@aliceray:/home/chatgpt-mirai-qq-bot#   File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 262, in BotJoinGroupEvent
-bash: File: command not found
root@aliceray:/home/chatgpt-mirai-qq-bot#     class Dispatcher(AbstractDispatcher):
-bash: syntax error near unexpected token `('
root@aliceray:/home/chatgpt-mirai-qq-bot#   File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 266, in Dispatcher
-bash: File: command not found
root@aliceray:/home/chatgpt-mirai-qq-bot#     async def catch(interface: DispatcherInterface["BotJoinGroupEvent"]):
-bash: syntax error near unexpected token `('
root@aliceray:/home/chatgpt-mirai-qq-bot# TypeError: 'type' object is not subscriptable
-bash: TypeError:: command not found
root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 uninstall graia-application-mirai graia-ariadne
Found existing installation: graia-application-mirai 0.20.1
Uninstalling graia-application-mirai-0.20.1:
  Would remove:
    /usr/local/lib/python3.9/dist-packages/graia/application/*
    /usr/local/lib/python3.9/dist-packages/graia_application_mirai-0.20.1.dist-info/*
Proceed (y/n)? y
  Successfully uninstalled graia-application-mirai-0.20.1
Found existing installation: graia-ariadne 0.11.0
Uninstalling graia-ariadne-0.11.0:
  Would remove:
    /usr/local/lib/python3.9/dist-packages/graia/ariadne/*
    /usr/local/lib/python3.9/dist-packages/graia_ariadne-0.11.0.dist-info/*
Proceed (y/n)? y
  Successfully uninstalled graia-ariadne-0.11.0
root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install graia-application-mirai graia-ariadne
Collecting graia-application-mirai
  Using cached graia_application_mirai-0.20.1-py3-none-any.whl (63 kB)
Collecting graia-ariadne
  Using cached graia_ariadne-0.11.0-py3-none-any.whl (124 kB)
Requirement already satisfied: pydantic<2.0.0,>=1.8.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.10.5)
Requirement already satisfied: aiohttp<4.0.0,>=3.6.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (3.8.4)
Requirement already satisfied: yarl<2.0.0,>=1.4.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.8.2)
Requirement already satisfied: regex<2021.0.0,>=2020.7.14 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (2020.11.13)
Requirement already satisfied: graia-broadcast<0.12.0,>=0.11.0 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (0.11.4)
Requirement already satisfied: creart-graia<1.0.0,>=0.1.5 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (0.1.5)
Requirement already satisfied: graia-amnesia~=0.7.0 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (0.7.1)
Requirement already satisfied: typing-extensions<5.0,>=4.4 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (4.5.0)
Requirement already satisfied: packaging>=23.0 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (23.0)
Requirement already satisfied: launart<1.0.0,>=0.6.2 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (0.6.3)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.1)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (3.0.1)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (6.0.4)
Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (22.2.0)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (4.0.2)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.3)
Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0.0,>=1.4.2->graia-application-mirai) (2.8)
Requirement already satisfied: creart>=0.1.0 in /usr/local/lib/python3.9/dist-packages (from creart-graia<1.0.0,>=0.1.5->graia-ariadne) (0.2.2)
Requirement already satisfied: statv>=0.2.2 in /usr/local/lib/python3.9/dist-packages (from graia-amnesia~=0.7.0->graia-ariadne) (0.3.2)
Requirement already satisfied: loguru<1.0.0,>=0.6.0 in /usr/local/lib/python3.9/dist-packages (from graia-amnesia~=0.7.0->graia-ariadne) (0.6.0)
Requirement already satisfied: importlib-metadata>=3.6 in /usr/local/lib/python3.9/dist-packages (from creart>=0.1.0->creart-graia<1.0.0,>=0.1.5->graia-ariadne) (6.0.0)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.9/dist-packages (from importlib-metadata>=3.6->creart>=0.1.0->creart-graia<1.0.0,>=0.1.5->graia-ariadne) (3.15.0)
ERROR: graia-ariadne 0.11.0 has requirement graia-broadcast~=0.19, but you'll have graia-broadcast 0.11.4 which is incompatible.
Installing collected packages: graia-application-mirai, graia-ariadne
Successfully installed graia-application-mirai-0.20.1 graia-ariadne-0.11.0
root@aliceray:/home/chatgpt-mirai-qq-bot# python3 bot.py
Traceback (most recent call last):
  File "/home/chatgpt-mirai-qq-bot/bot.py", line 7, in <module>
    from graia.ariadne.app import Ariadne
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/__init__.py", line 8, in <module>
    from .app import Ariadne as Ariadne  # noqa: F401
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/app.py", line 37, in <module>
    from .connection import ConnectionInterface
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/connection/__init__.py", line 11, in <module>
    from ..event import MiraiEvent
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/__init__.py", line 18, in <module>
    from . import message as message  # noqa: F401, E402
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/message.py", line 22, in <module>
    from .mirai import FriendEvent, GroupEvent
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 242, in <module>
    class BotJoinGroupEvent(GroupEvent, BotEvent):
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 262, in BotJoinGroupEvent
    class Dispatcher(AbstractDispatcher):
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 266, in Dispatcher
    async def catch(interface: DispatcherInterface["BotJoinGroupEvent"]):
TypeError: 'type' object is not subscriptable
root@aliceray:/home/chatgpt-mirai-qq-bot# 

root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install -r requirements.txt
Requirement already satisfied: graia-ariadne>=0.10.3 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 1)) (0.11.0)
Requirement already satisfied: revChatGPT[unofficial]==2.3.5 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 2)) (2.3.5)
Requirement already satisfied: toml~=0.10.2 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 3)) (0.10.2)
Requirement already satisfied: Pillow>=9.3.0 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 4)) (9.4.0)
Requirement already satisfied: tinydb~=4.7.1 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 5)) (4.7.1)
Requirement already satisfied: loguru~=0.6.0 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 7)) (0.6.0)
Requirement already satisfied: asyncio~=3.4.3 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 8)) (3.4.3)
Requirement already satisfied: pydantic~=1.10.5 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 9)) (1.10.5)
Requirement already satisfied: markdown~=3.4.1 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 11)) (3.4.1)
Requirement already satisfied: python-markdown-math~=0.8 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 12)) (0.8)
Requirement already satisfied: pygments~=2.10.0 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 13)) (2.10.0)
Requirement already satisfied: imgkit~=1.2.2 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 14)) (1.2.3)
Requirement already satisfied: creart-graia<1.0.0,>=0.1.5 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (0.1.5)
Requirement already satisfied: graia-amnesia~=0.7.0 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (0.7.1)
Requirement already satisfied: aiohttp~=3.8 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (3.8.4)
Requirement already satisfied: typing-extensions<5.0,>=4.4 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (4.5.0)
Requirement already satisfied: launart<1.0.0,>=0.6.2 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (0.6.3)
Collecting graia-broadcast~=0.19
  Using cached graia_broadcast-0.19.1-py3-none-any.whl (19 kB)
Requirement already satisfied: packaging>=23.0 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (23.0)
Requirement already satisfied: OpenAIAuth==0.3.2 in /usr/local/lib/python3.9/dist-packages (from revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (0.3.2)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (2.22.0)
Requirement already satisfied: undetected-chromedriver; extra == "unofficial" in /usr/local/lib/python3.9/dist-packages (from revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (3.4.6)
Requirement already satisfied: tls-client; extra == "unofficial" in /usr/local/lib/python3.9/dist-packages (from revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (0.1.8)
Requirement already satisfied: selenium; extra == "unofficial" in /usr/local/lib/python3.9/dist-packages (from revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (4.8.2)
Requirement already satisfied: importlib-metadata>=4.4; python_version < "3.10" in /usr/local/lib/python3.9/dist-packages (from markdown~=3.4.1->-r requirements.txt (line 11)) (6.0.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from imgkit~=1.2.2->-r requirements.txt (line 14)) (1.14.0)
Requirement already satisfied: creart>=0.1.0 in /usr/local/lib/python3.9/dist-packages (from creart-graia<1.0.0,>=0.1.5->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (0.2.2)
Requirement already satisfied: yarl<2.0.0,>=1.7.2 in /usr/local/lib/python3.9/dist-packages (from graia-amnesia~=0.7.0->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (1.8.2)
Requirement already satisfied: statv>=0.2.2 in /usr/local/lib/python3.9/dist-packages (from graia-amnesia~=0.7.0->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (0.3.2)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (1.3.1)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (1.3.3)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (6.0.4)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (3.0.1)
Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (22.2.0)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (4.0.2)
Requirement already satisfied: websockets in /usr/local/lib/python3.9/dist-packages (from undetected-chromedriver; extra == "unofficial"->revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (10.4)
Requirement already satisfied: trio~=0.17 in /usr/local/lib/python3.9/dist-packages (from selenium; extra == "unofficial"->revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (0.22.0)
Requirement already satisfied: trio-websocket~=0.9 in /usr/local/lib/python3.9/dist-packages (from selenium; extra == "unofficial"->revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (0.9.2)
Requirement already satisfied: urllib3[socks]~=1.26 in /usr/local/lib/python3.9/dist-packages (from selenium; extra == "unofficial"->revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (1.26.14)
Requirement already satisfied: certifi>=2021.10.8 in /usr/local/lib/python3.9/dist-packages (from selenium; extra == "unofficial"->revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (2022.12.7)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.9/dist-packages (from importlib-metadata>=4.4; python_version < "3.10"->markdown~=3.4.1->-r requirements.txt (line 11)) (3.15.0)
Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0.0,>=1.7.2->graia-amnesia~=0.7.0->graia-ariadne>=0.10.3->-r requirements.txt (line 1)) (2.8)
Requirement already satisfied: sortedcontainers in /usr/local/lib/python3.9/dist-packages (from trio~=0.17->selenium; extra == "unofficial"->revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (2.4.0)
Requirement already satisfied: exceptiongroup>=1.0.0rc9; python_version < "3.11" in /usr/local/lib/python3.9/dist-packages (from trio~=0.17->selenium; extra == "unofficial"->revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (1.1.0)
Requirement already satisfied: sniffio in /usr/local/lib/python3.9/dist-packages (from trio~=0.17->selenium; extra == "unofficial"->revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (1.3.0)
Requirement already satisfied: async-generator>=1.9 in /usr/local/lib/python3.9/dist-packages (from trio~=0.17->selenium; extra == "unofficial"->revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (1.10)
Requirement already satisfied: outcome in /usr/local/lib/python3.9/dist-packages (from trio~=0.17->selenium; extra == "unofficial"->revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (1.2.0)
Requirement already satisfied: wsproto>=0.14 in /usr/local/lib/python3.9/dist-packages (from trio-websocket~=0.9->selenium; extra == "unofficial"->revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (1.2.0)
Requirement already satisfied: PySocks!=1.5.7,<2.0,>=1.5.6; extra == "socks" in /usr/local/lib/python3.9/dist-packages (from urllib3[socks]~=1.26->selenium; extra == "unofficial"->revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (1.7.1)
Requirement already satisfied: h11<1,>=0.9.0 in /usr/local/lib/python3.9/dist-packages (from wsproto>=0.14->trio-websocket~=0.9->selenium; extra == "unofficial"->revChatGPT[unofficial]==2.3.5->-r requirements.txt (line 2)) (0.14.0)
ERROR: graia-application-mirai 0.20.1 has requirement graia-broadcast<0.12.0,>=0.11.0, but you'll have graia-broadcast 0.19.1 which is incompatible.
Installing collected packages: graia-broadcast
  Attempting uninstall: graia-broadcast
    Found existing installation: graia-broadcast 0.11.4
    Uninstalling graia-broadcast-0.11.4:
      Successfully uninstalled graia-broadcast-0.11.4
Successfully installed graia-broadcast-0.19.1
root@aliceray:/home/chatgpt-mirai-qq-bot# python3 bot.py
Traceback (most recent call last):
  File "/home/chatgpt-mirai-qq-bot/bot.py", line 7, in <module>
    from graia.ariadne.app import Ariadne
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/__init__.py", line 11, in <module>
    raise ImportError("`graia-application-mirai` is out of support.")
ImportError: `graia-application-mirai` is out of support.
root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install --upgrade graia-application-mirai
Requirement already up-to-date: graia-application-mirai in /usr/local/lib/python3.9/dist-packages (0.20.1)
Requirement already satisfied, skipping upgrade: aiohttp<4.0.0,>=3.6.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (3.8.4)
Collecting graia-broadcast<0.12.0,>=0.11.0
  Using cached graia_broadcast-0.11.4-py3-none-any.whl (20 kB)
Requirement already satisfied, skipping upgrade: yarl<2.0.0,>=1.4.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.8.2)
Requirement already satisfied, skipping upgrade: regex<2021.0.0,>=2020.7.14 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (2020.11.13)
Requirement already satisfied, skipping upgrade: pydantic<2.0.0,>=1.8.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.10.5)
Requirement already satisfied, skipping upgrade: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.3)
Requirement already satisfied, skipping upgrade: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (1.3.1)
Requirement already satisfied, skipping upgrade: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (6.0.4)
Requirement already satisfied, skipping upgrade: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (3.0.1)
Requirement already satisfied, skipping upgrade: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (4.0.2)
Requirement already satisfied, skipping upgrade: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp<4.0.0,>=3.6.2->graia-application-mirai) (22.2.0)
Requirement already satisfied, skipping upgrade: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0.0,>=1.4.2->graia-application-mirai) (2.8)
Requirement already satisfied, skipping upgrade: typing-extensions>=4.2.0 in /usr/local/lib/python3.9/dist-packages (from pydantic<2.0.0,>=1.8.2->graia-application-mirai) (4.5.0)
ERROR: graia-ariadne 0.11.0 has requirement graia-broadcast~=0.19, but you'll have graia-broadcast 0.11.4 which is incompatible.
Installing collected packages: graia-broadcast
  Attempting uninstall: graia-broadcast
    Found existing installation: graia-broadcast 0.19.1
    Uninstalling graia-broadcast-0.19.1:
      Successfully uninstalled graia-broadcast-0.19.1
Successfully installed graia-broadcast-0.11.4
root@aliceray:/home/chatgpt-mirai-qq-bot# python3 bot.py
Traceback (most recent call last):
  File "/home/chatgpt-mirai-qq-bot/bot.py", line 7, in <module>
    from graia.ariadne.app import Ariadne
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/__init__.py", line 8, in <module>
    from .app import Ariadne as Ariadne  # noqa: F401
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/app.py", line 37, in <module>
    from .connection import ConnectionInterface
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/connection/__init__.py", line 11, in <module>
    from ..event import MiraiEvent
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/__init__.py", line 18, in <module>
    from . import message as message  # noqa: F401, E402
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/message.py", line 22, in <module>
    from .mirai import FriendEvent, GroupEvent
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 242, in <module>
    class BotJoinGroupEvent(GroupEvent, BotEvent):
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 262, in BotJoinGroupEvent
    class Dispatcher(AbstractDispatcher):
  File "/usr/local/lib/python3.9/dist-packages/graia/ariadne/event/mirai.py", line 266, in Dispatcher
    async def catch(interface: DispatcherInterface["BotJoinGroupEvent"]):
TypeError: 'type' object is not subscriptable
root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install --upgrade graia-ariadne graia-application-mirai
Requirement already up-to-date: graia-ariadne in /usr/local/lib/python3.9/dist-packages (0.11.0)
Requirement already up-to-date: graia-application-mirai in /usr/local/lib/python3.9/dist-packages (0.20.1)
Requirement already satisfied, skipping upgrade: packaging>=23.0 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (23.0)
Requirement already satisfied, skipping upgrade: graia-amnesia~=0.7.0 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (0.7.1)
Collecting graia-broadcast~=0.19
  Using cached graia_broadcast-0.19.1-py3-none-any.whl (19 kB)
Requirement already satisfied, skipping upgrade: launart<1.0.0,>=0.6.2 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (0.6.3)
Requirement already satisfied, skipping upgrade: aiohttp~=3.8 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (3.8.4)
Requirement already satisfied, skipping upgrade: creart-graia<1.0.0,>=0.1.5 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (0.1.5)
Requirement already satisfied, skipping upgrade: typing-extensions<5.0,>=4.4 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (4.5.0)
Requirement already satisfied, skipping upgrade: pydantic~=1.9 in /usr/local/lib/python3.9/dist-packages (from graia-ariadne) (1.10.5)
Requirement already satisfied, skipping upgrade: yarl<2.0.0,>=1.4.2 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (1.8.2)
Requirement already satisfied, skipping upgrade: regex<2021.0.0,>=2020.7.14 in /usr/local/lib/python3.9/dist-packages (from graia-application-mirai) (2020.11.13)
Requirement already satisfied, skipping upgrade: statv>=0.2.2 in /usr/local/lib/python3.9/dist-packages (from graia-amnesia~=0.7.0->graia-ariadne) (0.3.2)
Requirement already satisfied, skipping upgrade: loguru<1.0.0,>=0.6.0 in /usr/local/lib/python3.9/dist-packages (from graia-amnesia~=0.7.0->graia-ariadne) (0.6.0)
Requirement already satisfied, skipping upgrade: aiosignal>=1.1.2 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne) (1.3.1)
Requirement already satisfied, skipping upgrade: frozenlist>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne) (1.3.3)
Requirement already satisfied, skipping upgrade: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne) (22.2.0)
Requirement already satisfied, skipping upgrade: multidict<7.0,>=4.5 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne) (6.0.4)
Requirement already satisfied, skipping upgrade: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne) (3.0.1)
Requirement already satisfied, skipping upgrade: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.9/dist-packages (from aiohttp~=3.8->graia-ariadne) (4.0.2)
Requirement already satisfied, skipping upgrade: creart>=0.1.0 in /usr/local/lib/python3.9/dist-packages (from creart-graia<1.0.0,>=0.1.5->graia-ariadne) (0.2.2)
Requirement already satisfied, skipping upgrade: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0.0,>=1.4.2->graia-application-mirai) (2.8)
Requirement already satisfied, skipping upgrade: importlib-metadata>=3.6 in /usr/local/lib/python3.9/dist-packages (from creart>=0.1.0->creart-graia<1.0.0,>=0.1.5->graia-ariadne) (6.0.0)
Requirement already satisfied, skipping upgrade: zipp>=0.5 in /usr/local/lib/python3.9/dist-packages (from importlib-metadata>=3.6->creart>=0.1.0->creart-graia<1.0.0,>=0.1.5->graia-ariadne) (3.15.0)
ERROR: graia-application-mirai 0.20.1 has requirement graia-broadcast<0.12.0,>=0.11.0, but you'll have graia-broadcast 0.19.1 which is incompatible.
Installing collected packages: graia-broadcast
  Attempting uninstall: graia-broadcast
    Found existing installation: graia-broadcast 0.11.4
    Uninstalling graia-broadcast-0.11.4:
      Successfully uninstalled graia-broadcast-0.11.4
Successfully installed graia-broadcast-0.19.1
root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install graia-broadcast==0.11.0
Collecting graia-broadcast==0.11.0
  Downloading graia_broadcast-0.11.0-py3-none-any.whl (19 kB)
ERROR: graia-ariadne 0.11.0 has requirement graia-broadcast~=0.19, but you'll have graia-broadcast 0.11.0 which is incompatible.
Installing collected packages: graia-broadcast
  Attempting uninstall: graia-broadcast
    Found existing installation: graia-broadcast 0.19.1
    Uninstalling graia-broadcast-0.19.1:
      Successfully uninstalled graia-broadcast-0.19.1
Successfully installed graia-broadcast-0.11.0
root@aliceray:/home/chatgpt-mirai-qq-bot# 
root@aliceray:/home/chatgpt-mirai-qq-bot# pip3 install --upgrade graia-broadcast
Collecting graia-broadcast
  Using cached graia_broadcast-0.19.1-py3-none-any.whl (19 kB)
ERROR: graia-application-mirai 0.20.1 has requirement graia-broadcast<0.12.0,>=0.11.0, but you'll have graia-broadcast 0.19.1 which is incompatible.
Installing collected packages: graia-broadcast
  Attempting uninstall: graia-broadcast
    Found existing installation: graia-broadcast 0.11.0
    Uninstalling graia-broadcast-0.11.0:
      Successfully uninstalled graia-broadcast-0.11.0
Successfully installed graia-broadcast-0.19.1
lss233 commented 1 year ago

requirements.txt给出的各种软件版本肯定是没有问题的,这估计是因为你自己的 Python 环境被配乱了。

你可以用 Docker 或者 virtualenv 来隔离环境。

minoriazure commented 1 year ago

可以问一下你使用的是什么系统吗?

NierCaraLynn commented 1 year ago

我也遇到了同样的问题 重置了 Python 环境再跑了一遍 requirements.txt 就解决了。

minoriazure commented 1 year ago

我也遇到了同样的问题 重置了 Python 环境再跑了一遍 requirements.txt 就解决了。

请问你使用的是什么系统?方便的话重置Python环境具体代码能发一下吗?我自己折腾了半天Python一直弄不好。

NierCaraLynn commented 1 year ago

我也遇到了同样的问题 重置了 Python 环境再跑了一遍 requirements.txt 就解决了。

请问你使用的是什么系统?方便的话重置Python环境具体代码能发一下吗?我自己折腾了半天Python一直弄不好。

咱是win,其实就是卸载重装了Python且把安装目录清理干净了(

lss233 commented 1 year ago

在未来的版本中我会将依赖于部署包一起发布。