描述问题 | Describe the question
RT,在解决了一大票的python包的问题后,我发现无法启动bot,是因为无法和其他同样使用nonebot框架的机器人一同使用吗?
补充内容 | Additional context
启动报错如下:
ATRI | 02-12 16:37:44 | ERROR uvicorn >> Traceback (most recent call last):
File "/data/data/com.termux/files/home/.suroot/.cache/pypoetry/virtualenvs/atri-IWL-4cR8-py3.8/lib/python3.8/site-packages/starlette/routing.py", line 671, in lifespan
async with self.lifespan_context(app):
File "/data/data/com.termux/files/home/.suroot/.cache/pypoetry/virtualenvs/atri-IWL-4cR8-py3.8/lib/python3.8/site-packages/starlette/routing.py", line 566, in __aenter__
await self._router.startup()
File "/data/data/com.termux/files/home/.suroot/.cache/pypoetry/virtualenvs/atri-IWL-4cR8-py3.8/lib/python3.8/site-packages/starlette/routing.py", line 650, in startup
handler()
File "/data/data/com.termux/files/home/ATRI/ATRI/plugins/console/driver/__init__.py", line 51, in init_driver
register_driver(driver()) # type: ignore
File "/data/data/com.termux/files/home/ATRI/ATRI/plugins/console/driver/__init__.py", line 19, in register_driver
app.add_middleware(
File "/data/data/com.termux/files/home/.suroot/.cache/pypoetry/virtualenvs/atri-IWL-4cR8-py3.8/lib/python3.8/site-packages/starlette/applications.py", line 135, in add_middleware
raise RuntimeError("Cannot add middleware after an application has started")
RuntimeError: Cannot add middleware after an application has started
描述问题 | Describe the question RT,在解决了一大票的python包的问题后,我发现无法启动bot,是因为无法和其他同样使用nonebot框架的机器人一同使用吗?
补充内容 | Additional context 启动报错如下: