Closed LeoWrDeom closed 2 weeks ago
使用Pydantic V2或者使用nonebot_plugin_essence_message 0.1.9以解决此问题(后者我刚刚发布)
还是无法正常使用 系统:windows10 QQ版本:9.9.15-26909 框架:LLOneBot V3.29.6/NapCat V2.0.37/Lagrange最新版【均已测试】 LLOneBot貌似不支持精华操作,NapCat/Lagrange有响应但是还是无法正常使用 essence export指令均不可用, NapCat使用essence fetchall指令返回【成功保存 0\3 条精华消息】 nonebot-plugin-essence-message 0.1.8与0.1.9均已测试,报错基本一致 Lagrange使用essence fetchall报错,报错日志如下:
08-27 00:25:05 [INFO] nonebot | Event will be handled by AlconnaMatcher(type='', module=nonebot_plugin_essence_message, lineno=33)
08-27 00:25:05 [INFO] nonebot | AlconnaMatcher(type='', module=nonebot_plugin_essence_message, lineno=33) running complete
08-27 00:25:05 [INFO] nonebot | Event will be handled by AlconnaMatcher(type='', module=nonebot_plugin_essence_message, lineno=154)
08-27 00:25:08 [INFO] nonebot | AlconnaMatcher(type='', module=nonebot_plugin_essence_message, lineno=154) running complete
08-27 00:25:08 [ERROR] nonebot | Running AlconnaMatcher(type='', module=nonebot_plugin_essence_message, lineno=154) failed.
Traceback (most recent call last):
File "G:\today\today\bot.py", line 46, in <module>
nonebot.run(app="__mp_main__:app")
File "G:\today\today\.venv\lib\site-packages\nonebot\__init__.py", line 335, in run
get_driver().run(*args, **kwargs)
File "G:\today\today\.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 186, in run
uvicorn.run(
File "G:\today\today\.venv\lib\site-packages\uvicorn\main.py", line 577, in run
server.run()
File "G:\today\today\.venv\lib\site-packages\uvicorn\server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\Leo\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Leo\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 636, in run_until_complete
self.run_forever()
File "C:\Users\Leo\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Users\Leo\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 603, in run_forever
self._run_once()
File "C:\Users\Leo\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1909, in _run_once
handle._run()
File "C:\Users\Leo\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "G:\today\today\.venv\lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
await _run_matcher(
> File "G:\today\today\.venv\lib\site-packages\nonebot\message.py", line 428, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "G:\today\today\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 850, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "G:\today\today\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 825, in simple_run
await handler(
File "G:\today\today\.venv\lib\site-packages\nonebot\dependencies\__init__.py", line 94, in __call__
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "G:\today\today\.venv\lib\site-packages\nonebot_plugin_essence_message\__init__.py", line 176, in fetchall_cmd
if not await db.check_entry_exists(data):
File "G:\today\today\.venv\lib\site-packages\nonebot_plugin_essence_message\dateset.py", line 268, in check_entry_exists
cursor = await conn.execute(
File "G:\today\today\.venv\lib\site-packages\aiosqlite\core.py", line 193, in execute
cursor = await self._execute(self._conn.execute, sql, parameters)
File "G:\today\today\.venv\lib\site-packages\aiosqlite\core.py", line 132, in _execute
return await future
File "G:\today\today\.venv\lib\site-packages\aiosqlite\core.py", line 115, in run
result = function()
sqlite3.OperationalError: no such table: essence_data
依赖列表如下:
aiohappyeyeballs==2.4.0
aiohttp==3.10.5
aiosignal==1.3.1
aiosqlite==0.20.0
annotated-types==0.7.0
anyio==4.4.0
arclet-alconna==1.8.28
arclet-alconna-tools==0.7.9
async-timeout==4.0.3
attrs==24.2.0
Brotli==1.1.0
certifi==2024.7.4
click==8.1.7
colorama==0.4.6
exceptiongroup==1.2.2
fastapi==0.112.1
frozenlist==1.4.1
h11==0.14.0
h2==4.1.0
hpack==4.0.0
httpcore==1.0.5
httptools==0.6.1
httpx==0.27.0
hyperframe==6.0.1
idna==3.8
importlib_metadata==8.4.0
loguru==0.7.2
msgpack==1.0.8
multidict==6.0.5
nepattern==0.7.6
nonebot-adapter-onebot==2.4.4
nonebot-plugin-alconna==0.51.4
nonebot-plugin-localstore==0.7.1
nonebot-plugin-waiter==0.7.1
nonebot2==2.3.3
pydantic==2.8.2
pydantic_core==2.20.1
pygtrie==2.5.0
python-dotenv==1.0.1
PyYAML==6.0.2
sniffio==1.3.1
starlette==0.38.2
tarina==0.5.5
tomli==2.0.1
typing_extensions==4.12.2
uvicorn==0.30.6
watchfiles==0.23.0
websockets==13.0
win32-setctime==1.1.0
yarl==1.9.4
zipp==3.20.0
十分感谢您的测试! 主要问题在数据库的初始化 并且我修改的时候还发现Lagrange改变了一些返回值
我在发布前在Lagrange下测试过了,应该可以运行)))
您好,插件确实可以正常运行了,请问插件能否实现把精华图片批量保存到本地文件夹内,和批量删除精华的功能,目前因为群精华满了,迫切需要这个功能,还有因为C盘满了,能否加个配置指定数据库文件的存放位置,谢谢您!
因为是自用的所以有些写的很随意,pr部分还需要修改,让您费心了!
环境:WINDOWS10,Python310,llob v3.30,nonebot2 报错:
依赖列表: