Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ascii2d的 色合检索 和 特征检索 结果一样 #141

Closed
rockqtmh opened this issue Nov 27, 2024 · 8 comments
Closed

ascii2d的 色合检索 和 特征检索 结果一样 #141

rockqtmh opened this issue Nov 27, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@rockqtmh
Copy link

YetAnotherPicSearch 、 PicImageSearch 、 go-cqhttp 、 nonebot 、 Python 版本及操作系统

YetAnotherPicSearch 2.0.2
PicImageSearch 3.11.2
napcat 4.0.3
nonebot 2.4.0
python 3.13
操作系统 windows server 2022 datacenter

列出安装的 Python 包

No response

如何复现

搜图saucenao匹配度不够就会进行ascii2d检索

期望行为

正常使用色合和特征检索

实际行为

56bbd48d-a887-452b-a4df-7b64ddd4d0bd

@rockqtmh rockqtmh added the bug Something isn't working label Nov 27, 2024
@NekoAria
Copy link
Collaborator

是配置了ascii2d 镜像站吗?

@rockqtmh
Copy link
Author

是的

@rockqtmh
Copy link
Author

是配置了ascii2d 镜像站吗?

请问如何解决呢?

@NekoAria
Copy link
Collaborator

请问如何解决呢?

你试试最新的 v2.0.3

@rockqtmh
Copy link
Author

请问如何解决呢?

你试试最新的 v2.0.3

更新至2.0.3后启动报错
alconna版本是0.54.0

11-28 11:14:00 [ERROR] nonebot | Failed to import "YetAnotherPicSearch"
Traceback (most recent call last):
File "", line 12, in
nonebot.load_from_toml("pyproject.toml")
File "C:\nonebot\bot.venv\Lib\site-packages\nonebot\plugin\load.py", line 133, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "C:\nonebot\bot.venv\Lib\site-packages\nonebot\plugin\load.py", line 67, in load_all_plugins
return manager.load_all_plugins()
File "C:\nonebot\bot.venv\Lib\site-packages\nonebot\plugin\manager.py", line 205, in load_all_plugins
return set(
File "C:\nonebot\bot.venv\Lib\site-packages\nonebot\plugin\manager.py", line 206, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "C:\nonebot\bot.venv\Lib\site-packages\nonebot\plugin\manager.py", line 169, in load_plugin
module = importlib.import_module(self.third_party_plugin_ids[name])
File "C:\Program Files\Python\Python313\Lib\importlib_init
.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in load_unlocked
File "C:\nonebot\bot.venv\Lib\site-packages\nonebot\plugin\manager.py", line 257, in exec_module
super().exec_module(module)
File "", line 1022, in exec_module
File "", line 488, in call_with_frames_removed
File "C:\nonebot\bot.venv\Lib\site-packages\YetAnotherPicSearch_init
.py", line 8, in
from . import main as main
File "C:\nonebot\bot.venv\Lib\site-packages\YetAnotherPicSearch_main
.py", line 54, in
async def extract_images(msg: UniMsg[Segment]) -> list[Image]:
File "C:\Program Files\Python\Python313\Lib\typing.py", line 432, in inner
return func(*args, **kwds)
File "C:\Program Files\Python\Python313\Lib\typing.py", line 1473, in getitem
raise TypeError(f"{self} is not a generic class")
TypeError: typing.Annotated[nonebot_plugin_alconna.uniseg.message.UniMessage, DependsInner(_uni_msg)] is not a generic class

@NekoAria
Copy link
Collaborator

试试 v2.0.3.post1

@rockqtmh
Copy link
Author

试试 v2.0.3.post1

还是会报错,我用2.0.2的main.py替换就没问题了

@NekoAria
Copy link
Collaborator

还是会报错,我用2.0.2的main.py替换就没问题了

已更新 v2.0.3.post2

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants