日志/截图root@ecs-BWtJt:/sagiri-bot# python main.py Traceback (most recent call last): File "/BOT/sagiri-bot/main.py", line 8, in <module> from creart import create File "/root/miniconda3/lib/python3.9/site-packages/creart/__init__.py", line 102, in <module> _env_scan() File "/root/miniconda3/lib/python3.9/site-packages/creart/__init__.py", line 24, in _env_scan creator = entry.load() File "/root/miniconda3/lib/python3.9/importlib/metadata.py", line 86, in load module = import_module(match.group('module')) File "/root/miniconda3/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/__init__.py", line 8, in <module> from .app import Ariadne as Ariadne # noqa: F401 File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/app.py", line 35, in <module> from .connection import ConnectionInterface File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/connection/__init__.py", line 22, in <module> from ..event import MiraiEvent File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/event/__init__.py", line 5, in <module> from ..dispatcher import BaseDispatcher File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/dispatcher.py", line 12, in <module> from .message.chain import MessageChain File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/message/chain.py", line 25, in <module> from .element import ( File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/message/element.py", line 17, in <module> from ..connection.util import UploadMethod File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/connection/util.py", line 33, in <module> from graia.amnesia.builtins.starlette import StarletteRouter File "/root/miniconda3/lib/python3.9/site-packages/graia/amnesia/builtins/starlette.py", line 166, in <module> class StarletteRouter(AbstractRouter["StarletteService", str, StarletteRequestIO | StarletteWebsocketIO]): TypeError: unsupported operand type(s) for |: 'ABCMeta' and 'ABCMeta' root@ecs-BWtJt:/sagiri-bot#
问题 输入
python main.py
时报错如何复现 输入
python main.py
预期行为 不清楚
使用环境:
日志/截图
root@ecs-BWtJt:/sagiri-bot# python main.py Traceback (most recent call last): File "/BOT/sagiri-bot/main.py", line 8, in <module> from creart import create File "/root/miniconda3/lib/python3.9/site-packages/creart/__init__.py", line 102, in <module> _env_scan() File "/root/miniconda3/lib/python3.9/site-packages/creart/__init__.py", line 24, in _env_scan creator = entry.load() File "/root/miniconda3/lib/python3.9/importlib/metadata.py", line 86, in load module = import_module(match.group('module')) File "/root/miniconda3/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/__init__.py", line 8, in <module> from .app import Ariadne as Ariadne # noqa: F401 File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/app.py", line 35, in <module> from .connection import ConnectionInterface File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/connection/__init__.py", line 22, in <module> from ..event import MiraiEvent File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/event/__init__.py", line 5, in <module> from ..dispatcher import BaseDispatcher File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/dispatcher.py", line 12, in <module> from .message.chain import MessageChain File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/message/chain.py", line 25, in <module> from .element import ( File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/message/element.py", line 17, in <module> from ..connection.util import UploadMethod File "/root/miniconda3/lib/python3.9/site-packages/graia/ariadne/connection/util.py", line 33, in <module> from graia.amnesia.builtins.starlette import StarletteRouter File "/root/miniconda3/lib/python3.9/site-packages/graia/amnesia/builtins/starlette.py", line 166, in <module> class StarletteRouter(AbstractRouter["StarletteService", str, StarletteRequestIO | StarletteWebsocketIO]): TypeError: unsupported operand type(s) for |: 'ABCMeta' and 'ABCMeta' root@ecs-BWtJt:/sagiri-bot#