Closed JvJvless closed 1 year ago
看起来像是sqlite版本太旧了不支持ON CONFLICT子句,执行pip install aiosqlite -U试试
看起来像是sqlite版本太旧了不支持ON CONFLICT子句,执行pip install aiosqlite -U试试
感谢帮助,不过尝试后还是存在同样的问题,报错相同。 同时pip install时有提示版本问题 另外尝试换用了官方源的0.17,0.18版本,报错同原问题。
Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/
Requirement already satisfied: aiosqlite in /usr/local/python3/lib/python3.9/site-packages (0.17.0)
Collecting aiosqlite
Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/28/b0/2c2766e12cc7ec623294d12f1e544ea50f17403d723a03c671f6c5eadac9/aiosqlite-0.18.0-py3-none-any.whl (15 kB)
Installing collected packages: aiosqlite
Attempting uninstall: aiosqlite
Found existing installation: aiosqlite 0.17.0
Uninstalling aiosqlite-0.17.0:
Successfully uninstalled aiosqlite-0.17.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
nonebot-plugin-pixivbot 1.7.4 requires aiosqlite<0.18.0,>=0.17.0, but you have aiosqlite 0.18.0 which is incompatible.
Successfully installed aiosqlite-0.18.0
更新系统至Ubuntu20.04,Python环境为3.10后,重新部署nonebot2后可正常使用 后台有较多报错,但已不影响使用,后续有机会再研究
插件使用时出现异常(首次运行),请问可能是哪方面的问题呢?
nonebot2运行于阿里云2核2G上,系统镜像为ubuntu_18_04_x64_20G_alibase_20210420 python环境为 3.9.9 (main, Jan 11 2023, 13:36:57) [GCC 7.5.0] on linux 代理使用clash,插件配置中使用socket5连接 http代理也试过,同样报错。测试代理下可以curl通pixiv 插件通过nbcli安装,plugins = ["nonebot_plugin_access_control", "nonebot_plugin_pixivbot"]
测试来张图功能的时候出现了内部错误
后台日志如下(pm2)