canxin121 / Spark-GPT

71 stars 5 forks source link

安装Spark-GPT后nonebot启动失败 #42

Open XLCX0429 opened 8 months ago

XLCX0429 commented 8 months ago

不管是已有项目还是新建项目,执行nb plugin install spark_gpt后完成安装,然后运行时会显示[ERROR] nonebot | Failed to import "nonebot_plugin_spark_gpt"详情如下:

12-19 14:40:34 [SUCCESS] nonebot | NoneBot is initializing...
12-19 14:40:34 [INFO] nonebot | Current Env: dev
12-19 14:40:34 [DEBUG] nonebot | Loaded Config: {'driver': '~fastapi', 'host': IPv4Address('127.0.0.1'), 'port': 8080, 'log_level': 'DEBUG', 'api_timeout': 30.0, 'superusers': set(), 'nickname': set(), 'command_start': {'/'}, 'command_sep': {'.'}, 'session_expire_timeout': datetime.timedelta(seconds=120), 'environment': 'dev'}
12-19 14:40:34 [DEBUG] nonebot | Succeeded to load adapter "OneBot V11"
D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\trio\_core\_multierror.py:511: RuntimeWarning: You seem to already have a custom sys.excepthook handler installed. I'll skip installing Trio's custom handler, but this means MultiErrors will not show full tracebacks.
  warnings.warn(
12-19 14:40:35 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_htmlrender"
12-19 14:40:35 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_templates"
12-19 14:40:35 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_web_config"
INFO:     Started server process [17240]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://127.0.0.1:8666 (Press CTRL+C to quit)
12-19 14:40:35 [SUCCESS] nonebot | Succeeded to load plugin "uniseg" from "nonebot_plugin_alconna.uniseg"
12-19 14:40:35 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_alconna"
12-19 14:40:35 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_localstore"
12-19 14:40:35 [DEBUG] nonebot_plugin_datastore | 创建数据库文件夹: C:\Users\ChenXi\AppData\Local\nonebot2
12-19 14:40:35 [DEBUG] nonebot_plugin_datastore | 数据库连接地址: sqlite+aiosqlite:///C:\Users\ChenXi\AppData\Local\nonebot2\data.db
12-19 14:40:35 [DEBUG] nonebot_plugin_datastore | 数据库引擎参数: {'echo': False, 'echo_pool': False}
12-19 14:40:36 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_datastore"
12-19 14:40:36 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_apscheduler"
12-19 14:40:36 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_bind"
12-19 14:40:37 [ERROR] nonebot | Failed to import "nonebot_plugin_spark_gpt"
Traceback (most recent call last):
  File "<string>", line 12, in <module>
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot\plugin\load.py", line 130, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot\plugin\load.py", line 64, in load_all_plugins
    return manager.load_all_plugins()
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot\plugin\manager.py", line 176, in load_all_plugins
    return set(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot\plugin\manager.py", line 177, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot\plugin\manager.py", line 142, in load_plugin
    module = importlib.import_module(name)
  File "C:\Users\ChenXi\AppData\Local\Programs\Python\Python39\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot\plugin\manager.py", line 242, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_spark_gpt\__init__.py", line 10, in <module>
    from . import nonebot  # noqa: F401, E402
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_spark_gpt\nonebot\__init__.py", line 5, in <module>
    from . import (
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_spark_gpt\nonebot\chat_consumer.py", line 5, in <module>
    from ..type_store import common_config
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_spark_gpt\type_store\__init__.py", line 1, in <module>
    from .user_chat import users, public_user  # noqa: F401
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_spark_gpt\type_store\user_chat.py", line 10, in <module>
    from ..chatbots import chatbots
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_spark_gpt\chatbots\__init__.py", line 14, in <module>
    from . import  ChatGPTApiBot,ChatGPTWebBot,BingBot,ClaudeAiBot,SlackClaudeBot  # noqa: E402, F401
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_spark_gpt\chatbots\ChatGPTApiBot.py", line 9, in <module>
    from .BaseChatBot import BaseChatBot, Permission
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_spark_gpt\chatbots\BaseChatBot.py", line 11, in <module>
    from ..type_store.msgs_link import msg_links
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_spark_gpt\type_store\msgs_link.py", line 8, in <module>
    class MsgLinks(BaseModel):
  File "pydantic\main.py", line 178, in pydantic.main.ModelMetaclass.__new__
    annotations = resolve_annotations(namespace.get('__annotations__', {}), namespace.get('__module__', None))
  File "pydantic\typing.py", line 400, in pydantic.typing.resolve_annotations
    value = _eval_type(value, base_globals, None)
  File "C:\Users\ChenXi\AppData\Local\Programs\Python\Python39\lib\typing.py", line 292, in _eval_type
    return t._evaluate(globalns, localns, recursive_guard)
  File "C:\Users\ChenXi\AppData\Local\Programs\Python\Python39\lib\typing.py", line 554, in _evaluate
    eval(self.__forward_code__, globalns, localns),
  File "<string>", line 1, in <module>
TypeError: unsupported operand type(s) for |: 'type' and 'type'
12-19 14:40:37 [SUCCESS] nonebot | Running NoneBot...
12-19 14:40:37 [DEBUG] nonebot | Loaded adapters: OneBot V11
12-19 14:40:37 [INFO] uvicorn | Started server process [17240]
INFO:     Started server process [17240]
12-19 14:40:37 [INFO] uvicorn | Waiting for application startup.
INFO:     Waiting for application startup.
12-19 14:40:37 [INFO] nonebot_plugin_htmlrender | 使用 chromium 启动
12-19 14:40:38 [INFO] nonebot_plugin_htmlrender | Browser Started.
12-19 14:40:38 [DEBUG] nonebot_plugin_datastore | 初始化插件 nonebot_plugin_bind 的数据库
12-19 14:40:38 [ERROR] uvicorn | Traceback (most recent call last):
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 1969, in _exec_single_context
    self.dialect.do_execute(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\default.py", line 922, in do_execute
    cursor.execute(statement, parameters)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\dialects\sqlite\aiosqlite.py", line 146, in execute
    self._adapt_connection._handle_exception(error)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\dialects\sqlite\aiosqlite.py", line 298, in _handle_exception
    raise error
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\dialects\sqlite\aiosqlite.py", line 128, in execute
    self.await_(_cursor.execute(operation, parameters))
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 125, in await_only
    return current.driver.switch(awaitable)  # type: ignore[no-any-return]
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 185, in greenlet_spawn
    value = await result
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\cursor.py", line 48, in execute
    await self._execute(self._cursor.execute, sql, parameters)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\cursor.py", line 40, in _execute
    return await self._conn._execute(fn, *args, **kwargs)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\core.py", line 133, in _execute
    return await future
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\core.py", line 106, in run
    result = function()
sqlite3.OperationalError: table nonebot_plugin_bind_user already exists

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\starlette\routing.py", line 677, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "C:\Users\ChenXi\AppData\Local\Programs\Python\Python39\lib\contextlib.py", line 181, in __aenter__
    return await self.gen.__anext__()
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 168, in _lifespan_manager
    await self._lifespan.startup()
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot\drivers\_lifespan.py", line 36, in startup
    await self._run_lifespan_func(self._startup_funcs)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot\drivers\_lifespan.py", line 30, in _run_lifespan_func
    await cast(ASYNC_LIFESPAN_FUNC, func)()
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_datastore\db.py", line 104, in init_db
    await upgrade(config, "head")
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_datastore\script\command.py", line 245, in upgrade
    await run_migration()
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_datastore\script\utils.py", line 122, in run_migration
    await connection.run_sync(do_run_migrations, plugin_name)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\ext\asyncio\engine.py", line 886, in run_sync
    return await greenlet_spawn(fn, self._proxied, *arg, **kw)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 192, in greenlet_spawn
    result = context.switch(value)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_datastore\script\utils.py", line 114, in do_run_migrations
    context.run_migrations()
  File "<string>", line 8, in run_migrations
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\runtime\environment.py", line 939, in run_migrations
    self.get_context().run_migrations(**kw)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\runtime\migration.py", line 624, in run_migrations
    step.migration_fn(**kw)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\Lib\site-packages\nonebot_plugin_bind\migrations\57ff5da24acb_init_db.py", line 20, in upgrade
    op.create_table('nonebot_plugin_bind_user',
  File "<string>", line 8, in create_table
  File "<string>", line 3, in create_table
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\operations\ops.py", line 1303, in create_table
    return operations.invoke(op)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\operations\base.py", line 393, in invoke
    return fn(self, operation)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\operations\toimpl.py", line 128, in create_table
    operations.impl.create_table(table)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\ddl\impl.py", line 363, in create_table
    self._exec(schema.CreateTable(table))
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\ddl\impl.py", line 204, in _exec
    return conn.execute(construct, multiparams)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 1416, in execute
    return meth(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\sql\ddl.py", line 181, in _execute_on_connection
    return connection._execute_ddl(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 1528, in _execute_ddl
    ret = self._execute_context(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 1848, in _execute_context
    return self._exec_single_context(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 1988, in _exec_single_context
    self._handle_dbapi_exception(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 2343, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 1969, in _exec_single_context
    self.dialect.do_execute(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\default.py", line 922, in do_execute
    cursor.execute(statement, parameters)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\dialects\sqlite\aiosqlite.py", line 146, in execute
    self._adapt_connection._handle_exception(error)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\dialects\sqlite\aiosqlite.py", line 298, in _handle_exception
    raise error
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\dialects\sqlite\aiosqlite.py", line 128, in execute
    self.await_(_cursor.execute(operation, parameters))
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 125, in await_only
    return current.driver.switch(awaitable)  # type: ignore[no-any-return]
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 185, in greenlet_spawn
    value = await result
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\cursor.py", line 48, in execute
    await self._execute(self._cursor.execute, sql, parameters)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\cursor.py", line 40, in _execute
    return await self._conn._execute(fn, *args, **kwargs)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\core.py", line 133, in _execute
    return await future
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\core.py", line 106, in run
    result = function()
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) table nonebot_plugin_bind_user already exists
[SQL:
CREATE TABLE nonebot_plugin_bind_user (
        id INTEGER NOT NULL,
        CONSTRAINT pk_nonebot_plugin_bind_user PRIMARY KEY (id)
)

]
(Background on this error at: https://sqlalche.me/e/20/e3q8)

ERROR:    Traceback (most recent call last):
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 1969, in _exec_single_context
    self.dialect.do_execute(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\default.py", line 922, in do_execute
    cursor.execute(statement, parameters)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\dialects\sqlite\aiosqlite.py", line 146, in execute
    self._adapt_connection._handle_exception(error)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\dialects\sqlite\aiosqlite.py", line 298, in _handle_exception
    raise error
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\dialects\sqlite\aiosqlite.py", line 128, in execute
    self.await_(_cursor.execute(operation, parameters))
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 125, in await_only
    return current.driver.switch(awaitable)  # type: ignore[no-any-return]
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 185, in greenlet_spawn
    value = await result
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\cursor.py", line 48, in execute
    await self._execute(self._cursor.execute, sql, parameters)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\cursor.py", line 40, in _execute
    return await self._conn._execute(fn, *args, **kwargs)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\core.py", line 133, in _execute
    return await future
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\core.py", line 106, in run
    result = function()
sqlite3.OperationalError: table nonebot_plugin_bind_user already exists

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\starlette\routing.py", line 677, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "C:\Users\ChenXi\AppData\Local\Programs\Python\Python39\lib\contextlib.py", line 181, in __aenter__
    return await self.gen.__anext__()
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 168, in _lifespan_manager
    await self._lifespan.startup()
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot\drivers\_lifespan.py", line 36, in startup
    await self._run_lifespan_func(self._startup_funcs)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot\drivers\_lifespan.py", line 30, in _run_lifespan_func
    await cast(ASYNC_LIFESPAN_FUNC, func)()
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_datastore\db.py", line 104, in init_db
    await upgrade(config, "head")
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_datastore\script\command.py", line 245, in upgrade
    await run_migration()
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_datastore\script\utils.py", line 122, in run_migration
    await connection.run_sync(do_run_migrations, plugin_name)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\ext\asyncio\engine.py", line 886, in run_sync
    return await greenlet_spawn(fn, self._proxied, *arg, **kw)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 192, in greenlet_spawn
    result = context.switch(value)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\nonebot_plugin_datastore\script\utils.py", line 114, in do_run_migrations
    context.run_migrations()
  File "<string>", line 8, in run_migrations
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\runtime\environment.py", line 939, in run_migrations
    self.get_context().run_migrations(**kw)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\runtime\migration.py", line 624, in run_migrations
    step.migration_fn(**kw)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\Lib\site-packages\nonebot_plugin_bind\migrations\57ff5da24acb_init_db.py", line 20, in upgrade
    op.create_table('nonebot_plugin_bind_user',
  File "<string>", line 8, in create_table
  File "<string>", line 3, in create_table
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\operations\ops.py", line 1303, in create_table
    return operations.invoke(op)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\operations\base.py", line 393, in invoke
    return fn(self, operation)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\operations\toimpl.py", line 128, in create_table
    operations.impl.create_table(table)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\ddl\impl.py", line 363, in create_table
    self._exec(schema.CreateTable(table))
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\alembic\ddl\impl.py", line 204, in _exec
    return conn.execute(construct, multiparams)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 1416, in execute
    return meth(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\sql\ddl.py", line 181, in _execute_on_connection
    return connection._execute_ddl(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 1528, in _execute_ddl
    ret = self._execute_context(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 1848, in _execute_context
    return self._exec_single_context(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 1988, in _exec_single_context
    self._handle_dbapi_exception(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 2343, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 1969, in _exec_single_context
    self.dialect.do_execute(
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\engine\default.py", line 922, in do_execute
    cursor.execute(statement, parameters)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\dialects\sqlite\aiosqlite.py", line 146, in execute
    self._adapt_connection._handle_exception(error)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\dialects\sqlite\aiosqlite.py", line 298, in _handle_exception
    raise error
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\dialects\sqlite\aiosqlite.py", line 128, in execute
    self.await_(_cursor.execute(operation, parameters))
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 125, in await_only
    return current.driver.switch(awaitable)  # type: ignore[no-any-return]
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 185, in greenlet_spawn
    value = await result
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\cursor.py", line 48, in execute
    await self._execute(self._cursor.execute, sql, parameters)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\cursor.py", line 40, in _execute
    return await self._conn._execute(fn, *args, **kwargs)
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\core.py", line 133, in _execute
    return await future
  File "D:\Code\NoneBot\ChenXiBot-GPT\.venv\lib\site-packages\aiosqlite\core.py", line 106, in run
    result = function()
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) table nonebot_plugin_bind_user already exists
[SQL:
CREATE TABLE nonebot_plugin_bind_user (
        id INTEGER NOT NULL,
        CONSTRAINT pk_nonebot_plugin_bind_user PRIMARY KEY (id)
)

]
(Background on this error at: https://sqlalche.me/e/20/e3q8)

12-19 14:40:38 [ERROR] uvicorn | Application startup failed. Exiting.
ERROR:    Application startup failed. Exiting.

后面,bind初始化的数据库也会产生表已存在的错误,我确信我已经把sqlite的数据库文件删除了

这两个问题导致机器人服务无法启动